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