aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--man3/id_t.322
-rw-r--r--man3/uid_t.32
-rw-r--r--man7/system_data_types.729
3 files changed, 22 insertions, 31 deletions
diff --git a/man3/id_t.3 b/man3/id_t.3
index 0cdd163c94..ac42c385c2 100644
--- a/man3/id_t.3
+++ b/man3/id_t.3
@@ -1,11 +1,12 @@
.TH ID_T 3 2021-11-02 Linux "Linux Programmer's Manual"
.SH NAME
-pid_t, gid_t, id_t \- process/user/group identifier
+pid_t, uid_t, gid_t, id_t \- process/user/group identifier
.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
@@ -19,6 +20,11 @@ where the width of
is no greater than the width of the type
.IR long .
.PP
+.I uid_t
+is a type used to hold user IDs.
+According to POSIX,
+it shall be an integer type.
+.PP
.I gid_t
is a type used to hold group IDs.
According to POSIX,
@@ -52,6 +58,16 @@ 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> ,
+or
+.IR <unistd.h> .
+.PP
+The following headers also provide
.IR gid_t :
.IR <grp.h> ,
.IR <pwd.h> ,
@@ -69,15 +85,19 @@ The following header also provides
.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),
diff --git a/man3/uid_t.3 b/man3/uid_t.3
index db50c0f091..af7be45e36 100644
--- a/man3/uid_t.3
+++ b/man3/uid_t.3
@@ -1 +1 @@
-.so man7/system_data_types.7
+.so man3/id_t.3
diff --git a/man7/system_data_types.7 b/man7/system_data_types.7
index f1531c67f1..0fe3eea629 100644
--- a/man7/system_data_types.7
+++ b/man7/system_data_types.7
@@ -1343,35 +1343,6 @@ POSIX.1-2001 and later.
.BR timeradd (3)
.RE
.\"------------------------------------- uid_t ----------------------/
-.TP
-.I uid_t
-.RS
-.IR Include :
-.IR <sys/types.h> .
-Alternatively,
-.IR <pwd.h> ,
-.IR <signal.h> ,
-.IR <stropts.h> ,
-.IR <sys/ipc.h> ,
-.IR <sys/stat.h> ,
-or
-.IR <unistd.h> .
-.PP
-A type used to hold user IDs.
-According to POSIX,
-this shall be an integer type.
-.PP
-.IR "Conforming to" :
-POSIX.1-2001 and later.
-.PP
-.IR "See also" :
-.BR chown (2),
-.BR getuid (2),
-.BR geteuid (2),
-.BR getresuid (2),
-.BR getpwnam (3),
-.BR credentials (7)
-.RE
.\"------------------------------------- uintmax_t --------------------/
.TP
.I uintmax_t