Home
last modified time | relevance | path

Searched refs:dirfd (Results 1 – 9 of 9) sorted by relevance

/tools/testing/selftests/proc/
Dread.c45 fd = openat(dirfd(d), filename, O_RDONLY|O_NONBLOCK); in f_reg()
60 fd = openat(dirfd(d), filename, O_WRONLY); in f_reg_write()
73 rv = readlinkat(dirfd(d), filename, buf, sizeof(buf)); in f_lnk()
109 fd = openat(dirfd(d), de->d_name, O_DIRECTORY|O_RDONLY); in f()
137 if (fstatfs(dirfd(d), &sfs) == -1) { in main()
Dfd-003-kthread.c116 static inline int sys_statx(int dirfd, const char *pathname, int flags, in sys_statx() argument
119 return syscall(SYS_statx, dirfd, pathname, flags, mask, stx); in sys_statx()
Dfd-001-lookup.c136 if (fd == dirfd(d)) in main()
Dproc-pid-vm.c49 static inline long sys_execveat(int dirfd, const char *pathname, char **argv, char **envp, int flag… in sys_execveat() argument
51 return syscall(SYS_execveat, dirfd, pathname, argv, envp, flags); in sys_execveat()
/tools/testing/selftests/openat2/
Drename_attack_test.c55 pid_t spawn_attack(int dirfd, char *a, char *b) in spawn_attack() argument
66 renameat2(dirfd, a, dirfd, b, RENAME_EXCHANGE); in spawn_attack()
/tools/testing/selftests/bpf/
Dcgroup_helpers.c256 int dirfd, err, flags, mount_id, fhsize; in get_cgroup_id() local
267 dirfd = AT_FDCWD; in get_cgroup_id()
275 err = name_to_handle_at(dirfd, cgroup_workdir, fhp, &mount_id, flags); in get_cgroup_id()
287 err = name_to_handle_at(dirfd, cgroup_workdir, fhp2, &mount_id, flags); in get_cgroup_id()
/tools/testing/selftests/landlock/
Dfs_test.c297 static int test_open_rel(const int dirfd, const char *const path, in test_open_rel() argument
303 fd = openat(dirfd, path, flags | O_CLOEXEC); in test_open_rel()
1612 int dirfd, ruleset_fd; in test_relative_path() local
1642 dirfd = open(dir_s1d2, O_DIRECTORY); in test_relative_path()
1643 ASSERT_LE(0, dirfd); in test_relative_path()
1647 dirfd = AT_FDCWD; in test_relative_path()
1655 dirfd = AT_FDCWD; in test_relative_path()
1663 dirfd = AT_FDCWD; in test_relative_path()
1668 test_open_rel(dirfd, "..", O_RDONLY)); in test_relative_path()
1669 ASSERT_EQ(0, test_open_rel(dirfd, ".", O_RDONLY)); in test_relative_path()
[all …]
/tools/testing/selftests/filesystems/fuse/
Dbpf_loader.c243 int s_openat(int dirfd, struct s pathname, int flags, ...) in s_openat() argument
255 res = openat(dirfd, pathname.s, flags, va_arg(ap, mode_t)); in s_openat()
257 res = openat(dirfd, pathname.s, flags); in s_openat()
Dtest_fuse.h53 int s_openat(int dirfd, struct s pathname, int flags, ...);