From: Bruno Haible Date: Thu, 16 Sep 2010 00:25:57 +0000 (+0200) Subject: stdlib: clarify MirBSD WEXITSTATUS bug X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=556455d68c4c3d67cf264a4c7c24d15174719004;p=pspp stdlib: clarify MirBSD WEXITSTATUS bug * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS. * doc/posix-headers/stdlib.texi (stdlib.h): Likewise. --- diff --git a/ChangeLog b/ChangeLog index bacfce3126..2b51e267cb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2010-09-15 Bruno Haible + + 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 stdlib: work around MirBSD WEXITSTATUS bug diff --git a/doc/posix-headers/stdlib.texi b/doc/posix-headers/stdlib.texi index f400f62749..31bc7a81e4 100644 --- a/doc/posix-headers/stdlib.texi +++ b/doc/posix-headers/stdlib.texi @@ -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{} on some platforms: MirBSD 10. @end itemize diff --git a/lib/stdlib.in.h b/lib/stdlib.in.h index 0c1c165935..4629bd9868 100644 --- a/lib/stdlib.in.h +++ b/lib/stdlib.in.h @@ -38,7 +38,7 @@ /* NetBSD 5.0 mis-defines NULL. */ #include -/* MirBSD 10 fails to define WEXITSTATUS. */ +/* MirBSD 10 defines WEXITSTATUS in , not in . */ #ifndef WEXITSTATUS # include #endif