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