note a leak that needs fixing eventually
[trinity.git] / syscalls / unlink.c
blob213e91df3ce165272810b3cb9889f54ec87a14a5
1 /*
2 * SYSCALL_DEFINE1(unlink, const char __user *, pathname)
3 */
4 #include "sanitise.h"
6 struct syscallentry syscall_unlink = {
7 .name = "unlink",
8 .num_args = 1,
9 .arg1name = "pathname",
10 .arg1type = ARG_PATHNAME,
11 .group = GROUP_VFS,
15 * SYSCALL_DEFINE3(unlinkat, int, dfd, const char __user *, pathname, int, flag)
18 struct syscallentry syscall_unlinkat = {
19 .name = "unlinkat",
20 .num_args = 3,
21 .arg1name = "dfd",
22 .arg1type = ARG_FD,
23 .arg2name = "pathname",
24 .arg2type = ARG_PATHNAME,
25 .arg3name = "flag",
26 .flags = NEED_ALARM,
27 .group = GROUP_VFS,