1GETPID(2) System Calls Manual GETPID(2)
23
4
NAME
6getpid, getppid - get process identification
7
SYNOPSIS
9pid = getpid()
10int pid;
1112
ppid = getppid()
13int ppid;
14
DESCRIPTION
16Getpid returns the process ID of the current process. Most often it is
17used to generate uniquely-named temporary files.
1819
Getppid returns the process ID of the parent of the current process.
20
SEE ALSO
22gethostid(2)
2324
25
26
4th Berkeley Distribution May 13, 1986 GETPID(2)