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