/kernel/linux/linux-5.10/tools/testing/selftests/proc/ |
D | read.c | 45 fd = openat(dirfd(d), filename, O_RDONLY|O_NONBLOCK); in f_reg() 58 fd = openat(dirfd(d), filename, O_WRONLY); in f_reg_write() 71 rv = readlinkat(dirfd(d), filename, buf, sizeof(buf)); in f_lnk() 107 fd = openat(dirfd(d), de->d_name, O_DIRECTORY|O_RDONLY); in f() 135 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 | 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()
|
D | fd-001-lookup.c | 136 if (fd == dirfd(d)) in main()
|
/kernel/linux/linux-5.10/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()
|
/kernel/liteos_a/testsuites/unittest/fuzz/ |
D | readlinkat_fuzzer.cpp | 42 s32 dirfd = *(s32*)DT_SetGetS32(&g_Element[0], INITVALUE_S32); in TestReadlinkat() local 46 readlinkat(dirfd, pathname, buf, bufsize); in TestReadlinkat()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/ |
D | cgroup_helpers.c | 248 int dirfd, err, flags, mount_id, fhsize; in get_cgroup_id() local 259 dirfd = AT_FDCWD; in get_cgroup_id() 267 err = name_to_handle_at(dirfd, cgroup_workdir, fhp, &mount_id, flags); in get_cgroup_id() 279 err = name_to_handle_at(dirfd, cgroup_workdir, fhp2, &mount_id, flags); in get_cgroup_id()
|
/kernel/liteos_a/syscall/ |
D | fs_syscall.c | 1781 int SysOpenat(int dirfd, const char *path, int oflags, ...) in SysOpenat() argument 1814 if (dirfd != AT_FDCWD) { in SysOpenat() 1816 dirfd = GetAssociatedSystemFd(dirfd); in SysOpenat() 1819 ret = do_open(dirfd, (path ? pathRet : NULL), oflags, mode); in SysOpenat() 1841 int SysMkdirat(int dirfd, const char *pathname, mode_t mode) in SysMkdirat() argument 1853 if (dirfd != AT_FDCWD) { in SysMkdirat() 1855 dirfd = GetAssociatedSystemFd(dirfd); in SysMkdirat() 1858 ret = do_mkdir(dirfd, (pathname ? pathRet : NULL), mode); in SysMkdirat() 1915 int SysSymlinkat(const char *target, int dirfd, const char *linkpath) in SysSymlinkat() argument 1935 if (dirfd != AT_FDCWD) { in SysSymlinkat() [all …]
|
D | los_syscall.h | 216 extern int do_open(int dirfd, const char *path, int oflags, mode_t mode); 217 extern int do_unlink(int dirfd, const char *pathname); 218 extern int do_mkdir(int dirfd, const char *pathname, mode_t mode); 219 extern int do_rmdir(int dirfd, const char *pathname); 237 extern int SysSymlinkat(const char *target, int dirfd, const char *linkpath); 238 extern ssize_t SysReadlinkat(int dirfd, const char *pathname, char *buf, size_t bufsize); 303 extern int SysOpenat(int dirfd, const char *path, int oflags, ...); 304 extern int SysMkdirat(int dirfd, const char *pathname, mode_t mode); 305 extern int SysUnlinkat(int dirfd, const char *pathname, int flag);
|
/kernel/liteos_a/fs/vfs/operation/ |
D | fullpath.c | 305 int vfs_normalize_pathat(int dirfd, const char *filename, char **pathname) in vfs_normalize_pathat() argument 312 ret = get_path_from_fd(dirfd, &relativeoldpath); in vfs_normalize_pathat()
|
/kernel/liteos_a/testsuites/unittest/extended/ipc/full/ |
D | ipc_test_mkfifoat_001.cpp | 47 fdDir = dirfd(dir); in testcase1()
|
/kernel/linux/linux-5.10/fs/ |
D | fs_parser.c | 169 ret = filename_lookup(param->dirfd, f, flags, _path, NULL); in fs_lookup_param() 285 result->uint_32 = param->dirfd; in fs_param_is_fd()
|
D | fsopen.c | 423 param.dirfd = aux; in SYSCALL_DEFINE5()
|
/kernel/linux/linux-5.10/include/linux/ |
D | fs_context.h | 73 int dirfd; member
|
/kernel/linux/linux-5.10/fs/nfs/ |
D | nfs4super.c | 157 .dirfd = -1, in do_nfs4_mount()
|
/kernel/linux/linux-5.10/Documentation/filesystems/ |
D | mount_api.rst | 499 fs_value_is_filename Value is a filename* + dirfd
|