Query: getpid
OS: plan9
Section: 2
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
GETPID(2) System Calls Manual GETPID(2)NAMEgetpid, getppid - get process idsSYNOPSIS#include <u.h> #include <libc.h> int getpid(void) int getppid(void)DESCRIPTIONGetpid reads /dev/pid (see cons(3)) and converts it to get the process id of the current process, a number guaranteed to be unique among all running processes on the machine executing getpid. Getppid reads /dev/ppid (see cons(3)) and converts it to get the id of the parent of the current process.SOURCE/sys/src/libc/9sysSEE ALSOintro(2), cons(3), proc(3)DIAGNOSTICSReturns 0 and sets errstr if unsuccessful. GETPID(2)
Related Man Pages |
---|
getpid(2) - linux |
getppid(2) - debian |
getppid(2) - centos |
getpgid(2) - sunos |
getppid(2) - freebsd |
Similar Topics in the Unix Linux Community |
---|
Help for getpid() |
Error while using getpid() is shell script |