add syscall wrapper for flock
[musl] / src / linux / flock.c
diff --git a/src/linux/flock.c b/src/linux/flock.c
new file mode 100644 (file)
index 0000000..87aa5cf
--- /dev/null
@@ -0,0 +1,7 @@
+#include <sys/file.h>
+#include "syscall.h"
+
+int flock(int fd, int op)
+{
+       return syscall(SYS_flock, fd, op);
+}