mirror of
https://github.com/fluencelabs/musl
synced 2025-06-11 22:11:34 +00:00
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...
8 lines
110 B
C
8 lines
110 B
C
#include <sys/file.h>
|
|
#include "syscall.h"
|
|
|
|
int flock(int fd, int op)
|
|
{
|
|
return syscall(SYS_flock, fd, op);
|
|
}
|