Home
last modified time | relevance | path

Searched refs:AT_FDCWD (Results 1 – 25 of 50) sorted by relevance

12

/kernel/linux/linux-5.10/tools/testing/selftests/tmpfs/
Dbug-link-o-tmpfile.c49 fd = openat(AT_FDCWD, "/tmp", O_WRONLY|O_TMPFILE, 0600); in main()
54 if (linkat(fd, "", AT_FDCWD, "/tmp/1", AT_EMPTY_PATH) == -1) { in main()
60 fd = openat(AT_FDCWD, "/tmp", O_WRONLY|O_TMPFILE, 0600); in main()
/kernel/linux/linux-5.10/fs/
Dinit.c152 dentry = kern_path_create(AT_FDCWD, filename, &path, 0); in init_mknod()
176 new_dentry = kern_path_create(AT_FDCWD, newname, &new_path, 0); in init_link()
205 dentry = kern_path_create(AT_FDCWD, newname, &path, 0); in init_symlink()
217 return do_unlinkat(AT_FDCWD, getname_kernel(pathname)); in init_unlink()
226 dentry = kern_path_create(AT_FDCWD, pathname, &path, LOOKUP_DIRECTORY); in init_mkdir()
240 return do_rmdir(AT_FDCWD, getname_kernel(pathname)); in init_rmdir()
Dutimes.c141 if (filename == NULL && dfd != AT_FDCWD) in do_utimes()
210 return do_futimesat(AT_FDCWD, filename, utimes); in SYSCALL_DEFINE2()
224 return do_utimes(AT_FDCWD, filename, times ? tv : NULL, 0); in SYSCALL_DEFINE2()
246 return do_utimes(AT_FDCWD, filename, t ? tv : NULL, 0); in SYSCALL_DEFINE2()
295 return do_compat_futimesat(AT_FDCWD, filename, t); in SYSCALL_DEFINE2()
Dopen.c131 error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); in do_sys_truncate()
482 return do_faccessat(AT_FDCWD, filename, mode, 0); in SYSCALL_DEFINE2()
491 error = user_path_at(AT_FDCWD, filename, lookup_flags, &path); in SYSCALL_DEFINE1()
539 error = user_path_at(AT_FDCWD, filename, lookup_flags, &path); in SYSCALL_DEFINE1()
639 return do_fchmodat(AT_FDCWD, filename, mode); in SYSCALL_DEFINE2()
724 return do_fchownat(AT_FDCWD, filename, user, group, 0); in SYSCALL_DEFINE3()
729 return do_fchownat(AT_FDCWD, filename, user, group, in SYSCALL_DEFINE3()
1125 return do_filp_open(AT_FDCWD, name, &op); in file_open_name()
1204 return do_sys_open(AT_FDCWD, filename, flags, mode); in SYSCALL_DEFINE3()
1245 return do_sys_open(AT_FDCWD, filename, flags, mode); in COMPAT_SYSCALL_DEFINE3()
[all …]
Dxattr.c562 error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); in path_setxattr()
660 error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); in path_getxattr()
736 error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); in path_listxattr()
797 error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); in path_removexattr()
Dexec.c140 file = do_filp_open(AT_FDCWD, tmp, &uselib_flags); in SYSCALL_DEFINE1()
947 f = do_open_execat(AT_FDCWD, filename, 0); in open_exec()
1502 if (fd == AT_FDCWD || filename->name[0] == '/') { in alloc_bprm()
1932 int fd = AT_FDCWD; in kernel_execve()
1986 return do_execveat_common(AT_FDCWD, filename, argv, envp, 0); in do_execve()
2013 return do_execveat_common(AT_FDCWD, filename, argv, envp, 0); in compat_do_execve()
/kernel/linux/linux-5.10/tools/perf/tests/
Dopenat-syscall-tp-fields.c21 #ifndef AT_FDCWD
22 #define AT_FDCWD -100 macro
86 openat(AT_FDCWD, filename, flags); in test__syscall_openat_tp_fields()
/kernel/linux/linux-5.10/tools/testing/selftests/exec/
Dexecveat.c268 fail += check_execveat(AT_FDCWD, fullname, 0); in run_tests()
300 fail += check_execveat(AT_FDCWD, fullname_symlink, 0); in run_tests()
313 fail += check_execveat_fail(AT_FDCWD, fullname_symlink, in run_tests()
326 fail += check_execveat(AT_FDCWD, fullname_script, 0); in run_tests()
360 fail += check_execveat_fail(AT_FDCWD, "no-such-file", 0, ENOENT); in run_tests()
/kernel/liteos_a/syscall/
Dfs_syscall.c116 if ((fd != AT_FDCWD) && (path == NULL)) { in GetFullpathNull()
328 ret = do_open(AT_FDCWD, pathRet, oflags, mode); in SysOpen()
502 ret = do_unlink(AT_FDCWD, (pathname ? pathRet : NULL)); in SysUnlink()
760 ret = do_rename(AT_FDCWD, (oldpath ? pathOldRet : NULL), AT_FDCWD, in SysRename()
788 ret = do_mkdir(AT_FDCWD, (pathname ? pathRet : NULL), mode); in SysMkdir()
812 ret = do_rmdir(AT_FDCWD, (pathname ? pathRet : NULL)); in SysRmdir()
1687 if (dirfd != AT_FDCWD) { in SysOpenat()
1726 if (dirfd != AT_FDCWD) { in SysMkdirat()
1763 if (olddirfd != AT_FDCWD) { in SysLinkat()
1768 if (newdirfd != AT_FDCWD) { in SysLinkat()
[all …]
Dsyscall_pub.c81 if (fd != AT_FDCWD) { in GetFullpath()
/kernel/linux/linux-5.10/tools/build/feature/
Dtest-file-handle.c15 name_to_handle_at(AT_FDCWD, "/", &handle.fh, &mount_id, 0); in main()
/kernel/linux/linux-5.10/tools/include/nolibc/
Dnolibc.h235 #define AT_FDCWD -100 macro
1482 return my_syscall4(__NR_fchmodat, AT_FDCWD, path, mode, 0); in sys_chmod()
1492 return my_syscall5(__NR_fchownat, AT_FDCWD, path, owner, group, 0); in sys_chown()
1580 return my_syscall5(__NR_linkat, AT_FDCWD, old, AT_FDCWD, new, 0); in sys_link()
1596 return my_syscall3(__NR_mkdirat, AT_FDCWD, path, mode); in sys_mkdir()
1606 return my_syscall4(__NR_mknodat, AT_FDCWD, path, mode, dev); in sys_mknod()
1623 return my_syscall4(__NR_openat, AT_FDCWD, path, flags, mode); in sys_open()
1705 ret = my_syscall4(__NR_newfstatat, AT_FDCWD, path, &stat, 0); in sys_stat()
1730 return my_syscall3(__NR_symlinkat, old, AT_FDCWD, new); in sys_symlink()
1752 return my_syscall3(__NR_unlinkat, AT_FDCWD, path, 0); in sys_unlink()
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
Dfcntl.h39 #define AT_FDCWD -100 macro
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
Dfcntl.h55 #define AT_FDCWD - 100 macro
/kernel/linux/linux-5.10/tools/include/uapi/linux/
Dfcntl.h95 #define AT_FDCWD -100 /* Special value used to indicate macro
/kernel/linux/linux-5.10/include/uapi/linux/
Dfcntl.h95 #define AT_FDCWD -100 /* Special value used to indicate macro
/kernel/linux/linux-5.10/drivers/base/
Ddevtmpfs.c168 dentry = kern_path_create(AT_FDCWD, name, &path, LOOKUP_DIRECTORY); in dev_mkdir()
214 dentry = kern_path_create(AT_FDCWD, nodename, &path, 0); in handle_create()
217 dentry = kern_path_create(AT_FDCWD, nodename, &path, 0); in handle_create()
/kernel/linux/linux-5.10/fs/coda/
Dpioctl.c66 error = user_path_at(AT_FDCWD, data.path, in coda_pioctl()
/kernel/linux/linux-5.10/arch/powerpc/platforms/cell/spufs/
Dsyscalls.c70 dentry = user_path_create(AT_FDCWD, pathname, &path, LOOKUP_DIRECTORY); in do_spu_create()
/kernel/linux/linux-5.10/tools/testing/selftests/openat2/
Dopenat2_test.c116 fd = raw_openat2(AT_FDCWD, ".", how_copy, test->size); in test_openat2_struct()
246 fd = sys_openat2(AT_FDCWD, path, &test->how); in test_openat2_flags()
Dhelpers.c104 fd = sys_openat2(AT_FDCWD, ".", &how); in init()
/kernel/linux/linux-5.10/samples/vfs/
Dtest-fsmount.c122 if (move_mount(mfd, "", AT_FDCWD, "/mnt", MOVE_MOUNT_F_EMPTY_PATH) < 0) { in main()
Dtest-statx.c252 ret = statx(AT_FDCWD, *argv, atflag, mask, &stx); in main()
/kernel/linux/linux-5.10/fs/hostfs/
Dhostfs_user.c373 err = syscall(SYS_renameat2, AT_FDCWD, from, AT_FDCWD, to, flags); in rename2_file()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/
Dcgroup_helpers.c259 dirfd = AT_FDCWD; in get_cgroup_id()

12