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