Debian Codegraph @

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

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