Home
last modified time | relevance | path

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

/linux-6.1.9/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.c51 static inline long sys_execveat(int dirfd, const char *pathname, char **argv, char **envp, int flag… in sys_execveat() argument
53 return syscall(SYS_execveat, dirfd, pathname, argv, envp, flags); in sys_execveat()
/linux-6.1.9/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-6.1.9/tools/testing/selftests/bpf/
Dcgroup_helpers.c375 int dirfd, err, flags, mount_id, fhsize; in get_cgroup_id() local
386 dirfd = AT_FDCWD; in get_cgroup_id()
394 err = name_to_handle_at(dirfd, cgroup_workdir, fhp, &mount_id, flags); in get_cgroup_id()
406 err = name_to_handle_at(dirfd, cgroup_workdir, fhp2, &mount_id, flags); in get_cgroup_id()
/linux-6.1.9/tools/testing/selftests/landlock/
Dfs_test.c262 static int test_open_rel(const int dirfd, const char *const path, in test_open_rel() argument
268 fd = openat(dirfd, path, flags | O_CLOEXEC); in test_open_rel()
1585 int dirfd, ruleset_fd; in test_relative_path() local
1615 dirfd = open(dir_s1d2, O_DIRECTORY); in test_relative_path()
1616 ASSERT_LE(0, dirfd); in test_relative_path()
1620 dirfd = AT_FDCWD; in test_relative_path()
1628 dirfd = AT_FDCWD; in test_relative_path()
1636 dirfd = AT_FDCWD; in test_relative_path()
1641 test_open_rel(dirfd, "..", O_RDONLY)); in test_relative_path()
1642 ASSERT_EQ(0, test_open_rel(dirfd, ".", O_RDONLY)); in test_relative_path()
[all …]
/linux-6.1.9/fs/
Dfs_parser.c169 ret = filename_lookup(param->dirfd, f, flags, _path, NULL); in fs_lookup_param()
300 result->uint_32 = param->dirfd; in fs_param_is_fd()
Dfsopen.c423 param.dirfd = aux; in SYSCALL_DEFINE5()
/linux-6.1.9/include/linux/
Dfs_context.h73 int dirfd; member
/linux-6.1.9/fs/nfs/
Dnfs4super.c157 .dirfd = -1, in do_nfs4_mount()
/linux-6.1.9/Documentation/filesystems/
Dmount_api.rst499 fs_value_is_filename Value is a filename* + dirfd