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