1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-01 10:06:57 +03:00

Fix typos and pretty printing in sys/wait.h.

This commit is contained in:
Ulrich Drepper
2009-05-16 12:47:15 -07:00
parent 8f0d3f499f
commit c457bc139e
2 changed files with 15 additions and 14 deletions

View File

@ -1,6 +1,7 @@
2009-05-16 Ulrich Drepper <drepper@redhat.com> 2009-05-16 Ulrich Drepper <drepper@redhat.com>
* stdlib/stdlib.h: Fix types. Pretty printing. Correct comments. * posix/sys/wait.h: Fix typos. Pretty printing.
* stdlib/stdlib.h: Likewise. Correct comments.
[BZ #10159] [BZ #10159]
* stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>. * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.

View File

@ -1,4 +1,4 @@
/* Copyright (C) 1991-1994,1996-2001,2003,2004,2005,2007 /* Copyright (C) 1991-1994,1996-2001,2003,2004,2005,2007,2009
Free Software Foundation, Inc. Free Software Foundation, Inc.
This file is part of the GNU C Library. This file is part of the GNU C Library.
@ -51,7 +51,7 @@ __BEGIN_DECLS
# endif # endif
/* This is the type of the argument to `wait'. The funky union /* This is the type of the argument to `wait'. The funky union
causes redeclarations with ether `int *' or `union wait *' to be causes redeclarations with either `int *' or `union wait *' to be
allowed without complaint. __WAIT_STATUS_DEFN is the type used in allowed without complaint. __WAIT_STATUS_DEFN is the type used in
the actual function definitions. */ the actual function definitions. */
@ -79,22 +79,22 @@ typedef union
/* This will define all the `__W*' macros. */ /* This will define all the `__W*' macros. */
# include <bits/waitstatus.h> # include <bits/waitstatus.h>
# define WEXITSTATUS(status) __WEXITSTATUS(__WAIT_INT(status)) # define WEXITSTATUS(status) __WEXITSTATUS (__WAIT_INT (status))
# define WTERMSIG(status) __WTERMSIG(__WAIT_INT(status)) # define WTERMSIG(status) __WTERMSIG (__WAIT_INT (status))
# define WSTOPSIG(status) __WSTOPSIG(__WAIT_INT(status)) # define WSTOPSIG(status) __WSTOPSIG (__WAIT_INT (status))
# define WIFEXITED(status) __WIFEXITED(__WAIT_INT(status)) # define WIFEXITED(status) __WIFEXITED (__WAIT_INT (status))
# define WIFSIGNALED(status) __WIFSIGNALED(__WAIT_INT(status)) # define WIFSIGNALED(status) __WIFSIGNALED (__WAIT_INT (status))
# define WIFSTOPPED(status) __WIFSTOPPED(__WAIT_INT(status)) # define WIFSTOPPED(status) __WIFSTOPPED (__WAIT_INT (status))
# ifdef __WIFCONTINUED # ifdef __WIFCONTINUED
# define WIFCONTINUED(status) __WIFCONTINUED(__WAIT_INT(status)) # define WIFCONTINUED(status) __WIFCONTINUED (__WAIT_INT (status))
# endif # endif
#endif /* <stdlib.h> not included. */ #endif /* <stdlib.h> not included. */
#ifdef __USE_BSD #ifdef __USE_BSD
# define WCOREFLAG __WCOREFLAG # define WCOREFLAG __WCOREFLAG
# define WCOREDUMP(status) __WCOREDUMP(__WAIT_INT(status)) # define WCOREDUMP(status) __WCOREDUMP (__WAIT_INT (status))
# define W_EXITCODE(ret, sig) __W_EXITCODE(ret, sig) # define W_EXITCODE(ret, sig) __W_EXITCODE (ret, sig)
# define W_STOPCODE(sig) __W_STOPCODE(sig) # define W_STOPCODE(sig) __W_STOPCODE (sig)
#endif #endif
/* The following values are used by the `waitid' function. */ /* The following values are used by the `waitid' function. */