1GETPID(2)                     System Calls Manual                    GETPID(2)
2
3
4

NAME

6       getpid, getppid - get process identification
7

SYNOPSIS

9       pid = getpid()
10       int pid;
11
12       ppid = getppid()
13       int ppid;
14

DESCRIPTION

16       Getpid returns the process ID of the current process.  Most often it is
17       used to generate uniquely-named temporary files.
18
19       Getppid returns the process ID of the parent of the current process.
20

SEE ALSO

22       gethostid(2)
23
24
25
264th Berkeley Distribution        May 13, 1986                        GETPID(2)
Impressum