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