summaryrefslogtreecommitdiff
path: root/include/mach/sa/fcntl.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/mach/sa/fcntl.h')
-rw-r--r--include/mach/sa/fcntl.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/mach/sa/fcntl.h b/include/mach/sa/fcntl.h
new file mode 100644
index 0000000..ac86fe3
--- /dev/null
+++ b/include/mach/sa/fcntl.h
@@ -0,0 +1,22 @@
+#ifndef _MACH_SA_FCNTL_H_
+#define _MACH_SA_FCNTL_H_
+
+#include <sys/cdefs.h>
+
+#define O_ACCMODE 0x0003
+#define O_RDONLY 0x0000
+#define O_WRONLY 0x0001
+#define O_RDWR 0x0002
+
+#define O_CREAT 0x0010
+#define O_TRUNC 0x0020
+#define O_APPEND 0x0040
+#define O_EXCL 0x0080
+
+__BEGIN_DECLS
+
+int open(const char *__name, int __mode, ...);
+
+__END_DECLS
+
+#endif /* _MACH_SA_FCNTL_H_ */