[RFC 27/37] div_t.3, imaxdiv_t.3, system_data_types.7: Move imaxdiv_t to div_t.3

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

 



Signed-off-by: Alejandro Colomar <alx.manpages@xxxxxxxxx>
---
 man3/div_t.3             | 21 ++++++++++++++++++---
 man3/imaxdiv_t.3         |  2 +-
 man7/system_data_types.7 | 23 -----------------------
 3 files changed, 19 insertions(+), 27 deletions(-)

diff --git a/man3/div_t.3 b/man3/div_t.3
index 2b83a002d..bf1687e0d 100644
--- a/man3/div_t.3
+++ b/man3/div_t.3
@@ -1,6 +1,6 @@
 .TH DIV_T 3 2021-11-02 Linux "Linux Programmer's Manual"
 .SH NAME
-div_t \- quotient and remainder of an integer division
+div_t, imaxdiv_t \- quotient and remainder of an integer division
 .SH SYNOPSIS
 .nf
 .B #include <stdlib.h>
@@ -9,11 +9,26 @@ div_t \- quotient and remainder of an integer division
 .BR "    int quot;" " /* Quotient */"
 .BR "    int rem;" "  /* Remainder */"
 .B } div_t;
+.PP
+.B #include <inttypes.h>
+.PP
+.B typedef struct {
+.BR "    intmax_t quot;" " /* Quotient */"
+.BR "    intmax_t rem;" "  /* Remainder */"
+.B } imaxdiv_t;
+.fi
 .SH DESCRIPTION
-It is the type of the value returned by the
+.I div_t
+is the type of the value returned by the
 .BR div (3)
 function.
+.PP
+.I imaxdiv_t
+is the type of the value returned by the
+.BR imaxdiv (3)
+function.
 .SH CONFORMING TO
 C99 and later; POSIX.1-2001 and later.
 .SH SEE ALSO
-.BR div (3)
+.BR div (3),
+.BR imaxdiv (3)
diff --git a/man3/imaxdiv_t.3 b/man3/imaxdiv_t.3
index db50c0f09..e29b9e797 100644
--- a/man3/imaxdiv_t.3
+++ b/man3/imaxdiv_t.3
@@ -1 +1 @@
-.so man7/system_data_types.7
+.so man3/div_t.3
diff --git a/man7/system_data_types.7 b/man7/system_data_types.7
index 54bef15a4..3bdaff8a4 100644
--- a/man7/system_data_types.7
+++ b/man7/system_data_types.7
@@ -67,29 +67,6 @@ system_data_types \- overview of system data types
 .\"------------------------------------- gid_t ------------------------/
 .\"------------------------------------- id_t -------------------------/
 .\"------------------------------------- imaxdiv_t --------------------/
-.TP
-.I imaxdiv_t
-.RS
-.IR Include :
-.IR <inttypes.h> .
-.PP
-.EX
-typedef struct {
-    intmax_t    quot; /* Quotient */
-    intmax_t    rem;  /* Remainder */
-} imaxdiv_t;
-.EE
-.PP
-It is the type of the value returned by the
-.BR imaxdiv (3)
-function.
-.PP
-.IR "Conforming to" :
-C99 and later; POSIX.1-2001 and later.
-.PP
-.IR "See also" :
-.BR imaxdiv (3)
-.RE
 .\"------------------------------------- intmax_t ---------------------/
 .TP
 .I intmax_t
-- 
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