mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 05:48:05 +00:00
syscall: Add sys_flock helper
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
This commit is contained in:
parent
8d36f08765
commit
b9febd52bc
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user