aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <alx.manpages@gmail.com>2021-11-02 14:25:52 +0100
committerAlejandro Colomar <alx.manpages@gmail.com>2022-02-24 23:17:45 +0100
commitebebae00ffd65f108414e94b75eb0179f2c21ad2 (patch)
treee0da7f157e7d7ee63d53c234a7f84566772df40a
parent3b6c4195706e0cb77f38405b4e16bf7ed0c529bc (diff)
downloadman-pages-ebebae00ffd65f108414e94b75eb0179f2c21ad2.tar.gz
intmax_t.3, system_data_types.7: Move text to a separate page
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@gmail.com>
-rw-r--r--man3/intmax_t.351
-rw-r--r--man7/system_data_types.756
2 files changed, 50 insertions, 57 deletions
diff --git a/man3/intmax_t.3 b/man3/intmax_t.3
index db50c0f091..e86aac91a0 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 ff40189aef..d876375bda 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