Lines Matching refs:pathname
3180 static int do_tmpfile(int dfd, struct filename *pathname, in do_tmpfile() argument
3188 int error = path_lookupat(dfd, pathname, in do_tmpfile()
3217 audit_inode(pathname, nd->path.dentry, 0); in do_tmpfile()
3242 static struct file *path_openat(int dfd, struct filename *pathname, in path_openat() argument
3257 error = do_tmpfile(dfd, pathname, nd, flags, op, file, &opened); in path_openat()
3261 error = path_init(dfd, pathname, flags, nd); in path_openat()
3265 error = do_last(nd, &path, file, op, &opened, pathname); in path_openat()
3283 error = do_last(nd, &path, file, op, &opened, pathname); in path_openat()
3305 struct file *do_filp_open(int dfd, struct filename *pathname, in do_filp_open() argument
3312 filp = path_openat(dfd, pathname, &nd, op, flags | LOOKUP_RCU); in do_filp_open()
3314 filp = path_openat(dfd, pathname, &nd, op, flags); in do_filp_open()
3316 filp = path_openat(dfd, pathname, &nd, op, flags | LOOKUP_REVAL); in do_filp_open()
3417 struct dentry *kern_path_create(int dfd, const char *pathname, in kern_path_create() argument
3420 struct filename *filename = getname_kernel(pathname); in kern_path_create()
3440 struct dentry *user_path_create(int dfd, const char __user *pathname, in user_path_create() argument
3443 struct filename *tmp = getname(pathname); in user_path_create()
3571 SYSCALL_DEFINE3(mkdirat, int, dfd, const char __user *, pathname, umode_t, mode) in SYSCALL_DEFINE3() argument
3579 dentry = user_path_create(dfd, pathname, &path, lookup_flags); in SYSCALL_DEFINE3()
3596 SYSCALL_DEFINE2(mkdir, const char __user *, pathname, umode_t, mode) in SYSCALL_DEFINE2() argument
3598 return sys_mkdirat(AT_FDCWD, pathname, mode); in SYSCALL_DEFINE2()
3665 static long do_rmdir(int dfd, const char __user *pathname) in do_rmdir() argument
3673 name = user_path_parent(dfd, pathname, &nd, lookup_flags); in do_rmdir()
3722 SYSCALL_DEFINE1(rmdir, const char __user *, pathname) in SYSCALL_DEFINE1() argument
3724 return do_rmdir(AT_FDCWD, pathname); in SYSCALL_DEFINE1()
3791 static long do_unlinkat(int dfd, const char __user *pathname) in do_unlinkat() argument
3801 name = user_path_parent(dfd, pathname, &nd, lookup_flags); in do_unlinkat()
3862 SYSCALL_DEFINE3(unlinkat, int, dfd, const char __user *, pathname, int, flag) in SYSCALL_DEFINE3() argument
3868 return do_rmdir(dfd, pathname); in SYSCALL_DEFINE3()
3870 return do_unlinkat(dfd, pathname); in SYSCALL_DEFINE3()
3873 SYSCALL_DEFINE1(unlink, const char __user *, pathname) in SYSCALL_DEFINE1() argument
3875 return do_unlinkat(AT_FDCWD, pathname); in SYSCALL_DEFINE1()