summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibC
diff options
context:
space:
mode:
authorJelle Raaijmakers <jelle@gmta.nl>2021-06-04 01:45:04 +0200
committerAndreas Kling <kling@serenityos.org>2021-06-04 10:39:41 +0200
commit496988de476ffd6ebeb208c508a66ebff5fc34bc (patch)
treee6db0bf8582662344db3c4e3c64b0f2f64768559 /Userland/Libraries/LibC
parent99a79a364a27c35ddef89bc8e41f8fbce19222e7 (diff)
downloadserenity-496988de476ffd6ebeb208c508a66ebff5fc34bc.zip
LibC: Add POSIX timer constants
Diffstat (limited to 'Userland/Libraries/LibC')
-rw-r--r--Userland/Libraries/LibC/unistd.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Userland/Libraries/LibC/unistd.h b/Userland/Libraries/LibC/unistd.h
index 7fdd3bd902..136581266a 100644
--- a/Userland/Libraries/LibC/unistd.h
+++ b/Userland/Libraries/LibC/unistd.h
@@ -141,7 +141,9 @@ enum {
#define MS_RDONLY (1 << 4)
#define MS_REMOUNT (1 << 5)
+#define _POSIX_MONOTONIC_CLOCK 200112L
#define _POSIX_SAVED_IDS
+#define _POSIX_TIMERS 200809L
/*
* We aren't fully compliant (don't support policies, and don't have a wide
@@ -151,6 +153,7 @@ enum {
#define _POSIX_VDISABLE '\0'
enum {
+ _SC_MONOTONIC_CLOCK,
_SC_NPROCESSORS_CONF,
_SC_NPROCESSORS_ONLN,
_SC_OPEN_MAX,
@@ -160,6 +163,7 @@ enum {
_SC_CLK_TCK,
};
+#define _SC_MONOTONIC_CLOCK _SC_MONOTONIC_CLOCK
#define _SC_NPROCESSORS_CONF _SC_NPROCESSORS_CONF
#define _SC_NPROCESSORS_ONLN _SC_NPROCESSORS_ONLN
#define _SC_OPEN_MAX _SC_OPEN_MAX