/linux-6.1.9/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 | 51 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/ |
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()
|
/linux-6.1.9/tools/testing/selftests/bpf/ |
D | cgroup_helpers.c | 375 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/ |
D | fs_test.c | 262 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/ |
D | fs_parser.c | 169 ret = filename_lookup(param->dirfd, f, flags, _path, NULL); in fs_lookup_param() 300 result->uint_32 = param->dirfd; in fs_param_is_fd()
|
D | fsopen.c | 423 param.dirfd = aux; in SYSCALL_DEFINE5()
|
/linux-6.1.9/include/linux/ |
D | fs_context.h | 73 int dirfd; member
|
/linux-6.1.9/fs/nfs/ |
D | nfs4super.c | 157 .dirfd = -1, in do_nfs4_mount()
|
/linux-6.1.9/Documentation/filesystems/ |
D | mount_api.rst | 499 fs_value_is_filename Value is a filename* + dirfd
|