summaryrefslogtreecommitdiff
path: root/system/include/libc/sys/file.h
diff options
context:
space:
mode:
Diffstat (limited to 'system/include/libc/sys/file.h')
-rw-r--r--system/include/libc/sys/file.h21
1 files changed, 20 insertions, 1 deletions
diff --git a/system/include/libc/sys/file.h b/system/include/libc/sys/file.h
index 58d4fac3..4fc83b98 100644
--- a/system/include/libc/sys/file.h
+++ b/system/include/libc/sys/file.h
@@ -1,2 +1,21 @@
+#ifndef _SYS_FILE_H
+#define _SYS_FILE_H
+#ifdef __cplusplus
+extern "C" {
+#endif
-#include <sys/fcntl.h>
+#define LOCK_SH 1
+#define LOCK_EX 2
+#define LOCK_NB 4
+#define LOCK_UN 8
+
+#define L_SET 0
+#define L_INCR 1
+#define L_XTND 2
+
+int flock(int, int);
+
+#ifdef __cplusplus
+}
+#endif
+#endif