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