]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
size_t.3type, system_data_types.7: Move size_t to a separate page
authorAlejandro Colomar <alx.manpages@gmail.com>
Wed, 20 Jul 2022 20:33:56 +0000 (22:33 +0200)
committerAlejandro Colomar <alx.manpages@gmail.com>
Wed, 20 Jul 2022 20:36:07 +0000 (22:36 +0200)
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
man3/size_t.3type
man7/system_data_types.7

index db50c0f091ba6442b76b46ac3e8ede4579ef8d55..602d0572a9755fad69eab533a8636808a5f4bba2 100644 (file)
@@ -1 +1,106 @@
-.so man7/system_data_types.7
+.\" Copyright (c) 2020-2022 by Alejandro Colomar <colomar.6.4.3@gmail.com>
+.\" and Copyright (c) 2020 by Michael Kerrisk <mtk.manpages@gmail.com>
+.\"
+.\" SPDX-License-Identifier: Linux-man-pages-copyleft
+.\"
+.\"
+.TH SIZE_T 3type 2022-07-20 Linux "Linux Programmer's Manual"
+.SH NAME
+size_t \- count of bytes
+.SH LIBRARY
+Standard C library
+.RI ( libc )
+.SH SYNOPSIS
+.nf
+.B #include <stddef.h>
+.PP
+.BR typedef " /* ... */  " size_t;
+.fi
+.SH DESCRIPTION
+Used for a count of bytes.
+It is the result of the
+.IR sizeof ()
+operator.
+According to ISO C,
+it shall be an unsigned integer type
+capable of storing values in the range
+.RB [ 0 ,
+.BR SIZE_MAX ].
+According to POSIX,
+the implementation shall support one or more programming environments
+where the width of
+.I size_t
+is no greater than the width of the type
+.IR long .
+.PP
+The length modifier for
+.I size_t
+for the
+.BR printf (3)
+and the
+.BR scanf (3)
+families of functions is
+.BR z ,
+resulting commonly in
+.B %zu
+or
+.B %zx
+for printing
+.I size_t
+values.
+.SH VERSIONS
+.IR <aio.h> ,
+.IR <glob.h> ,
+.IR <grp.h> ,
+.IR <iconv.h> ,
+.IR <mqueue.h> ,
+.IR <pwd.h> ,
+.IR <signal.h> ,
+and
+.I <sys/socket.h>
+define
+.I size_t
+since POSIX.1-2008.
+.SH CONFORMING TO
+C99 and later.
+POSIX.1-2001 and later.
+.SH NOTES
+The following headers also provide this type:
+.IR <aio.h> ,
+.IR <glob.h> ,
+.IR <grp.h> ,
+.IR <iconv.h> ,
+.IR <monetary.h> ,
+.IR <mqueue.h> ,
+.IR <ndbm.h> ,
+.IR <pwd.h> ,
+.IR <regex.h> ,
+.IR <search.h> ,
+.IR <signal.h> ,
+.IR <stdio.h> ,
+.IR <stdlib.h> ,
+.IR <string.h> ,
+.IR <strings.h> ,
+.IR <sys/mman.h> ,
+.IR <sys/msg.h> ,
+.IR <sys/sem.h> ,
+.IR <sys/shm.h> ,
+.IR <sys/socket.h> ,
+.IR <sys/types.h> ,
+.IR <sys/uio.h> ,
+.IR <time.h> ,
+.IR <unistd.h> ,
+.IR <wchar.h> ,
+and
+.IR <wordexp.h> .
+.SH SEE ALSO
+.BR read (2),
+.BR write (2),
+.BR fread (3),
+.BR fwrite (3),
+.BR memcmp (3),
+.BR memcpy (3),
+.BR memset (3),
+.BR offsetof (3),
+.BR ptrdiff_t (3type),
+.BR ssize_t (3type)
index 99619615b858cd83b63a5223dc879178e9833331..de1df941737ed2a4b85c0ab5fff9ecf1ef5c80f6 100644 (file)
@@ -91,11 +91,8 @@ values.
 C99 and later; POSIX.1-2001 and later.
 .PP
 .IR "See also" :
+.BR size_t (3type),
 .BR ssize_t (3type)
-.PP
-See also the
-.I size_t
-type in this page.
 .RE
 .\"------------------------------------- regex_t ----------------------/
 .TP
@@ -326,104 +323,6 @@ type
 in this page.
 .RE
 .\"------------------------------------- size_t -----------------------/
-.TP
-.I size_t
-.RS
-.IR Include :
-.I <stddef.h>
-or
-.IR <sys/types.h> .
-Alternatively,
-.IR <aio.h> ,
-.IR <glob.h> ,
-.IR <grp.h> ,
-.IR <iconv.h> ,
-.IR <monetary.h> ,
-.IR <mqueue.h> ,
-.IR <ndbm.h> ,
-.IR <pwd.h> ,
-.IR <regex.h> ,
-.IR <search.h> ,
-.IR <signal.h> ,
-.IR <stdio.h> ,
-.IR <stdlib.h> ,
-.IR <string.h> ,
-.IR <strings.h> ,
-.IR <sys/mman.h> ,
-.IR <sys/msg.h> ,
-.IR <sys/sem.h> ,
-.IR <sys/shm.h> ,
-.IR <sys/socket.h> ,
-.IR <sys/uio.h> ,
-.IR <time.h> ,
-.IR <unistd.h> ,
-.IR <wchar.h> ,
-or
-.IR <wordexp.h> .
-.PP
-Used for a count of bytes.
-It is the result of the
-.I sizeof
-operator.
-According to the C language standard,
-it shall be an unsigned integer type
-capable of storing values in the range [0,
-.BR SIZE_MAX ].
-According to POSIX,
-the implementation shall support one or more programming environments
-where the width of
-.I size_t
-is no greater than the width of the type
-.IR long .
-.PP
-The length modifier for
-.I size_t
-for the
-.BR printf (3)
-and the
-.BR scanf (3)
-families of functions is
-.BR z ;
-resulting commonly in
-.B %zu
-or
-.B %zx
-for printing
-.I size_t
-values.
-.PP
-.IR Versions :
-.IR <aio.h> ,
-.IR <glob.h> ,
-.IR <grp.h> ,
-.IR <iconv.h> ,
-.IR <mqueue.h> ,
-.IR <pwd.h> ,
-.IR <signal.h> ,
-and
-.I <sys/socket.h>
-define
-.I size_t
-since POSIX.1-2008.
-.PP
-.IR "Conforming to" :
-C99 and later; POSIX.1-2001 and later.
-.PP
-.IR "See also" :
-.BR read (2),
-.BR write (2),
-.BR fread (3),
-.BR fwrite (3),
-.BR memcmp (3),
-.BR memcpy (3),
-.BR memset (3),
-.BR offsetof (3),
-.BR ssize_t (3type)
-.PP
-See also the
-.I ptrdiff_t
-type in this page.
-.RE
 .\"------------------------------------- sockaddr ---------------------/
 .\"------------------------------------- socklen_t --------------------/
 .\"------------------------------------- ssize_t ----------------------/