/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()
|
/tools/perf/tests/ |
D | openat-syscall-tp-fields.c | 21 #ifndef AT_FDCWD 22 #define AT_FDCWD -100 macro 86 openat(AT_FDCWD, filename, flags); in test__syscall_openat_tp_fields()
|
/tools/testing/selftests/landlock/ |
D | fs_test.c | 317 return test_open_rel(AT_FDCWD, path, flags); in test_open() 1526 ASSERT_EQ(0, syscall(__NR_move_mount, AT_FDCWD, dir_s3d2, AT_FDCWD, in TEST_F_FORK() 1532 ASSERT_EQ(0, syscall(__NR_move_mount, AT_FDCWD, dir_s1d2, AT_FDCWD, in TEST_F_FORK() 1540 ASSERT_EQ(-1, syscall(__NR_move_mount, AT_FDCWD, dir_s3d2, AT_FDCWD, in TEST_F_FORK() 1647 dirfd = AT_FDCWD; in test_relative_path() 1655 dirfd = AT_FDCWD; in test_relative_path() 1663 dirfd = AT_FDCWD; in test_relative_path() 1892 ASSERT_EQ(-1, renameat2(AT_FDCWD, file1_s2d3, AT_FDCWD, file1_s1d3, in TEST_F_FORK() 1895 ASSERT_EQ(-1, renameat2(AT_FDCWD, file1_s2d3, AT_FDCWD, dir_s1d3, in TEST_F_FORK() 1905 ASSERT_EQ(-1, renameat2(AT_FDCWD, file1_s2d1, AT_FDCWD, file1_s1d3, in TEST_F_FORK() [all …]
|
/tools/include/nolibc/ |
D | types.h | 51 #ifndef AT_FDCWD 52 #define AT_FDCWD (-100) macro
|
D | nolibc.h | 144 return my_syscall4(__NR_fchmodat, AT_FDCWD, path, mode, 0); in sys_chmod() 156 return my_syscall5(__NR_fchownat, AT_FDCWD, path, owner, group, 0); in sys_chown() 276 return my_syscall5(__NR_linkat, AT_FDCWD, old, AT_FDCWD, new, 0); in sys_link() 294 return my_syscall3(__NR_mkdirat, AT_FDCWD, path, mode); in sys_mkdir() 306 return my_syscall4(__NR_mknodat, AT_FDCWD, path, mode, dev); in sys_mknod() 325 return my_syscall4(__NR_openat, AT_FDCWD, path, flags, mode); in sys_open() 423 ret = my_syscall4(__NR_newfstatat, AT_FDCWD, path, &stat, 0); in sys_stat() 450 return my_syscall3(__NR_symlinkat, old, AT_FDCWD, new); in sys_symlink() 474 return my_syscall3(__NR_unlinkat, AT_FDCWD, path, 0); in sys_unlink()
|
/tools/build/feature/ |
D | test-file-handle.c | 15 name_to_handle_at(AT_FDCWD, "/", &handle.fh, &mount_id, 0); in main()
|
/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()
|
/tools/include/uapi/linux/ |
D | fcntl.h | 95 #define AT_FDCWD -100 /* Special value used to indicate macro
|
/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()
|
/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()
|
/tools/testing/selftests/bpf/ |
D | cgroup_helpers.c | 267 dirfd = AT_FDCWD; in get_cgroup_id()
|
/tools/testing/selftests/proc/ |
D | proc-pid-vm.c | 194 fd = openat(AT_FDCWD, "/tmp", O_WRONLY|O_EXCL|O_TMPFILE, 0700); in make_exe()
|
/tools/perf/util/ |
D | cgroup.c | 67 if (name_to_handle_at(AT_FDCWD, path, &handle.fh, &mount_id, 0) < 0) in read_cgroup_id()
|
D | synthetic-events.c | 549 if (name_to_handle_at(AT_FDCWD, path, &handle.fh, &mount_id, 0) < 0) { in perf_event__synthesize_cgroup()
|
/tools/perf/ |
D | builtin-trace.c | 657 #ifndef AT_FDCWD 658 #define AT_FDCWD -100 macro 667 if (fd == AT_FDCWD) in syscall_arg__scnprintf_fd_at()
|
/tools/testing/selftests/filesystems/incfs/ |
D | incfs_test.c | 3895 TESTEQUAL(syscall(__NR_statx, AT_FDCWD, filename, 0, STATX_ALL, in enable_verity() 3980 TESTEQUAL(syscall(__NR_statx, AT_FDCWD, filename, 0, STATX_ALL, in validate_verity()
|