2
0
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:
Cyrill Gorcunov 2011-12-01 19:59:03 +04:00
parent 8d36f08765
commit b9febd52bc
2 changed files with 6 additions and 0 deletions

View File

@ -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

View File

@ -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;