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