summaryrefslogtreecommitdiff
path: root/Libraries/LibC/sys/wait.h
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibC/sys/wait.h')
-rw-r--r--Libraries/LibC/sys/wait.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Libraries/LibC/sys/wait.h b/Libraries/LibC/sys/wait.h
index 3fedd42b2c..43b999a762 100644
--- a/Libraries/LibC/sys/wait.h
+++ b/Libraries/LibC/sys/wait.h
@@ -8,6 +8,7 @@ __BEGIN_DECLS
#define WEXITSTATUS(status) (((status)&0xff00) >> 8)
#define WTERMSIG(status) ((status)&0x7f)
#define WIFEXITED(status) (WTERMSIG(status) == 0)
+#define WIFSTOPPED(status) (((status) & 0xff) == 0x7f)
#define WIFSIGNALED(status) (((char)(((status)&0x7f) + 1) >> 1) > 0)
#define WNOHANG 1