stdlib: clarify MirBSD WEXITSTATUS bug
authorBruno Haible <bruno@clisp.org>
Thu, 16 Sep 2010 00:25:57 +0000 (02:25 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 16 Sep 2010 00:25:57 +0000 (02:25 +0200)
* lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
* doc/posix-headers/stdlib.texi (stdlib.h): Likewise.

ChangeLog
doc/posix-headers/stdlib.texi
lib/stdlib.in.h

index bacfce3..2b51e26 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-09-15  Bruno Haible  <bruno@clisp.org>
+
+       stdlib: clarify MirBSD WEXITSTATUS bug
+       * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
+       * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
+
 2010-09-15  Eric Blake  <eblake@redhat.com>
 
        stdlib: work around MirBSD WEXITSTATUS bug
index f400f62..31bc7a8 100644 (file)
@@ -19,7 +19,10 @@ expressions:
 NetBSD 5.0
 
 @item
-Some platforms fail to provide @code{WEXITSTATUS} and friends:
+The macros @code{WIFSIGNALED}, @code{WIFEXITED}, @code{WIFSTOPPED},
+@code{WTERMSIG}, @code{WEXITSTATUS}, @code{WNOHANG}, @code{WUNTRACED},
+@code{WSTOPSIG} are not defined in this header file (only in
+@code{<sys/wait.h>} on some platforms:
 MirBSD 10.
 @end itemize
 
index 0c1c165..4629bd9 100644 (file)
@@ -38,7 +38,7 @@
 /* NetBSD 5.0 mis-defines NULL.  */
 #include <stddef.h>
 
-/* MirBSD 10 fails to define WEXITSTATUS.  */
+/* MirBSD 10 defines WEXITSTATUS in <sys/wait.h>, not in <stdlib.h>.  */
 #ifndef WEXITSTATUS
 # include <sys/wait.h>
 #endif