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:
@@ -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
|
||||
|
@@ -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!
|
||||
|
Reference in New Issue
Block a user