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