1id_t(3type) id_t(3type)
2
3
4
6 pid_t, uid_t, gid_t, id_t - process/user/group identifier
7
9 Standard C library (libc)
10
12 #include <sys/types.h>
13
14 typedef /* ... */ pid_t;
15 typedef /* ... */ uid_t;
16 typedef /* ... */ gid_t;
17 typedef /* ... */ id_t;
18
20 pid_t is a type used for storing process IDs, process group IDs, and
21 session IDs. It is a signed integer type.
22
23 uid_t is a type used to hold user IDs. It is an integer type.
24
25 gid_t is a type used to hold group IDs. It is an integer type.
26
27 id_t is a type used to hold a general identifier. It is an integer
28 type that can be used to contain a pid_t, uid_t, or gid_t.
29
31 POSIX.1-2008.
32
34 POSIX.1-2001.
35
37 The following headers also provide pid_t: <fcntl.h>, <sched.h>, <sig‐
38 nal.h>, <spawn.h>, <sys/msg.h>, <sys/sem.h>, <sys/shm.h>, <sys/wait.h>,
39 <termios.h>, <time.h>, <unistd.h>, and <utmpx.h>.
40
41 The following headers also provide uid_t: <pwd.h>, <signal.h>,
42 <stropts.h>, <sys/ipc.h>, <sys/stat.h>, and <unistd.h>.
43
44 The following headers also provide gid_t: <grp.h>, <pwd.h>, <signal.h>,
45 <stropts.h>, <sys/ipc.h>, <sys/stat.h>, and <unistd.h>.
46
47 The following header also provides id_t: <sys/resource.h>.
48
50 chown(2), fork(2), getegid(2), geteuid(2), getgid(2), getgroups(2),
51 getpgid(2), getpid(2), getppid(2), getpriority(2), getpwnam(3), getres‐
52 gid(2), getresuid(2), getsid(2), gettid(2), getuid(2), kill(2),
53 pidfd_open(2), sched_setscheduler(2), waitid(2), getgrnam(3),
54 sigqueue(3), credentials(7)
55
56
57
58Linux man-pages 6.04 2023-03-30 id_t(3type)