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