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