From: Rich Felker Date: Wed, 13 Apr 2011 18:55:26 +0000 (-0400) Subject: add syscall wrapper for flock X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=commitdiff_plain;h=55b123b5ede22f5c401d2992ae933a2f935dac6c;ds=sidebyside add syscall wrapper for flock it should be noted that flock does not mix well with standard fcntl locking, but nonetheless some applications will attempt to use flock instead of fcntl if both exist. options to configure or small patches may be needed. debian maintainers have plenty of experience with this unfortunate situation... --- 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 +#include "syscall.h" + +int flock(int fd, int op) +{ + return syscall(SYS_flock, fd, op); +}