summaryrefslogtreecommitdiff
path: root/Libraries
diff options
context:
space:
mode:
authorSergey Bugaev <bugaevc@serenityos.org>2020-05-28 17:52:02 +0300
committerAndreas Kling <kling@serenityos.org>2020-05-29 07:53:30 +0200
commitb9051263658c405a69bd8bd8030420157d3ca0e0 (patch)
tree3dc8857757e59794ac335cbe49e9fa1588cc193b /Libraries
parentb6845de3f6e448136c2b486c7d4cedda8c88956a (diff)
downloadserenity-b9051263658c405a69bd8bd8030420157d3ca0e0.zip
Kernel+LibC: Move O_* and MS_* flags to UnixTypes.h
That's where the other similar definitions reside. Also, use bit shift operations for MS_* values.
Diffstat (limited to 'Libraries')
-rw-r--r--Libraries/LibC/unistd.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/Libraries/LibC/unistd.h b/Libraries/LibC/unistd.h
index 82174d6a8e..4a4621fe8e 100644
--- a/Libraries/LibC/unistd.h
+++ b/Libraries/LibC/unistd.h
@@ -149,10 +149,10 @@ enum {
#define X_OK 1
#define F_OK 0
-#define MS_NODEV 1
-#define MS_NOEXEC 2
-#define MS_NOSUID 4
-#define MS_BIND 8
+#define MS_NODEV (1 << 0)
+#define MS_NOEXEC (1 << 1)
+#define MS_NOSUID (1 << 2)
+#define MS_BIND (1 << 3)
/*
* We aren't fully compliant (don't support policies, and don't have a wide