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