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