06a8d5d89d
Remove the broken Rust functions and instead provide C macros in a `include/bits` header. The C macros were taken from musl.
14 lines
422 B
C
14 lines
422 B
C
#ifndef _BITS_SYS_WAIT_H
|
|
#define _BITS_SYS_WAIT_H
|
|
|
|
#define WEXITSTATUS(s) (((s) & 0xff00) >> 8)
|
|
#define WTERMSIG(s) ((s) & 0x7f)
|
|
#define WSTOPSIG(s) WEXITSTATUS(s)
|
|
#define WCOREDUMP(s) ((s) & 0x80)
|
|
#define WIFEXITED(s) (!WTERMSIG(s))
|
|
#define WIFSTOPPED(s) ((short)((((s)&0xffff)*0x10001)>>8) > 0x7f00)
|
|
#define WIFSIGNALED(s) (((s)&0xffff)-1U < 0xffu)
|
|
#define WIFCONTINUED(s) ((s) == 0xffff)
|
|
|
|
#endif /* _BITS_SYS_WAIT_H */
|