Commit a74f379d authored by Cyrill Gorcunov's avatar Cyrill Gorcunov

syscall: Add sys_unlink

Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@gmail.com>
parent b9004db8
......@@ -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!
......
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