diff options
author | mike <mike@FreeBSD.org> | 2002-06-05 02:21:01 +0000 |
---|---|---|
committer | mike <mike@FreeBSD.org> | 2002-06-05 02:21:01 +0000 |
commit | b454ba8ad41b2a035e11a9c5a65674eb3116ec2c (patch) | |
tree | b96744ef1c5910f177bd9b18502125786cd8ddc1 /sys | |
parent | c2f44f7a3785e681e5e8c4421a2fec94b9f0b19b (diff) | |
download | FreeBSD-src-b454ba8ad41b2a035e11a9c5a65674eb3116ec2c.zip FreeBSD-src-b454ba8ad41b2a035e11a9c5a65674eb3116ec2c.tar.gz |
Remove the deprecated 4.2/4.3BSD wait union.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sys/wait.h | 59 |
1 files changed, 3 insertions, 56 deletions
diff --git a/sys/sys/wait.h b/sys/sys/wait.h index b093b64..74ed683 100644 --- a/sys/sys/wait.h +++ b/sys/sys/wait.h @@ -37,6 +37,8 @@ #ifndef _SYS_WAIT_H_ #define _SYS_WAIT_H_ +#include <sys/cdefs.h> + /* * This file holds definitions relevant to the wait4 system call and the * alternate interfaces that use it (wait, wait3, waitpid). @@ -86,71 +88,16 @@ #define WLINUXCLONE 0x80000000 /* Wait for kthread spawned from linux_clone. */ #endif -#if __BSD_VISIBLE -/* POSIX extensions and 4.2/4.3 compatibility: */ - /* * Tokens for special values of the "pid" parameter to wait4. */ +#if __BSD_VISIBLE #define WAIT_ANY (-1) /* any process */ #define WAIT_MYPGRP 0 /* any process in my process group */ - -#include <machine/endian.h> - -/* - * Deprecated: - * Structure of the information in the status word returned by wait4. - * If w_stopval==WSTOPPED, then the second structure describes - * the information returned, else the first. - */ -union wait { - int w_status; /* used in syscall */ - /* - * Terminated process status. - */ - struct { -#if _BYTE_ORDER == _LITTLE_ENDIAN - unsigned int w_Termsig:7, /* termination signal */ - w_Coredump:1, /* core dump indicator */ - w_Retcode:8, /* exit code if w_termsig==0 */ - w_Filler:16; /* upper bits filler */ -#endif -#if _BYTE_ORDER == _BIG_ENDIAN - unsigned int w_Filler:16, /* upper bits filler */ - w_Retcode:8, /* exit code if w_termsig==0 */ - w_Coredump:1, /* core dump indicator */ - w_Termsig:7; /* termination signal */ -#endif - } w_T; - /* - * Stopped process status. Returned only for traced children unless - * requested with the WUNTRACED option bit. - */ - struct { -#if _BYTE_ORDER == _LITTLE_ENDIAN - unsigned int w_Stopval:8, /* == W_STOPPED if stopped */ - w_Stopsig:8, /* signal that stopped us */ - w_Filler:16; /* upper bits filler */ -#endif -#if _BYTE_ORDER == _BIG_ENDIAN - unsigned int w_Filler:16, /* upper bits filler */ - w_Stopsig:8, /* signal that stopped us */ - w_Stopval:8; /* == W_STOPPED if stopped */ -#endif - } w_S; -}; -#define w_termsig w_T.w_Termsig -#define w_coredump w_T.w_Coredump -#define w_retcode w_T.w_Retcode -#define w_stopval w_S.w_Stopval -#define w_stopsig w_S.w_Stopsig - -#define WSTOPPED _WSTOPPED #endif /* __BSD_VISIBLE */ #ifndef _KERNEL #include <sys/types.h> -#include <sys/cdefs.h> __BEGIN_DECLS struct rusage; /* forward declaration */ |