move wait.h macros out of bits. they do not vary.
This commit is contained in:
1 parent
f492c95401
commit
4b5f054098
6 files changed
+30
-49
No files matched your search
+8
-1
@@ -81,7 +81,14 @@ size_t wcstombs (char *, const wchar_t *, size_t);
|
||||
|| defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE)
|
||||
|
||||
#ifndef WEXITSTATUS
|
||||
#include <bits/wexitstatus.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) (((s) & 0xff) == 0x7f)
|
||||
#define WIFSIGNALED(s) (((signed char) (((s) & 0x7f) + 1) >> 1) > 0)
|
||||
#define WIFCONTINUED(s) ((s) == 0xffff)
|
||||
#endif
|
||||
|
||||
int posix_memalign (void **, size_t, size_t);
|
||||
|
||||
Reference in new issue
Block a user