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