summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/linux/flock.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/linux/flock.c b/src/linux/flock.c
new file mode 100644
index 00000000..87aa5cfe
--- /dev/null
+++ b/src/linux/flock.c
@@ -0,0 +1,7 @@
+#include <sys/file.h>
+#include "syscall.h"
+
+int flock(int fd, int op)
+{
+ return syscall(SYS_flock, fd, op);
+}