Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/tools/testing/selftests/proc/
Dread.c45 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()
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()
/kernel/linux/linux-5.10/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()
/kernel/liteos_a/testsuites/unittest/fuzz/
Dreadlinkat_fuzzer.cpp42 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/
Dcgroup_helpers.c248 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/
Dfs_syscall.c1781 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 …]
Dlos_syscall.h216 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/
Dfullpath.c305 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/
Dipc_test_mkfifoat_001.cpp47 fdDir = dirfd(dir); in testcase1()
/kernel/linux/linux-5.10/fs/
Dfs_parser.c169 ret = filename_lookup(param->dirfd, f, flags, _path, NULL); in fs_lookup_param()
285 result->uint_32 = param->dirfd; in fs_param_is_fd()
Dfsopen.c423 param.dirfd = aux; in SYSCALL_DEFINE5()
/kernel/linux/linux-5.10/include/linux/
Dfs_context.h73 int dirfd; member
/kernel/linux/linux-5.10/fs/nfs/
Dnfs4super.c157 .dirfd = -1, in do_nfs4_mount()
/kernel/linux/linux-5.10/Documentation/filesystems/
Dmount_api.rst499 fs_value_is_filename Value is a filename* + dirfd