Home
last modified time | relevance | path

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

/tools/testing/selftests/tmpfs/
Dbug-link-o-tmpfile.c49 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/
Dopenat-syscall-tp-fields.c21 #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/
Dfs_test.c317 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/
Dtypes.h51 #ifndef AT_FDCWD
52 #define AT_FDCWD (-100) macro
Dnolibc.h144 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/
Dtest-file-handle.c15 name_to_handle_at(AT_FDCWD, "/", &handle.fh, &mount_id, 0); in main()
/tools/testing/selftests/exec/
Dexecveat.c268 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/
Dfcntl.h95 #define AT_FDCWD -100 /* Special value used to indicate macro
/tools/testing/selftests/move_mount_set_group/
Dmove_mount_set_group_test.c221 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/
Dhelpers.c104 fd = sys_openat2(AT_FDCWD, ".", &how); in init()
Dopenat2_test.c120 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/
Dcgroup_helpers.c267 dirfd = AT_FDCWD; in get_cgroup_id()
/tools/testing/selftests/proc/
Dproc-pid-vm.c194 fd = openat(AT_FDCWD, "/tmp", O_WRONLY|O_EXCL|O_TMPFILE, 0700); in make_exe()
/tools/perf/util/
Dcgroup.c67 if (name_to_handle_at(AT_FDCWD, path, &handle.fh, &mount_id, 0) < 0) in read_cgroup_id()
Dsynthetic-events.c549 if (name_to_handle_at(AT_FDCWD, path, &handle.fh, &mount_id, 0) < 0) { in perf_event__synthesize_cgroup()
/tools/perf/
Dbuiltin-trace.c657 #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/
Dincfs_test.c3895 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()