diff options
author | Joseph Myers <joseph@codesourcery.com> | 2014-10-14 17:00:11 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2014-10-14 17:00:11 +0000 |
commit | a75d3b0288357ddb5fa070404d623a709cffc295 (patch) | |
tree | 39f0360e06eebbf4f7221c191efd2ed7a9d67f76 /conform/data/sys | |
parent | fda389c8f0311dd5786be91a7b54b9f935fcafa1 (diff) | |
download | glibc-a75d3b0288357ddb5fa070404d623a709cffc295.tar.gz glibc-a75d3b0288357ddb5fa070404d623a709cffc295.tar.xz glibc-a75d3b0288357ddb5fa070404d623a709cffc295.zip |
conformtest: clean up POSIX expections for sys/utsname.h, sys/wait.h.
Continuing the series of patches to clean up conformtest expectations for "POSIX" (1995/6) based on review of the expectations against the standard, this patch cleans up expectations for sys/utsname.h and sys/wait.h. Tested x86_64; a new XFAIL for sys/wait.h is added. * conform/data/sys/utsname.h-data (*_t): Allow. * conform/data/sys/wait.h-data [POSIX] (uid_t): Do not define. [POSIX] (WEXITED): Do not expect constant. [POSIX] (WSTOPPED): Likewise. [POSIX] (WNOHANG): Likewise. [POSIX] (WNOWAIT): Likewise. [POSIX] (siginfo_t): Do not expect type or elements. [POSIX] (pid_t): Do not expect type. [POSIX] (signal.h): Do not allow header. [POSIX] (sys/resource.h): Likewise. [POSIX] (si_*): Do not allow pattern. [POSIX] (W*): Likewise. [POSIX] (P_*): Likewise. [POSIX] (BUS_*): Likewise. [POSIX] (CLD_*): Likewise. [POSIX] (FPE_*): Likewise. [POSIX] (ILL_*): Likewise. [POSIX] (POLL_*): Likewise. [POSIX] (SEGV_*): Likewise. [POSIX] (SI_*): Likewise. [POSIX] (TRAP_*): Likewise. * conform/Makefile (test-xfail-POSIX/sys/wait.h/conform): New variable.
Diffstat (limited to 'conform/data/sys')
-rw-r--r-- | conform/data/sys/utsname.h-data | 1 | ||||
-rw-r--r-- | conform/data/sys/wait.h-data | 13 |
2 files changed, 10 insertions, 4 deletions
diff --git a/conform/data/sys/utsname.h-data b/conform/data/sys/utsname.h-data index 3564627394..82f7f397ca 100644 --- a/conform/data/sys/utsname.h-data +++ b/conform/data/sys/utsname.h-data @@ -8,4 +8,5 @@ element {struct utsname} char version [] element {struct utsname} char machine [] function int uname (struct utsname *) +allow *_t #endif diff --git a/conform/data/sys/wait.h-data b/conform/data/sys/wait.h-data index 6acdab296b..e0787e3b5d 100644 --- a/conform/data/sys/wait.h-data +++ b/conform/data/sys/wait.h-data @@ -1,7 +1,6 @@ #if !defined ISO && !defined ISO99 && !defined ISO11 #ifdef POSIX # define pid_t __pid_t -# define uid_t __uid_t #endif constant WNOHANG @@ -17,13 +16,15 @@ macro WIFSTOPPED macro WSTOPSIG macro WTERMSIG +# ifndef POSIX constant WEXITED constant WSTOPPED -# if !defined POSIX && !defined POSIX2008 +# ifndef POSIX2008 constant WCONTINUED -# endif +# endif constant WNOHANG constant WNOWAIT +# endif #if !defined POSIX type idtype_t @@ -33,7 +34,6 @@ constant P_PID constant P_PGID type id_t -#endif type siginfo_t @@ -46,6 +46,7 @@ element siginfo_t {void*} si_addr element siginfo_t int si_status element siginfo_t long si_band element siginfo_t {union sigval} si_value +#endif #if !defined POSIX && !defined XPG3 && !defined XOPEN2K8 && !defined POSIX2008 type {struct rusage} @@ -54,7 +55,9 @@ element {struct rusage} {struct timeval} ru_utime element {struct rusage} {struct timeval} ru_stime #endif +#if !defined POSIX type pid_t +#endif function pid_t wait (int*) #if !defined POSIX && !defined XOPEN2K && !defined XOPEN2K8 && !defined POSIX2008 @@ -65,6 +68,7 @@ function int waitid (idtype_t, id_t, siginfo_t*, int) #endif function pid_t waitpid (pid_t, int*, int) +#if !defined POSIX allow-header signal.h allow-header sys/resource.h @@ -79,5 +83,6 @@ allow POLL_ allow SEGV_ allow SI_ allow TRAP_ +#endif allow *_t #endif |