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