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