1GETPID(2) Linux Programmer's Manual GETPID(2)
2
3
4
6 getpid, getppid - get process identification
7
9 #include <sys/types.h>
10 #include <unistd.h>
11
12 pid_t getpid(void);
13 pid_t getppid(void);
14
16 getpid() returns the process ID of the current process. (This is often
17 used by routines that generate unique temporary filenames.)
18
19 getppid() returns the process ID of the parent of the current process.
20
22 POSIX.1-2001, 4.3BSD, SVr4
23
25 fork(2), kill(2), exec(3), mkstemp(3), tempnam(3), tmpfile(3), tmp‐
26 nam(3)
27
28
29
30Linux 0.99.11 1993-07-23 GETPID(2)