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