Hi Eric,
> +...@item
> +Some platforms fail to provide @code{WEXITSTATUS} and friends:
> +MirBSD 10.
I find this problem description a bit ambiguous, therefore this follow-up
patch, to improve the wording.
2010-09-15 Bruno Haible <[email protected]>
stdlib: clarify MirBSD WEXITSTATUS bug
* lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
* doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
--- doc/posix-headers/stdlib.texi.orig Thu Sep 16 02:21:29 2010
+++ doc/posix-headers/stdlib.texi Thu Sep 16 02:19:38 2010
@@ -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
--- lib/stdlib.in.h.orig Thu Sep 16 02:21:29 2010
+++ lib/stdlib.in.h Thu Sep 16 02:21:17 2010
@@ -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