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