note a leak that needs fixing eventually
[trinity.git] / syscalls / mkdir.c
blob2ed9341b5b0f86233ad155d9ff150e2e8eb8bbf4
1 /*
2 * SYSCALL_DEFINE2(mkdir, const char __user *, pathname, int, mode)
3 */
4 #include "sanitise.h"
6 struct syscallentry syscall_mkdir = {
7 .name = "mkdir",
8 .num_args = 2,
9 .arg1name = "pathname",
10 .arg1type = ARG_PATHNAME,
11 .arg2name = "mode",
12 .arg2type = ARG_MODE_T,
16 * SYSCALL_DEFINE3(mkdirat, int, dfd, const char __user *, pathname, int, mode)
18 #include "sanitise.h"
20 struct syscallentry syscall_mkdirat = {
21 .name = "mkdirat",
22 .num_args = 3,
23 .arg1name = "dfd",
24 .arg1type = ARG_FD,
25 .arg2name = "pathname",
26 .arg2type = ARG_PATHNAME,
27 .arg3name = "mode",
28 .arg3type = ARG_MODE_T,
29 .flags = NEED_ALARM,