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