projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
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
+++ 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);
+}