Home
last modified time | relevance | path

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

/Linux-v5.15/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()
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()
Dfd-001-lookup.c136 if (fd == dirfd(d)) in main()
/Linux-v5.15/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()
/Linux-v5.15/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()
/Linux-v5.15/tools/testing/selftests/landlock/
Dfs_test.c245 static int test_open_rel(const int dirfd, const char *const path, const int flags) in test_open_rel() argument
250 fd = openat(dirfd, path, flags | O_CLOEXEC); in test_open_rel()
1389 int dirfd, ruleset_fd; in test_relative_path() local
1419 dirfd = open(dir_s1d2, O_DIRECTORY); in test_relative_path()
1420 ASSERT_LE(0, dirfd); in test_relative_path()
1424 dirfd = AT_FDCWD; in test_relative_path()
1431 dirfd = AT_FDCWD; in test_relative_path()
1438 dirfd = AT_FDCWD; in test_relative_path()
1443 test_open_rel(dirfd, "..", O_RDONLY)); in test_relative_path()
1444 ASSERT_EQ(0, test_open_rel(dirfd, ".", O_RDONLY)); in test_relative_path()
[all …]
/Linux-v5.15/fs/
Dfs_parser.c168 ret = filename_lookup(param->dirfd, f, flags, _path, NULL); in fs_lookup_param()
284 result->uint_32 = param->dirfd; in fs_param_is_fd()
Dfsopen.c423 param.dirfd = aux; in SYSCALL_DEFINE5()
/Linux-v5.15/include/linux/
Dfs_context.h73 int dirfd; member
/Linux-v5.15/fs/nfs/
Dnfs4super.c157 .dirfd = -1, in do_nfs4_mount()
/Linux-v5.15/Documentation/filesystems/
Dmount_api.rst499 fs_value_is_filename Value is a filename* + dirfd