aboutsummaryrefslogtreecommitdiff
path: root/src/libc/include/fcntl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libc/include/fcntl.h')
-rw-r--r--src/libc/include/fcntl.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/libc/include/fcntl.h b/src/libc/include/fcntl.h
index 282ced8..1edf2fc 100644
--- a/src/libc/include/fcntl.h
+++ b/src/libc/include/fcntl.h
@@ -19,11 +19,12 @@
#ifndef _FCNTL_H
#define _FCNTL_H
-enum
-{
- O_RDONLY = 1,
- O_WRONLY = 1 << 1,
- O_RDWR = O_RDONLY | O_WRONLY
-};
+#define O_RDONLY 1
+#define O_WRONLY (1 << 1)
+#define O_CREAT (1 << 2)
+#define O_APPEND (1 << 3)
+#define O_RDWR (O_RDONLY | O_WRONLY)
+
+int open(const char *__path, int __flags, ...);
#endif