Debian Codegraph @

upstream/debian-unstable/man3/id_t.3type

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