Remove the deprecated 4.2/4.3BSD wait union.
This commit is contained in:
parent
d9cd71b6e1
commit
8375a2c466
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user