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