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