From: Alejandro Colomar Date: Wed, 20 Jul 2022 20:33:56 +0000 (+0200) Subject: size_t.3type, system_data_types.7: Move size_t to a separate page X-Git-Tag: man-pages-6.0-rc1~106 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88796fd76e5e5feff6d3110cdc8bf5ccb03870cf;p=thirdparty%2Fman-pages.git size_t.3type, system_data_types.7: Move size_t to a separate page Signed-off-by: Alejandro Colomar --- diff --git a/man3/size_t.3type b/man3/size_t.3type index db50c0f091..602d0572a9 100644 --- a/man3/size_t.3type +++ b/man3/size_t.3type @@ -1 +1,106 @@ -.so man7/system_data_types.7 +.\" Copyright (c) 2020-2022 by Alejandro Colomar +.\" and Copyright (c) 2020 by Michael Kerrisk +.\" +.\" 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 +.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 , +.IR , +.IR , +.IR , +.IR , +.IR , +.IR , +and +.I +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 , +.IR , +.IR , +.IR , +.IR , +.IR , +.IR , +.IR , +.IR , +.IR , +.IR , +.IR , +.IR , +.IR , +.IR , +.IR , +.IR , +.IR , +.IR , +.IR , +.IR , +.IR , +.IR , +.IR , +.IR , +and +.IR . +.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) diff --git a/man7/system_data_types.7 b/man7/system_data_types.7 index 99619615b8..de1df94173 100644 --- a/man7/system_data_types.7 +++ b/man7/system_data_types.7 @@ -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 -or -.IR . -Alternatively, -.IR , -.IR , -.IR , -.IR , -.IR , -.IR , -.IR , -.IR , -.IR , -.IR , -.IR , -.IR , -.IR , -.IR , -.IR , -.IR , -.IR , -.IR , -.IR , -.IR , -.IR , -.IR , -.IR , -.IR , -or -.IR . -.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 , -.IR , -.IR , -.IR , -.IR , -.IR , -.IR , -and -.I -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 ----------------------/