提交 55b123b5 编写于 作者: R Rich Felker

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...
上级 6f0259a4
#include <sys/file.h>
#include "syscall.h"
int flock(int fd, int op)
{
return syscall(SYS_flock, fd, op);
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册