sysdeps/squiid: Fix sys/wait.h header macros
Some checks failed
Continuous Integration / Build mlibc (mlibc) (push) Has been cancelled
Continuous Integration / Build mlibc (mlibc-ansi-only) (push) Has been cancelled
Continuous Integration / Build mlibc (mlibc-static) (push) Has been cancelled
Continuous Integration / Compile sysdeps (dripos) (push) Has been cancelled
Continuous Integration / Compile sysdeps (lemon) (push) Has been cancelled
Continuous Integration / Compile sysdeps (qword) (push) Has been cancelled

Signed-off-by: Christoph Heiss <contact@christoph-heiss.at>
This commit is contained in:
Christoph Heiss 2022-01-23 16:44:36 +01:00
parent 27518a8cb0
commit f9f36fec18
Signed by: c8h4
GPG key ID: 9C82009BEEDEA0FF
2 changed files with 12 additions and 7 deletions

View file

@ -11,9 +11,9 @@
#define WSTOPSIG(x) (((x) & 0x0000ff00) >> 8) #define WSTOPSIG(x) (((x) & 0x0000ff00) >> 8)
#define WTERMSIG(x) (((x) & 0x00ff0000) >> 16) #define WTERMSIG(x) (((x) & 0x00ff0000) >> 16)
#define WIFCONTINUED(x) ((x) & 0x00100000) #define WIFCONTINUED(x) (((x) & 0x00100000) == 0x00100000)
#define WIFEXITED(x) ((x) & 0x00200000) #define WIFEXITED(x) (((x) & 0x00200000) == 0x00200000)
#define WIFSIGNALED(x) ((x) & 0x00400000) #define WIFSIGNALED(x) (((x) & 0x00400000) == 0x00400000)
#define WIFSTOPPED(x) ((x) & 0x00800000) #define WIFSTOPPED(x) (((x) & 0x00800000) == 0x00800000)
#endif //_ABIBITS_WAIT_H #endif //_ABIBITS_WAIT_H

View file

@ -61,9 +61,14 @@
#define SQ_WAIT_STAT_EXITED 0x200000 #define SQ_WAIT_STAT_EXITED 0x200000
#define SQ_WAIT_STAT_SIGNALED 0x400000 #define SQ_WAIT_STAT_SIGNALED 0x400000
#define SQ_WAIT_STAT_STOPPED 0x800000 #define SQ_WAIT_STAT_STOPPED 0x800000
#define SQ_WAIT_STAT_EXITCODE_MASK 0xff
#define SQ_WAIT_STAT_STOPSIG_MASK 0xff00 #define __SQ_WAIT_STAT_EXITCODE_SHIFT 0
#define SQ_WAIT_STAT_TERMSIG_MASK 0xff0000 #define __SQ_WAIT_STAT_STOPSIG_SHIFT 8
#define __SQ_WAIT_STAT_TERMSIG_SHIFT 16
#define SQ_WAIT_STAT_EXITCODE_MASK (0xff << __SQ_WAIT_STAT_EXITCODE_SHIFT)
#define SQ_WAIT_STAT_STOPSIG_MASK (0xff << __SQ_WAIT_STAT_STOPSIG_SHIFT)
#define SQ_WAIT_STAT_TERMSIG_MASK (0xff << __SQ_WAIT_STAT_TERMSIG_SHIFT)
#ifndef __ASSEMBLER__ #ifndef __ASSEMBLER__