/Linux-v6.6/tools/testing/selftests/landlock/ |
D | fs_test.c | 400 return test_open_rel(AT_FDCWD, path, flags); in test_open() 1618 ASSERT_EQ(0, syscall(__NR_move_mount, AT_FDCWD, dir_s3d2, AT_FDCWD, in TEST_F_FORK() 1624 ASSERT_EQ(0, syscall(__NR_move_mount, AT_FDCWD, dir_s1d2, AT_FDCWD, in TEST_F_FORK() 1632 ASSERT_EQ(-1, syscall(__NR_move_mount, AT_FDCWD, dir_s3d2, AT_FDCWD, in TEST_F_FORK() 1739 dirfd = AT_FDCWD; in test_relative_path() 1747 dirfd = AT_FDCWD; in test_relative_path() 1755 dirfd = AT_FDCWD; in test_relative_path() 1964 if (renameat2(AT_FDCWD, oldpath, AT_FDCWD, newpath, RENAME_EXCHANGE)) in test_exchange() 1998 ASSERT_EQ(-1, renameat2(AT_FDCWD, file1_s2d3, AT_FDCWD, file1_s1d3, in TEST_F_FORK() 2001 ASSERT_EQ(-1, renameat2(AT_FDCWD, file1_s2d3, AT_FDCWD, dir_s1d3, in TEST_F_FORK() [all …]
|
/Linux-v6.6/tools/testing/selftests/tmpfs/ |
D | bug-link-o-tmpfile.c | 49 fd = openat(AT_FDCWD, "/tmp", O_WRONLY|O_TMPFILE, 0600); in main() 54 if (linkat(fd, "", AT_FDCWD, "/tmp/1", AT_EMPTY_PATH) == -1) { in main() 60 fd = openat(AT_FDCWD, "/tmp", O_WRONLY|O_TMPFILE, 0600); in main()
|
/Linux-v6.6/fs/ |
D | init.c | 152 dentry = kern_path_create(AT_FDCWD, filename, &path, 0); in init_mknod() 177 new_dentry = kern_path_create(AT_FDCWD, newname, &new_path, 0); in init_link() 207 dentry = kern_path_create(AT_FDCWD, newname, &path, 0); in init_symlink() 220 return do_unlinkat(AT_FDCWD, getname_kernel(pathname)); in init_unlink() 229 dentry = kern_path_create(AT_FDCWD, pathname, &path, LOOKUP_DIRECTORY); in init_mkdir() 244 return do_rmdir(AT_FDCWD, getname_kernel(pathname)); in init_rmdir()
|
D | utimes.c | 143 if (filename == NULL && dfd != AT_FDCWD) in do_utimes() 212 return do_futimesat(AT_FDCWD, filename, utimes); in SYSCALL_DEFINE2() 226 return do_utimes(AT_FDCWD, filename, times ? tv : NULL, 0); in SYSCALL_DEFINE2() 248 return do_utimes(AT_FDCWD, filename, t ? tv : NULL, 0); in SYSCALL_DEFINE2() 297 return do_compat_futimesat(AT_FDCWD, filename, t); in SYSCALL_DEFINE2()
|
D | open.c | 133 error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); in do_sys_truncate() 542 return do_faccessat(AT_FDCWD, filename, mode, 0); in SYSCALL_DEFINE2() 551 error = user_path_at(AT_FDCWD, filename, lookup_flags, &path); in SYSCALL_DEFINE1() 599 error = user_path_at(AT_FDCWD, filename, lookup_flags, &path); in SYSCALL_DEFINE1() 715 return do_fchmodat(AT_FDCWD, filename, mode, 0); in SYSCALL_DEFINE2() 834 return do_fchownat(AT_FDCWD, filename, user, group, 0); in SYSCALL_DEFINE3() 839 return do_fchownat(AT_FDCWD, filename, user, group, in SYSCALL_DEFINE3() 1367 return do_filp_open(AT_FDCWD, name, &op); in file_open_name() 1445 return do_sys_open(AT_FDCWD, filename, flags, mode); in SYSCALL_DEFINE3() 1488 return do_sys_open(AT_FDCWD, filename, flags, mode); in COMPAT_SYSCALL_DEFINE3() [all …]
|
D | exec.c | 139 file = do_filp_open(AT_FDCWD, tmp, &uselib_flags); in SYSCALL_DEFINE1() 956 f = do_open_execat(AT_FDCWD, filename, 0); in open_exec() 1519 if (fd == AT_FDCWD || filename->name[0] == '/') { in alloc_bprm() 1978 int fd = AT_FDCWD; in kernel_execve() 2038 return do_execveat_common(AT_FDCWD, filename, argv, envp, 0); in do_execve() 2065 return do_execveat_common(AT_FDCWD, filename, argv, envp, 0); in compat_do_execve()
|
D | xattr.c | 667 error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); in path_setxattr() 785 error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); in path_getxattr() 862 error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); in path_listxattr() 927 error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); in path_removexattr()
|
D | namei.c | 2400 if (nd->dfd == AT_FDCWD) { in path_init() 2582 error = filename_parentat(AT_FDCWD, name, 0, path, &last, &type); in __kern_path_locked() 2610 int ret = filename_lookup(AT_FDCWD, filename, flags, path, NULL); in kern_path() 2631 return __filename_parentat(AT_FDCWD, filename, flags, parent, last, in vfs_path_parent_lookup() 2654 ret = filename_lookup(AT_FDCWD, filename, flags, path, &root); in vfs_path_lookup() 4082 return do_mknodat(AT_FDCWD, getname(filename), mode, dev); in SYSCALL_DEFINE3() 4164 return do_mkdirat(AT_FDCWD, getname(pathname), mode); in SYSCALL_DEFINE2() 4282 return do_rmdir(AT_FDCWD, getname(pathname)); in SYSCALL_DEFINE1() 4447 return do_unlinkat(AT_FDCWD, getname(pathname)); in SYSCALL_DEFINE1() 4528 return do_symlinkat(getname(oldname), AT_FDCWD, getname(newname)); in SYSCALL_DEFINE2() [all …]
|
/Linux-v6.6/tools/testing/selftests/filesystems/fat/ |
D | rename_exchange.c | 30 ret = renameat2(AT_FDCWD, argv[1], AT_FDCWD, argv[2], RENAME_EXCHANGE); in main()
|
/Linux-v6.6/tools/perf/tests/ |
D | openat-syscall-tp-fields.c | 22 #ifndef AT_FDCWD 23 #define AT_FDCWD -100 macro 88 openat(AT_FDCWD, filename, flags); in test__syscall_openat_tp_fields()
|
/Linux-v6.6/tools/include/nolibc/ |
D | sys.h | 132 return my_syscall4(__NR_fchmodat, AT_FDCWD, path, mode, 0); in sys_chmod() 155 return my_syscall5(__NR_fchownat, AT_FDCWD, path, owner, group, 0); in sys_chown() 562 return my_syscall5(__NR_linkat, AT_FDCWD, old, AT_FDCWD, new, 0); in sys_link() 606 return my_syscall3(__NR_mkdirat, AT_FDCWD, path, mode); in sys_mkdir() 630 return my_syscall3(__NR_unlinkat, AT_FDCWD, path, AT_REMOVEDIR); in sys_rmdir() 651 return my_syscall4(__NR_mknodat, AT_FDCWD, path, mode, dev); in sys_mknod() 741 return my_syscall4(__NR_openat, AT_FDCWD, path, flags, mode); in sys_open() 1009 ret = __sysret(sys_statx(AT_FDCWD, path, AT_NO_AUTOMOUNT, STATX_BASIC_STATS, &statx)); in stat() 1046 return my_syscall3(__NR_symlinkat, old, AT_FDCWD, new); in sys_symlink() 1103 return my_syscall3(__NR_unlinkat, AT_FDCWD, path, 0); in sys_unlink()
|
/Linux-v6.6/tools/testing/selftests/exec/ |
D | execveat.c | 268 fail += check_execveat(AT_FDCWD, fullname, 0); in run_tests() 300 fail += check_execveat(AT_FDCWD, fullname_symlink, 0); in run_tests() 313 fail += check_execveat_fail(AT_FDCWD, fullname_symlink, in run_tests() 326 fail += check_execveat(AT_FDCWD, fullname_script, 0); in run_tests() 360 fail += check_execveat_fail(AT_FDCWD, "no-such-file", 0, ENOENT); in run_tests()
|
/Linux-v6.6/tools/build/feature/ |
D | test-file-handle.c | 15 name_to_handle_at(AT_FDCWD, "/", &handle.fh, &mount_id, 0); in main()
|
/Linux-v6.6/tools/include/uapi/linux/ |
D | fcntl.h | 96 #define AT_FDCWD -100 /* Special value used to indicate macro
|
/Linux-v6.6/include/uapi/linux/ |
D | fcntl.h | 96 #define AT_FDCWD -100 /* Special value used to indicate macro
|
/Linux-v6.6/drivers/base/ |
D | devtmpfs.c | 165 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-v6.6/tools/testing/selftests/move_mount_set_group/ |
D | move_mount_set_group_test.c | 221 ret = syscall(SYS_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-v6.6/fs/coda/ |
D | pioctl.c | 68 error = user_path_at(AT_FDCWD, data.path, in coda_pioctl()
|
/Linux-v6.6/arch/powerpc/platforms/cell/spufs/ |
D | syscalls.c | 70 dentry = user_path_create(AT_FDCWD, pathname, &path, LOOKUP_DIRECTORY); in do_spu_create()
|
/Linux-v6.6/io_uring/ |
D | xattr.c | 133 ret = filename_lookup(AT_FDCWD, ix->filename, lookup_flags, &path, NULL); in io_getxattr() 242 ret = filename_lookup(AT_FDCWD, ix->filename, lookup_flags, &path, NULL); in io_setxattr()
|
/Linux-v6.6/tools/testing/selftests/openat2/ |
D | helpers.c | 104 fd = sys_openat2(AT_FDCWD, ".", &how); in init()
|
D | openat2_test.c | 120 fd = raw_openat2(AT_FDCWD, ".", how_copy, test->size); in test_openat2_struct() 261 fd = sys_openat2(AT_FDCWD, path, &test->how); in test_openat2_flags()
|
/Linux-v6.6/samples/vfs/ |
D | test-fsmount.c | 122 if (move_mount(mfd, "", AT_FDCWD, "/mnt", MOVE_MOUNT_F_EMPTY_PATH) < 0) { in main()
|
/Linux-v6.6/fs/hostfs/ |
D | hostfs_user.c | 374 err = syscall(SYS_renameat2, AT_FDCWD, from, AT_FDCWD, to, flags); in rename2_file()
|
/Linux-v6.6/samples/fanotify/ |
D | fs-monitor.c | 128 FAN_FS_ERROR, AT_FDCWD, argv[1])) { in main()
|