Home
last modified time | relevance | path

Searched refs:AT_FDCWD (Results 1 – 13 of 13) 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/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/include/nolibc/
Dnolibc.h235 #define AT_FDCWD -100 macro
1482 return my_syscall4(__NR_fchmodat, AT_FDCWD, path, mode, 0); in sys_chmod()
1492 return my_syscall5(__NR_fchownat, AT_FDCWD, path, owner, group, 0); in sys_chown()
1580 return my_syscall5(__NR_linkat, AT_FDCWD, old, AT_FDCWD, new, 0); in sys_link()
1596 return my_syscall3(__NR_mkdirat, AT_FDCWD, path, mode); in sys_mkdir()
1606 return my_syscall4(__NR_mknodat, AT_FDCWD, path, mode, dev); in sys_mknod()
1623 return my_syscall4(__NR_openat, AT_FDCWD, path, flags, mode); in sys_open()
1705 ret = my_syscall4(__NR_newfstatat, AT_FDCWD, path, &stat, 0); in sys_stat()
1730 return my_syscall3(__NR_symlinkat, old, AT_FDCWD, new); in sys_symlink()
1752 return my_syscall3(__NR_unlinkat, AT_FDCWD, path, 0); in sys_unlink()
/tools/testing/selftests/openat2/
Dhelpers.c104 fd = sys_openat2(AT_FDCWD, ".", &how); in init()
Dopenat2_test.c116 fd = raw_openat2(AT_FDCWD, ".", how_copy, test->size); in test_openat2_struct()
246 fd = sys_openat2(AT_FDCWD, path, &test->how); in test_openat2_flags()
/tools/testing/selftests/bpf/
Dcgroup_helpers.c259 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/
Dbuiltin-trace.c655 #ifndef AT_FDCWD
656 #define AT_FDCWD -100 macro
665 if (fd == AT_FDCWD) in syscall_arg__scnprintf_fd_at()
/tools/perf/util/
Dsynthetic-events.c494 if (name_to_handle_at(AT_FDCWD, path, &handle.fh, &mount_id, 0) < 0) { in perf_event__synthesize_cgroup()
/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()