getpid(2)
NAME
getpid, getppid − get process identification
SYNTAX
int getpid()
int getppid()
DESCRIPTION
The getpid system call returns the process ID of the current process. It is useful for generating uniquely-named temporary files.
The getppid system call returns the process ID of the parent of the current process.
SEE ALSO
setpgrp(2j), setpgrp(2v), mktemp(3)
ASSEMBLER
(getpid = 20.)
sys getpid
(pid in r0)
(ppid in r1)