mirror of
git://git.musl-libc.org/musl
synced 2025-03-06 20:48:29 +01:00
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...
This commit is contained in:
parent
6f0259a4fc
commit
55b123b5ed
1 changed files with 7 additions and 0 deletions
7
src/linux/flock.c
Normal file
7
src/linux/flock.c
Normal file
|
@ -0,0 +1,7 @@
|
|||
#include <sys/file.h>
|
||||
#include "syscall.h"
|
||||
|
||||
int flock(int fd, int op)
|
||||
{
|
||||
return syscall(SYS_flock, fd, op);
|
||||
}
|
Loading…
Add table
Reference in a new issue