]> git.lizzy.rs Git - plan9front.git/blob - sys/man/2/getpid
audiohda: fix syntax error
[plan9front.git] / sys / man / 2 / getpid
1 .TH GETPID 2
2 .SH NAME
3 getpid, getppid \- get process ids
4 .SH SYNOPSIS
5 .B #include <u.h>
6 .br
7 .B #include <libc.h>
8 .PP
9 .B
10 int getpid(void)
11 .PP
12 .B
13 int getppid(void)
14 .SH DESCRIPTION
15 .I Getpid
16 returns the process id of the current process,
17 a number guaranteed to be unique among all running processes on the machine
18 executing
19 .IR getpid .
20 .PP
21 .I Getppid
22 returns the process id of the parent of the current process.
23 .SH SOURCE
24 .B /sys/src/libc/9sys
25 .SH SEE ALSO
26 .IR intro (2),
27 .IR exec (2),
28 .IR proc (3)
29 .SH DIAGNOSTICS
30 Returns 0 and
31 sets
32 .I errstr
33 if unsuccessful.