ref: f88a55e79b5bf656e7f9578d1318a955b9a4963a dir: /sys/src/libc/9sys/getpid.c/
#include <u.h> #include <libc.h> #include <tos.h> int getpid(void) { return _tos->pid; }