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