]> Savannah Git Hosting - gnulib.git/commitdiff
doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
authorEric Blake <eblake@redhat.com>
Wed, 13 Jul 2016 15:51:00 +0000 (09:51 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 13 Jul 2016 15:51:00 +0000 (09:51 -0600)
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 <eblake@redhat.com>
ChangeLog
doc/posix-headers/limits.texi
doc/posix-headers/stdint.texi

index abf9a354f1af2a9998d614be7b62a80c4c06a194..848da1b4835f64ac9dcb2bc171f257d4f23efdb8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2016-07-13  Eric Blake  <eblake@redhat.com>
+
+       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  <eggert@cs.ucla.edu>
 
        doc: mention glibc SSIZE_MAX buglet
index 43ecbfd4a641d9b42bb1415ef5eff27c88e202a0..9f4ffa58238727136fbb63f9b095918db9249531 100644 (file)
@@ -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.
index aeae7d5b35b0f7f08ff452ed918cfb0ac2c104ee..ee1c60e33d8dcca04466f1947f776455a410f107 100644 (file)
@@ -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}.