2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-30 22:05:36 +00:00

syscall: Add sys_unlink

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
Cyrill Gorcunov
2011-10-28 14:03:59 +04:00
parent b9004db89f
commit a74f379d60
2 changed files with 6 additions and 0 deletions

View File

@@ -20,6 +20,7 @@
#define __NR_nanosleep 35
#define __NR_getpid 39
#define __NR_exit 60
#define __NR_unlink 87
#else /* CONFIG_X86_64 */
# error x86-32 bit mode not yet implemented

View File

@@ -166,6 +166,11 @@ static always_inline unsigned long sys_getpid(void)
return syscall0(__NR_getpid);
}
static always_inline long sys_unlink(char *pathname)
{
return syscall1(__NR_unlink, (unsigned long)pathname);
}
/*
* Note this call expects a signal frame on stack
* (regs->sp) so be very carefull here!