Thread (38 messages) 38 messages, 1 author, 2021-11-02

[RFC 16/37] div_t.3, system_data_types.7: Move text to a separate page

flat view

From: Alejandro Colomar <hidden>
Date: 2021-11-02 18:15:21
Subsystem: the rest · Maintainer: Linus Torvalds

Signed-off-by: Alejandro Colomar <redacted>
---
 man3/div_t.3             | 20 +++++++++++++++++++-
 man7/system_data_types.7 | 23 -----------------------
 2 files changed, 19 insertions(+), 24 deletions(-)
diff --git a/man3/div_t.3 b/man3/div_t.3
index db50c0f09..2b83a002d 100644
--- a/man3/div_t.3
+++ b/man3/div_t.3
@@ -1 +1,19 @@
-.so man7/system_data_types.7
+.TH DIV_T 3 2021-11-02 Linux "Linux Programmer's Manual"
+.SH NAME
+div_t \- quotient and remainder of an integer division
+.SH SYNOPSIS
+.nf
+.B #include <stdlib.h>
+.PP
+.B typedef struct {
+.BR "    int quot;" " /* Quotient */"
+.BR "    int rem;" "  /* Remainder */"
+.B } div_t;
+.SH DESCRIPTION
+It is the type of the value returned by the
+.BR div (3)
+function.
+.SH CONFORMING TO
+C99 and later; POSIX.1-2001 and later.
+.SH SEE ALSO
+.BR div (3)
diff --git a/man7/system_data_types.7 b/man7/system_data_types.7
index fe071fb1e..764027bbd 100644
--- a/man7/system_data_types.7
+++ b/man7/system_data_types.7
@@ -58,29 +58,6 @@ system_data_types \- overview of system data types
 .\"------------------------------------- clockid_t --------------------/
 .\"------------------------------------- dev_t ------------------------/
 .\"------------------------------------- div_t ------------------------/
-.TP
-.I div_t
-.RS
-.IR Include :
-.IR <stdlib.h> .
-.PP
-.EX
-typedef struct {
-    int quot; /* Quotient */
-    int rem;  /* Remainder */
-} div_t;
-.EE
-.PP
-It is the type of the value returned by the
-.BR div (3)
-function.
-.PP
-.IR "Conforming to" :
-C99 and later; POSIX.1-2001 and later.
-.PP
-.IR "See also" :
-.BR div (3)
-.RE
 .\"------------------------------------- double_t ---------------------/
 .TP
 .I double_t
-- 
2.33.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help