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

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

 



I also reworded the text slightly to talk about 'basic integer
types', not 'integer types', to more clearly exclude 'extended
integer types'.

Signed-off-by: Alejandro Colomar <alx.manpages@xxxxxxxxx>
---
 man3/intmax_t.3          | 51 +++++++++++++++++++++++++++++++++++-
 man7/system_data_types.7 | 56 ----------------------------------------
 2 files changed, 50 insertions(+), 57 deletions(-)

diff --git a/man3/intmax_t.3 b/man3/intmax_t.3
index db50c0f09..e86aac91a 100644
--- a/man3/intmax_t.3
+++ b/man3/intmax_t.3
@@ -1 +1,50 @@
-.so man7/system_data_types.7
+.TH INTMAX_T 3 2021-11-02 Linux "Linux Programmer's Manual"
+.SH NAME
+intmax_t \- greatest-width basic integer type
+.SH SYNOPSIS
+.nf
+.B #include stdint.h>
+.PP
+.BR typedef " /* ... */ " intmax_t;
+.fi
+.SH DESCRIPTION
+A signed integer type
+capable of representing any value of any basic signed integer type
+supported by the implementation.
+According to the C language standard, it shall be
+capable of storing values in the range
+.RB [ INTMAX_MIN ,
+.BR INTMAX_MAX ].
+.PP
+The macro
+.BR INTMAX_C ()
+expands its argument to an integer constant of type
+.IR intmax_t .
+.PP
+The length modifier for
+.I intmax_t
+for the
+.BR printf (3)
+and the
+.BR scanf (3)
+families of functions is
+.BR j ;
+resulting commonly in
+.B %jd
+or
+.B %ji
+for printing
+.I intmax_t
+values.
+.SH CONFORMING TO
+C99 and later; POSIX.1-2001 and later.
+.SH NOTES
+The following header also provides this type:
+.IR <inttypes.h> .
+.SH BUGS
+.I intmax_t
+may not be as large as extended integer types, such as
+.I __int128
+.SH SEE ALSO
+.BR printf (3),
+.BR strtoimax (3)
diff --git a/man7/system_data_types.7 b/man7/system_data_types.7
index 3bdaff8a4..a4a1c3298 100644
--- a/man7/system_data_types.7
+++ b/man7/system_data_types.7
@@ -68,62 +68,6 @@ system_data_types \- overview of system data types
 .\"------------------------------------- id_t -------------------------/
 .\"------------------------------------- imaxdiv_t --------------------/
 .\"------------------------------------- intmax_t ---------------------/
-.TP
-.I intmax_t
-.RS
-.IR Include :
-.IR <stdint.h> .
-Alternatively,
-.IR <inttypes.h> .
-.PP
-A signed integer type
-capable of representing any value of any signed integer type
-supported by the implementation.
-According to the C language standard, it shall be
-capable of storing values in the range
-.RB [ INTMAX_MIN ,
-.BR INTMAX_MAX ].
-.PP
-The macro
-.BR INTMAX_C ()
-.\" TODO: Document INT*_C(3)
-expands its argument to an integer constant of type
-.IR intmax_t .
-.PP
-The length modifier for
-.I intmax_t
-for the
-.BR printf (3)
-and the
-.BR scanf (3)
-families of functions is
-.BR j ;
-resulting commonly in
-.B %jd
-or
-.B %ji
-for printing
-.I intmax_t
-values.
-.PP
-.IR "Conforming to" :
-C99 and later; POSIX.1-2001 and later.
-.PP
-.IR Bugs :
-.I intmax_t
-is not large enough to represent values of type
-.I __int128
-in implementations where
-.I __int128
-is defined and
-.I long long
-is less than 128 bits wide.
-.PP
-.IR "See also" :
-the
-.I uintmax_t
-type in this page.
-.RE
 .\"------------------------------------- intN_t -----------------------/
 .TP
 .IR int N _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