From b383f3358125bf7ae0353f4f0143592284f05e64 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Tue, 22 Sep 2020 09:56:03 +0200 Subject: [PATCH] system_data_types.7: Add further POSIX details for size_t, ssize_t, and suseconds_t The implementation shall support one or more programming environments where these types are no wider than 'long'. Signed-off-by: Michael Kerrisk --- man7/system_data_types.7 | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/man7/system_data_types.7 b/man7/system_data_types.7 index 2bd124967..ce439a0a8 100644 --- a/man7/system_data_types.7 +++ b/man7/system_data_types.7 @@ -458,6 +458,12 @@ 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 . .IP The length modifier for .I size_t @@ -533,7 +539,12 @@ or Used for a count of bytes or an error indication. According to POSIX, it shall be a signed integer type capable of storing values at least in the range [-1, -.BR SSIZE_MAX ]. +.BR SSIZE_MAX ], +and the implementation shall support one or more programming environments +where the width of +.I ssize_t +is no greater than the width of the type +.IR long . .IP Glibc and most other implementations provide a length modifier for .I ssize_t @@ -589,7 +600,12 @@ or .IP Used for time in microseconds. According to POSIX, it shall be a signed integer type -capable of storing values at least in the range [-1, 1000000]. +capable of storing values at least in the range [-1, 1000000], +iand the implementation shall support one or more programming environments +where the width of +.I suseconds_t +is no greater than the width of the type +.IR long . .IP Conforming to: POSIX.1-2001 and later. .IP