[RFC 24/37] gid_t.3, id_t.3, system_data_types.7: Move gid_t to id_t.3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Alejandro Colomar <alx.manpages@xxxxxxxxx>
---
 man3/gid_t.3             |  2 +-
 man3/id_t.3              | 34 ++++++++++++++++++++++++++++++----
 man7/system_data_types.7 | 31 -------------------------------
 3 files changed, 31 insertions(+), 36 deletions(-)

diff --git a/man3/gid_t.3 b/man3/gid_t.3
index db50c0f09..af7be45e3 100644
--- a/man3/gid_t.3
+++ b/man3/gid_t.3
@@ -1 +1 @@
-.so man7/system_data_types.7
+.so man3/id_t.3
diff --git a/man3/id_t.3 b/man3/id_t.3
index 1fdfd99da..5baaeb9a6 100644
--- a/man3/id_t.3
+++ b/man3/id_t.3
@@ -1,16 +1,23 @@
 .TH ID_T 3 2021-11-02 Linux "Linux Programmer's Manual"
 .SH NAME
-id_t \- process/user/group identifier
+gid_t, id_t \- process/user/group identifier
 .SH SYNOPSIS
 .nf
 .B #include <sys/types.h>
 .PP
+.BR typedef " /* ... */ " gid_t;
 .BR typedef " /* ... */ " id_t;
 .fi
 .SH DESCRIPTION
-A type used to hold a general identifier.
+.I gid_t
+is a type used to hold group IDs.
 According to POSIX,
-this shall be an integer type that can be used to contain a
+it shall be an integer type.
+.PP
+.I id_t
+is a type used to hold a general identifier.
+According to POSIX,
+it shall be an integer type that can be used to contain a
 .IR pid_t ,
 .IR uid_t ,
 or
@@ -18,8 +25,27 @@ or
 .SH CONFORMING TO
 POSIX.1-2001 and later.
 .SH NOTES
-The following header also provides this type:
+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 getgid (2),
+.BR getegid (2),
+.BR getgroups (2),
 .BR getpriority (2),
+.BR getresgid (2),
 .BR waitid (2)
+.BR getgrnam (3),
+.BR credentials (7)
diff --git a/man7/system_data_types.7 b/man7/system_data_types.7
index 819f0a2df..4fc3c714a 100644
--- a/man7/system_data_types.7
+++ b/man7/system_data_types.7
@@ -65,37 +65,6 @@ system_data_types \- overview of system data types
 .\"------------------------------------- FILE -------------------------/
 .\"------------------------------------- float_t ----------------------/
 .\"------------------------------------- gid_t ------------------------/
-.TP
-.I gid_t
-.RS
-.IR Include :
-.IR <sys/types.h> .
-Alternatively,
-.IR <grp.h> ,
-.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 group 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 getgid (2),
-.BR getegid (2),
-.BR getgroups (2),
-.BR getresgid (2),
-.BR getgrnam (3),
-.BR credentials (7)
-.RE
 .\"------------------------------------- id_t -------------------------/
 .\"------------------------------------- imaxdiv_t --------------------/
 .TP
-- 
2.33.1




[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux