mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-25 04:01:10 +00:00
a75d3b0288
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.
89 lines
1.6 KiB
Plaintext
89 lines
1.6 KiB
Plaintext
#if !defined ISO && !defined ISO99 && !defined ISO11
|
|
#ifdef POSIX
|
|
# define pid_t __pid_t
|
|
#endif
|
|
|
|
constant WNOHANG
|
|
constant WUNTRACED
|
|
|
|
macro WEXITSTATUS
|
|
# if !defined POSIX && !defined POSIX2008
|
|
macro WIFCONTINUED
|
|
# endif
|
|
macro WIFEXITED
|
|
macro WIFSIGNALED
|
|
macro WIFSTOPPED
|
|
macro WSTOPSIG
|
|
macro WTERMSIG
|
|
|
|
# ifndef POSIX
|
|
constant WEXITED
|
|
constant WSTOPPED
|
|
# ifndef POSIX2008
|
|
constant WCONTINUED
|
|
# endif
|
|
constant WNOHANG
|
|
constant WNOWAIT
|
|
# endif
|
|
|
|
#if !defined POSIX
|
|
type idtype_t
|
|
|
|
constant P_ALL
|
|
constant P_PID
|
|
constant P_PGID
|
|
|
|
type id_t
|
|
|
|
type siginfo_t
|
|
|
|
element siginfo_t int si_signo
|
|
element siginfo_t int si_errno
|
|
element siginfo_t int si_code
|
|
element siginfo_t pid_t si_pid
|
|
element siginfo_t uid_t si_uid
|
|
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}
|
|
|
|
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
|
|
function pid_t wait3 (int*, int, struct rusage*)
|
|
#endif
|
|
#if !defined POSIX
|
|
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
|
|
|
|
allow si_*
|
|
allow W*
|
|
allow P_*
|
|
allow BUS_
|
|
allow CLD_
|
|
allow FPE_
|
|
allow ILL_
|
|
allow POLL_
|
|
allow SEGV_
|
|
allow SI_
|
|
allow TRAP_
|
|
#endif
|
|
allow *_t
|
|
#endif
|