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