/tools/testing/selftests/proc/ |
D | read.c | 45 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()
|
D | fd-003-kthread.c | 116 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()
|
D | fd-001-lookup.c | 136 if (fd == dirfd(d)) in main()
|
D | proc-pid-vm.c | 49 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/ |
D | rename_attack_test.c | 55 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/ |
D | cgroup_helpers.c | 256 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/ |
D | fs_test.c | 297 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/ |
D | bpf_loader.c | 243 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()
|
D | test_fuse.h | 53 int s_openat(int dirfd, struct s pathname, int flags, ...);
|