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