changeset 13683:ddd49c3ebee7

stdlib: clarify MirBSD WEXITSTATUS bug * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS. * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
author Bruno Haible <bruno@clisp.org>
date Thu, 16 Sep 2010 02:25:57 +0200
parents 9c6f4459f53d
children d971dba9e451
files ChangeLog doc/posix-headers/stdlib.texi lib/stdlib.in.h
diffstat 3 files changed, 11 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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
--- a/doc/posix-headers/stdlib.texi
+++ b/doc/posix-headers/stdlib.texi
@@ -19,7 +19,10 @@
 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
 
--- a/lib/stdlib.in.h
+++ b/lib/stdlib.in.h
@@ -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