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