summaryrefslogtreecommitdiff
path: root/Kernel/API
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/API')
-rw-r--r--Kernel/API/POSIX/stdio.h21
-rw-r--r--Kernel/API/POSIX/unistd.h4
2 files changed, 21 insertions, 4 deletions
diff --git a/Kernel/API/POSIX/stdio.h b/Kernel/API/POSIX/stdio.h
new file mode 100644
index 0000000000..9151b849b4
--- /dev/null
+++ b/Kernel/API/POSIX/stdio.h
@@ -0,0 +1,21 @@
+/*
+ * Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org>
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
+
+#pragma once
+
+#include <Kernel/API/POSIX/sys/types.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define SEEK_SET 0
+#define SEEK_CUR 1
+#define SEEK_END 2
+
+#ifdef __cplusplus
+}
+#endif
diff --git a/Kernel/API/POSIX/unistd.h b/Kernel/API/POSIX/unistd.h
index 2562b923f0..dcdd23aa40 100644
--- a/Kernel/API/POSIX/unistd.h
+++ b/Kernel/API/POSIX/unistd.h
@@ -48,10 +48,6 @@ enum {
#define _SC_GETPW_R_SIZE_MAX _SC_GETPW_R_SIZE_MAX
#define _SC_CLK_TCK _SC_CLK_TCK
-#define SEEK_SET 0
-#define SEEK_CUR 1
-#define SEEK_END 2
-
#ifdef __cplusplus
}
#endif