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