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