| /linux/tools/testing/selftests/landlock/ |
| H A D | fs_test.c | 449 return test_open_rel(AT_FDCWD, path, flags); in test_open() 1722 ASSERT_EQ(0, syscall(__NR_move_mount, AT_FDCWD, dir_s3d2, AT_FDCWD, in TEST_F_FORK() 1728 ASSERT_EQ(0, syscall(__NR_move_mount, AT_FDCWD, dir_s1d2, AT_FDCWD, in TEST_F_FORK() 1736 ASSERT_EQ(-1, syscall(__NR_move_mount, AT_FDCWD, dir_s3d2, AT_FDCWD, in TEST_F_FORK() 1761 ASSERT_EQ(0, syscall(__NR_move_mount, AT_FDCWD, dir_s1d2, AT_FDCWD, in TEST_F_FORK() 1791 ASSERT_EQ(-1, syscall(__NR_move_mount, AT_FDCWD, dir_s3d2, AT_FDCWD, in TEST_F_FORK() 1942 dirfd = AT_FDCWD; in test_relative_path() 1950 dirfd = AT_FDCWD; in test_relative_path() 1958 dirfd = AT_FDCWD; in test_relative_path() 2074 ret = sys_execveat(AT_FDCWD, path, argv, NULL, in test_check_exec() [all …]
|
| /linux/tools/testing/selftests/tmpfs/ |
| H A D | bug-link-o-tmpfile.c | 59 fd = openat(AT_FDCWD, "/tmp", O_WRONLY|O_TMPFILE, 0600); in main() 64 if (linkat(fd, "", AT_FDCWD, "/tmp/1", AT_EMPTY_PATH) == -1) { in main() 71 fd = openat(AT_FDCWD, "/tmp", O_WRONLY|O_TMPFILE, 0600); in main()
|
| /linux/tools/include/nolibc/ |
| H A D | sys.h | 157 return my_syscall4(__NR_fchmodat, AT_FDCWD, path, mode, 0); in sys_chmod() 178 return my_syscall5(__NR_fchownat, AT_FDCWD, path, owner, group, 0); in sys_chown() 580 return my_syscall5(__NR_linkat, AT_FDCWD, old, AT_FDCWD, new, 0); 632 return my_syscall3(__NR_mkdirat, AT_FDCWD, path, mode); 654 return my_syscall3(__NR_unlinkat, AT_FDCWD, path, AT_REMOVEDIR); 673 return my_syscall4(__NR_mknodat, AT_FDCWD, path, mode, dev); 813 return my_syscall3(__NR_symlinkat, old, AT_FDCWD, new); 868 return my_syscall3(__NR_unlinkat, AT_FDCWD, path, 0);
|
| H A D | fcntl.h | 50 return my_syscall4(__NR_openat, AT_FDCWD, path, flags, mode); in sys_open()
|
| H A D | unistd.h | 48 return faccessat(AT_FDCWD, path, amode, 0); in access()
|
| /linux/tools/testing/selftests/filesystems/fat/ |
| H A D | rename_exchange.c | 30 ret = renameat2(AT_FDCWD, argv[1], AT_FDCWD, argv[2], RENAME_EXCHANGE); in main()
|
| /linux/tools/perf/tests/ |
| H A 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/tools/testing/selftests/exec/ |
| H A D | execveat.c | 309 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/include/nolibc/sys/ |
| H A D | stat.h | 79 return fstatat(AT_FDCWD, path, buf, 0); in stat() 91 return fstatat(AT_FDCWD, path, buf, AT_SYMLINK_NOFOLLOW); in lstat()
|
| /linux/tools/build/feature/ |
| H A D | test-file-handle.c | 15 name_to_handle_at(AT_FDCWD, "/", &handle.fh, &mount_id, 0); in main()
|
| /linux/tools/testing/selftests/filesystems/mount-notify/ |
| H A D | mount-notify_test_ns.c | 90 FAN_OPEN, AT_FDCWD, "/"); in FIXTURE_SETUP() 317 ret = move_mount(AT_FDCWD, "/a", AT_FDCWD, "/b", 0); in TEST_F() 375 ret = move_mount(mnt, "", AT_FDCWD, "/a", MOVE_MOUNT_F_EMPTY_PATH); in TEST_F()
|
| H A D | mount-notify_test.c | 290 ret = move_mount(AT_FDCWD, "/a", AT_FDCWD, "/b", 0); in TEST_F() 348 ret = move_mount(mnt, "", AT_FDCWD, "/a", MOVE_MOUNT_F_EMPTY_PATH); in TEST_F()
|
| /linux/io_uring/ |
| H A D | xattr.c | 117 ret = filename_getxattr(AT_FDCWD, name, LOOKUP_FOLLOW, &ix->ctx); in io_getxattr() 194 ret = filename_setxattr(AT_FDCWD, name, LOOKUP_FOLLOW, &ix->ctx); in io_setxattr()
|
| /linux/tools/testing/selftests/move_mount_set_group/ |
| H A D | move_mount_set_group_test.c | 221 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 D | fcntl.h | |
| /linux/fs/coda/ |
| H A D | pioctl.c | 68 error = user_path_at(AT_FDCWD, data.path, in coda_pioctl()
|
| /linux/include/uapi/linux/ |
| H A D | fcntl.h | 106 #define AT_FDCWD -100 /* Special value for dirfd used to macro
|
| /linux/tools/perf/trace/beauty/include/uapi/linux/ |
| H A D | fcntl.h | 106 #define AT_FDCWD -100 /* Special value for dirfd used to macro
|
| /linux/arch/powerpc/platforms/cell/spufs/ |
| H A D | syscalls.c | 70 dentry = start_creating_user_path(AT_FDCWD, pathname, &path, LOOKUP_DIRECTORY); in do_spu_create()
|
| /linux/tools/testing/selftests/openat2/ |
| H A D | openat2_test.c | 121 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 D | helpers.c | 104 fd = sys_openat2(AT_FDCWD, ".", &how); in init()
|
| /linux/samples/vfs/ |
| H A D | test-fsmount.c | 122 if (move_mount(mfd, "", AT_FDCWD, "/mnt", MOVE_MOUNT_F_EMPTY_PATH) < 0) { in main()
|
| /linux/tools/testing/selftests/filesystems/overlayfs/ |
| H A D | dev_in_maps.c | 68 if (sys_move_mount(tmpfs, "", AT_FDCWD, "/tmp", MOVE_MOUNT_F_EMPTY_PATH)) in ovl_mount()
|
| /linux/tools/testing/selftests/filesystems/ |
| H A D | fclog.c | 90 ASSERT_SUCCESS(move_mount(mfd, "", AT_FDCWD, "/tmp", MOVE_MOUNT_F_EMPTY_PATH)); in TEST_F()
|
| /linux/fs/ |
| H A D | exec.c | 817 return do_open_execat(AT_FDCWD, filename, 0); in open_exec() 1413 if (fd == AT_FDCWD || filename->name[0] == '/') { in alloc_bprm() 1859 CLASS(bprm, bprm)(AT_FDCWD, filename, 0); in kernel_execve() 1930 return do_execveat_common(AT_FDCWD, name, in SYSCALL_DEFINE3() 1957 return do_execveat_common(AT_FDCWD, name, in COMPAT_SYSCALL_DEFINE3()
|