summaryrefslogtreecommitdiff
path: root/Libraries/LibC/sys
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-07-14 11:31:34 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-07-14 11:31:53 +0200
commitde03b72979b8ba7bb50d49498cc9144ed99d3c44 (patch)
tree607d4270d11e23703f1223798a5928bdff24d504 /Libraries/LibC/sys
parentc9ee481cdf86dde52157a6b2ee5e308600f7a01d (diff)
downloadserenity-de03b72979b8ba7bb50d49498cc9144ed99d3c44.zip
LibC: Add WIFSTOPPED() macro in <sys/wait.h>.
Diffstat (limited to 'Libraries/LibC/sys')
-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