From: Eric Blake Date: Wed, 13 Jul 2016 15:51:00 +0000 (-0600) Subject: doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet X-Git-Tag: v1.0~6716 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=1513c61836c96010f915ac1c9ba188095985030a;p=gnulib.git doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet More platforms have similar bugs, and in the case of glibc on s390, the bug is in SIZE_MAX instead of SSIZE_MAX. * doc/posix-headers/stdint.texi (stdint.h): Document the bugs. * doc/posix-headers/limits.texi (limits.h): Document the bugs. Signed-off-by: Eric Blake --- diff --git a/ChangeLog b/ChangeLog index abf9a354f1..848da1b483 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2016-07-13 Eric Blake + + doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet + * doc/posix-headers/stdint.texi (stdint.h): Document the bugs. + * doc/posix-headers/limits.texi (limits.h): Document the bugs. + 2016-07-13 Paul Eggert doc: mention glibc SSIZE_MAX buglet diff --git a/doc/posix-headers/limits.texi b/doc/posix-headers/limits.texi index 43ecbfd4a6..9f4ffa5823 100644 --- a/doc/posix-headers/limits.texi +++ b/doc/posix-headers/limits.texi @@ -25,7 +25,7 @@ glibc 2.11 without @code{-D_GNU_SOURCE}, Cygwin, mingw, MSVC 9. @item The macro @code{SSIZE_MAX} has the wrong type, albeit with the correct value: -glibc 2.24. +32-bit glibc 2.24 (on some architectures), Cygwin 2.5.2. @item The macro @code{SSIZE_MAX} is not defined on some platforms: MSVC 9. diff --git a/doc/posix-headers/stdint.texi b/doc/posix-headers/stdint.texi index aeae7d5b35..ee1c60e33d 100644 --- a/doc/posix-headers/stdint.texi +++ b/doc/posix-headers/stdint.texi @@ -45,6 +45,10 @@ so public header files should avoid these types. @item Macros are used instead of typedefs. @item +The macro @code{SIZE_MAX} has the wrong type, +albeit with the correct value: +32-bit glibc 2.24 (on s390 architecture), Mac OS X 10.7. +@item Some C preprocessors mishandle constants that do not fit in @code{long int}. For example, as of 2007, Sun C mishandles @code{#if LLONG_MIN < 0} on a platform with 32-bit @code{long int} and 64-bit @code{long long int}.