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