Commit b9febd52 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov

syscall: Add sys_flock helper

Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
parent 8d36f087
......@@ -22,6 +22,7 @@
#define __NR_getpid 39
#define __NR_clone 56
#define __NR_exit 60
#define __NR_flock 73
#define __NR_unlink 87
#define __NR__sysctl 156
#define __NR_prctl 157
......
......@@ -261,6 +261,11 @@ static always_inline long sys_futex(u32 *uaddr, int op, u32 val,
(unsigned long)val3);
}
static always_inline long sys_flock(unsigned long fd, unsigned long cmd)
{
return syscall2(__NR_flock, fd, cmd);
}
static void always_inline local_sleep(long seconds)
{
struct timespec req, rem;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment