]> git.ipfire.org Git - thirdparty/man-pages.git/blob - man2/getpid.2
Updated CONFORMING TO section
[thirdparty/man-pages.git] / man2 / getpid.2
1 .\" Hey Emacs! This file is -*- nroff -*- source.
2 .\"
3 .\" Copyright 1993 Rickard E. Faith (faith@cs.unc.edu)
4 .\" Permission is granted to make and distribute verbatim copies of this
5 .\" manual provided the copyright notice and this permission notice are
6 .\" preserved on all copies.
7 .\"
8 .\" Permission is granted to copy and distribute modified versions of this
9 .\" manual under the conditions for verbatim copying, provided that the
10 .\" entire resulting derived work is distributed under the terms of a
11 .\" permission notice identical to this one.
12 .\"
13 .\" Since the Linux kernel and libraries are constantly changing, this
14 .\" manual page may be incorrect or out-of-date. The author(s) assume no
15 .\" responsibility for errors or omissions, or for damages resulting from
16 .\" the use of the information contained herein. The author(s) may not
17 .\" have taken the same level of care in the production of this manual,
18 .\" which is licensed free of charge, as they might when working
19 .\" professionally.
20 .\"
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
23 .TH GETPID 2 1993-07-23 "Linux 0.99.11" "Linux Programmer's Manual"
24 .SH NAME
25 getpid, getppid \- get process identification
26 .SH SYNOPSIS
27 .B #include <sys/types.h>
28 .br
29 .B #include <unistd.h>
30 .sp
31 .B pid_t getpid(void);
32 .br
33 .B pid_t getppid(void);
34 .SH DESCRIPTION
35 .BR getpid ()
36 returns the process ID of the current process. (This is often used by
37 routines that generate unique temporary filenames.)
38
39 .BR getppid ()
40 returns the process ID of the parent of the current process.
41 .SH "CONFORMING TO"
42 POSIX.1-2001, 4.3BSD, SVr4
43 .SH "SEE ALSO"
44 .BR fork (2),
45 .BR kill (2),
46 .BR exec (3),
47 .BR mkstemp (3),
48 .BR tempnam (3),
49 .BR tmpfile (3),
50 .BR tmpnam (3)