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