[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] stdlib: work around MirBSD WEXITSTATUS bug
From: |
Bruno Haible |
Subject: |
Re: [PATCH] stdlib: work around MirBSD WEXITSTATUS bug |
Date: |
Thu, 16 Sep 2010 02:25:33 +0200 |
User-agent: |
KMail/1.9.9 |
Hi Eric,
> address@hidden
> +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 <address@hidden>
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},
address@hidden, @code{WEXITSTATUS}, @code{WNOHANG}, @code{WUNTRACED},
address@hidden are not defined in this header file (only in
address@hidden<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