Skip to content

Commit

Permalink
Fix up sys/wait.h header for XPG7.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrich Drepper committed Jan 10, 2010
1 parent f9cfa29 commit 99d46ae
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 2 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

* posix/glob.h: Define size_t.

* posix/sys/wait.h: Define idtype_t and declare waitid for XPG7.

2010-01-10 Ulrich Drepper <drepper@redhat.com>

* conform/conformtest.pl: For XPG7 testing the headers are supposed to
Expand Down
2 changes: 2 additions & 0 deletions conform/data/sys/wait.h-data
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ element {struct rusage} {struct timeval} ru_stime
type pid_t

function pid_t wait (int*)
#if !defined XOPEN2K && !defined XOPEN2K8 && !defined POSIX2008
function pid_t wait3 (int*, int, struct rusage*)
#endif
function int waitid (idtype_t, id_t, siginfo_t*, int)
function pid_t waitpid (pid_t, int*, int)

Expand Down
8 changes: 4 additions & 4 deletions posix/sys/wait.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright (C) 1991-1994,1996-2001,2003,2004,2005,2007,2009
/* Copyright (C) 1991-1994,1996-2001,2003,2004,2005,2007,2009,2010
Free Software Foundation, Inc.
This file is part of the GNU C Library.
Expand Down Expand Up @@ -45,7 +45,7 @@ __BEGIN_DECLS
# if defined __GNUC__ && !defined __cplusplus
# define __WAIT_INT(status) \
(__extension__ (((union { __typeof(status) __in; int __i; }) \
{ .__in = (status) }).__i))
{ .__in = (status) }).__i))
# else
# define __WAIT_INT(status) (*(__const int *) &(status))
# endif
Expand Down Expand Up @@ -98,7 +98,7 @@ typedef union
#endif

/* The following values are used by the `waitid' function. */
#if defined __USE_SVID || defined __USE_XOPEN
#if defined __USE_SVID || defined __USE_XOPEN || defined __USE_XOPEN2K8
typedef enum
{
P_ALL, /* Wait for any child. */
Expand Down Expand Up @@ -138,7 +138,7 @@ extern __pid_t wait (__WAIT_STATUS __stat_loc);
__THROW. */
extern __pid_t waitpid (__pid_t __pid, int *__stat_loc, int __options);

#if defined __USE_SVID || defined __USE_XOPEN
#if defined __USE_SVID || defined __USE_XOPEN || defined __USE_XOPEN2K8
# define __need_siginfo_t
# include <bits/siginfo.h>
/* Wait for a childing matching IDTYPE and ID to change the status and
Expand Down

0 comments on commit 99d46ae

Please sign in to comment.