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