summaryrefslogtreecommitdiffstats
path: root/man3type/id_t.3type
blob: 4c76ad2f6d543667f875033ea204b8f0c43970ac (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
.\" Copyright (c) 2020-2022 by Alejandro Colomar <alx@kernel.org>
.\" and Copyright (c) 2020 by Michael Kerrisk <mtk.manpages@gmail.com>
.\"
.\" SPDX-License-Identifier: Linux-man-pages-copyleft
.\"
.\"
.TH id_t 3type (date) "Linux man-pages (unreleased)"
.SH NAME
pid_t, uid_t, gid_t, id_t \- process/user/group identifier
.SH LIBRARY
Standard C library
.RI ( libc )
.SH SYNOPSIS
.nf
.B #include <sys/types.h>
.PP
.BR typedef " /* ... */ " pid_t;
.BR typedef " /* ... */ " uid_t;
.BR typedef " /* ... */ " gid_t;
.BR typedef " /* ... */ " id_t;
.fi
.SH DESCRIPTION
.I pid_t
is a type used for storing process IDs, process group IDs, and session IDs.
It is a signed integer type.
.PP
.I uid_t
is a type used to hold user IDs.
It is an integer type.
.PP
.I gid_t
is a type used to hold group IDs.
It is an integer type.
.PP
.I id_t
is a type used to hold a general identifier.
It is an integer type that can be used to contain a
.IR pid_t ,
.IR uid_t ,
or
.IR gid_t .
.SH STANDARDS
POSIX.1-2008.
.SH HISTORY
POSIX.1-2001.
.SH NOTES
The following headers also provide
.IR pid_t :
.IR <fcntl.h> ,
.IR <sched.h> ,
.IR <signal.h> ,
.IR <spawn.h> ,
.IR <sys/msg.h> ,
.IR <sys/sem.h> ,
.IR <sys/shm.h> ,
.IR <sys/wait.h> ,
.IR <termios.h> ,
.IR <time.h> ,
.IR <unistd.h> ,
and
.IR <utmpx.h> .
.PP
The following headers also provide
.IR uid_t :
.IR <pwd.h> ,
.IR <signal.h> ,
.IR <stropts.h> ,
.IR <sys/ipc.h> ,
.IR <sys/stat.h> ,
and
.IR <unistd.h> .
.PP
The following headers also provide
.IR gid_t :
.IR <grp.h> ,
.IR <pwd.h> ,
.IR <signal.h> ,
.IR <stropts.h> ,
.IR <sys/ipc.h> ,
.IR <sys/stat.h> ,
and
.IR <unistd.h> .
.PP
The following header also provides
.IR id_t :
.IR <sys/resource.h> .
.SH SEE ALSO
.BR chown (2),
.BR fork (2),
.BR getegid (2),
.BR geteuid (2),
.BR getgid (2),
.BR getgroups (2),
.BR getpgid (2),
.BR getpid (2),
.BR getppid (2),
.BR getpriority (2),
.BR getpwnam (3),
.BR getresgid (2),
.BR getresuid (2),
.BR getsid (2),
.BR gettid (2),
.BR getuid (2),
.BR kill (2),
.BR pidfd_open (2),
.BR sched_setscheduler (2),
.BR waitid (2),
.BR getgrnam (3),
.BR sigqueue (3),
.BR credentials (7)