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