Home
last modified time | relevance | path

Searched refs:AT_FDCWD (Results 1 – 25 of 53) sorted by relevance

123

/linux/tools/testing/selftests/landlock/
H A Dfs_test.c442 return test_open_rel(AT_FDCWD, path, flags); in test_open()
1715 ASSERT_EQ(0, syscall(__NR_move_mount, AT_FDCWD, dir_s3d2, AT_FDCWD, in TEST_F_FORK()
1721 ASSERT_EQ(0, syscall(__NR_move_mount, AT_FDCWD, dir_s1d2, AT_FDCWD, in TEST_F_FORK()
1729 ASSERT_EQ(-1, syscall(__NR_move_mount, AT_FDCWD, dir_s3d2, AT_FDCWD, in TEST_F_FORK()
1754 ASSERT_EQ(0, syscall(__NR_move_mount, AT_FDCWD, dir_s1d2, AT_FDCWD, in TEST_F_FORK()
1784 ASSERT_EQ(-1, syscall(__NR_move_mount, AT_FDCWD, dir_s3d2, AT_FDCWD, in TEST_F_FORK()
1895 dirfd = AT_FDCWD; in test_relative_path()
1903 dirfd = AT_FDCWD; in test_relative_path()
1911 dirfd = AT_FDCWD; in test_relative_path()
2027 ret = execveat(AT_FDCWD, path, argv, NULL, in test_check_exec()
[all …]
/linux/fs/
H A Dinit.c152 dentry = kern_path_create(AT_FDCWD, filename, &path, 0); in init_mknod()
176 new_dentry = kern_path_create(AT_FDCWD, newname, &new_path, 0); in init_link()
206 dentry = kern_path_create(AT_FDCWD, newname, &path, 0); in init_symlink()
219 return do_unlinkat(AT_FDCWD, getname_kernel(pathname)); in init_unlink()
228 dentry = kern_path_create(AT_FDCWD, pathname, &path, LOOKUP_DIRECTORY); in init_mkdir()
242 return do_rmdir(AT_FDCWD, getname_kernel(pathname)); in init_rmdir()
H A Dutimes.c138 if (filename == NULL && dfd != AT_FDCWD) in do_utimes()
207 return do_futimesat(AT_FDCWD, filename, utimes); in SYSCALL_DEFINE2()
221 return do_utimes(AT_FDCWD, filename, times ? tv : NULL, 0); in SYSCALL_DEFINE2()
243 return do_utimes(AT_FDCWD, filename, t ? tv : NULL, 0); in SYSCALL_DEFINE2()
292 return do_compat_futimesat(AT_FDCWD, filename, t); in SYSCALL_DEFINE2()
H A Dopen.c136 error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); in do_sys_truncate()
548 return do_faccessat(AT_FDCWD, filename, mode, 0); in SYSCALL_DEFINE2()
557 error = user_path_at(AT_FDCWD, filename, lookup_flags, &path); in SYSCALL_DEFINE1()
600 error = user_path_at(AT_FDCWD, filename, lookup_flags, &path); in SYSCALL_DEFINE1()
714 return do_fchmodat(AT_FDCWD, filename, mode, 0); in SYSCALL_DEFINE2()
833 return do_fchownat(AT_FDCWD, filename, user, group, 0); in SYSCALL_DEFINE3()
838 return do_fchownat(AT_FDCWD, filename, user, group, in SYSCALL_DEFINE3()
1372 return do_filp_open(AT_FDCWD, name, &op); in file_open_name()
1450 return do_sys_open(AT_FDCWD, filename, flags, mode); in SYSCALL_DEFINE3()
1495 return do_sys_open(AT_FDCWD, filenam in COMPAT_SYSCALL_DEFINE3()
[all...]
H A Dxattr.c747 return path_setxattrat(AT_FDCWD, pathname, 0, name, value, size, flags); in SYSCALL_DEFINE5()
754 return path_setxattrat(AT_FDCWD, pathname, AT_SYMLINK_NOFOLLOW, name, in SYSCALL_DEFINE5()
891 return path_getxattrat(AT_FDCWD, pathname, 0, name, value, size); in SYSCALL_DEFINE4()
897 return path_getxattrat(AT_FDCWD, pathname, AT_SYMLINK_NOFOLLOW, name, in SYSCALL_DEFINE4()
1001 return path_listxattrat(AT_FDCWD, pathname, 0, list, size); in SYSCALL_DEFINE3()
1007 return path_listxattrat(AT_FDCWD, pathname, AT_SYMLINK_NOFOLLOW, list, size); in SYSCALL_DEFINE3()
1100 return path_removexattrat(AT_FDCWD, pathname, 0, name); in SYSCALL_DEFINE2()
1106 return path_removexattrat(AT_FDCWD, pathname, AT_SYMLINK_NOFOLLOW, name); in SYSCALL_DEFINE2()
H A Dexec.c141 file = do_filp_open(AT_FDCWD, tmp, &uselib_flags); in SYSCALL_DEFINE1()
932 f = do_open_execat(AT_FDCWD, filename, 0);
1531 if (fd == AT_FDCWD || filename->name[0] == '/') { in alloc_bprm()
1980 int fd = AT_FDCWD; in do_execveat_common()
2040 return do_execveat_common(AT_FDCWD, filename, argv, envp, 0); in kernel_execve()
2067 return do_execveat_common(AT_FDCWD, filename, argv, envp, 0); in compat_do_execve()
H A Dnamei.c2548 if (nd->dfd == AT_FDCWD) { in path_init()
2752 struct dentry *res = __kern_path_locked(AT_FDCWD, filename, path); in kern_path_locked()
2771 int ret = filename_lookup(AT_FDCWD, filename, flags, path, NULL); in kern_path()
2792 return __filename_parentat(AT_FDCWD, filename, flags, parent, last, in vfs_path_parent_lookup()
2815 ret = filename_lookup(AT_FDCWD, filename, flags, path, &root); in vfs_path_lookup()
4272 return do_mknodat(AT_FDCWD, getname(filename), mode, dev); in SYSCALL_DEFINE3()
4354 return do_mkdirat(AT_FDCWD, getname(pathname), mode); in SYSCALL_DEFINE2()
4472 return do_rmdir(AT_FDCWD, getname(pathname)); in SYSCALL_DEFINE1()
4635 return do_unlinkat(AT_FDCWD, getname(pathname)); in SYSCALL_DEFINE1()
4716 return do_symlinkat(getname(oldname), AT_FDCWD, getname(newname)); in SYSCALL_DEFINE2()
[all …]
/linux/tools/testing/selftests/filesystems/fat/
H A Drename_exchange.c30 ret = renameat2(AT_FDCWD, argv[1], AT_FDCWD, argv[2], RENAME_EXCHANGE); in main()
/linux/tools/testing/selftests/exec/
H A Dexecveat.c309 fail += check_execveat(AT_FDCWD, fullname, 0); in run_tests()
341 fail += check_execveat(AT_FDCWD, fullname_symlink, 0); in run_tests()
354 fail += check_execveat_fail(AT_FDCWD, fullname_symlink, in run_tests()
367 fail += check_execveat(AT_FDCWD, fullname_script, 0); in run_tests()
401 fail += check_execveat_fail(AT_FDCWD, "no-such-file", 0, ENOENT); in run_tests()
/linux/tools/build/feature/
H A Dtest-file-handle.c15 name_to_handle_at(AT_FDCWD, "/", &handle.fh, &mount_id, 0); in main()
/linux/drivers/base/
H A Ddevtmpfs.c165 dentry = kern_path_create(AT_FDCWD, name, &path, LOOKUP_DIRECTORY); in dev_mkdir()
211 dentry = kern_path_create(AT_FDCWD, nodename, &path, 0); in handle_create()
214 dentry = kern_path_create(AT_FDCWD, nodename, &path, 0); in handle_create()
/linux/tools/testing/selftests/move_mount_set_group/
H A Dmove_mount_set_group_test.c221 ret = syscall(__NR_move_mount, AT_FDCWD, SET_GROUP_FROM, in move_mount_set_group_supported()
222 AT_FDCWD, SET_GROUP_TO, MOVE_MOUNT_SET_GROUP); in move_mount_set_group_supported()
/linux/tools/include/uapi/linux/
H A Dfcntl.h
/linux/tools/perf/trace/beauty/include/uapi/linux/
H A Dfcntl.h93 #define AT_FDCWD -100 /* Special value for dirfd used to macro
/linux/include/uapi/linux/
H A Dfcntl.h93 #define AT_FDCWD -100 /* Special value for dirfd used to macro
/linux/fs/coda/
H A Dpioctl.c68 error = user_path_at(AT_FDCWD, data.path, in coda_pioctl()
/linux/arch/powerpc/platforms/cell/spufs/
H A Dsyscalls.c70 dentry = user_path_create(AT_FDCWD, pathname, &path, LOOKUP_DIRECTORY); in do_spu_create()
/linux/tools/testing/selftests/openat2/
H A Dopenat2_test.c121 fd = raw_openat2(AT_FDCWD, ".", how_copy, test->size); in test_openat2_struct()
262 fd = sys_openat2(AT_FDCWD, path, &test->how); in test_openat2_flags()
H A Dhelpers.c104 fd = sys_openat2(AT_FDCWD, ".", &how); in init()
/linux/samples/vfs/
H A Dtest-fsmount.c122 if (move_mount(mfd, "", AT_FDCWD, "/mnt", MOVE_MOUNT_F_EMPTY_PATH) < 0) { in main()
H A Dtest-statx.c252 ret = statx(AT_FDCWD, *argv, atflag, mask, &stx); in main()
/linux/samples/fanotify/
H A Dfs-monitor.c128 FAN_FS_ERROR, AT_FDCWD, argv[1])) { in main()
/linux/fs/hostfs/
H A Dhostfs_user.c375 err = syscall(SYS_renameat2, AT_FDCWD, from, AT_FDCWD, to, flags); in rename2_file()
/linux/tools/testing/selftests/filesystems/statmount/
H A Dstatmount_test_ns.c86 ret = statx(AT_FDCWD, path, 0, STATX_MNT_ID_UNIQUE, &sx); in get_mnt_id()
/linux/tools/lib/bpf/
H A Dlibbpf_probes.c38 if (faccessat(AT_FDCWD, ubuntu_kver_file, R_OK, AT_EACCESS) != 0) in get_ubuntu_kernel_version()

123