std › os › plan9 › getpidgetpid Ported from /sys/include/ape/errno.hTypes#E Ported from /sys/include/ape/errno.hTosSIGSigactionATSYSAccessModeOExecData Gets whatever the last errstr wasFunctions#errstr Gets whatever the last errstr wasgetpidsigemptysetsigactionwritepwritereadpreadopenopenatfd2pathcreateexitexitsclosebrk_ Brk sets the system's idea of the lowest bss location notsbrk= 0Values#STDIN_FILENO= 0STDOUT_FILENO= 1STDERR_FILENO= 2PATH_MAX= 1023ERRMAX= 128tosSourceImplementation#pub fn getpid() u32 { return tos.pid; }