Home
last modified time | relevance | path

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

123

/linux-6.1.9/tools/testing/selftests/landlock/
Dfs_test.c282 return test_open_rel(AT_FDCWD, path, flags); in test_open()
1499 ASSERT_EQ(0, syscall(__NR_move_mount, AT_FDCWD, dir_s3d2, AT_FDCWD, in TEST_F_FORK()
1505 ASSERT_EQ(0, syscall(__NR_move_mount, AT_FDCWD, dir_s1d2, AT_FDCWD, in TEST_F_FORK()
1513 ASSERT_EQ(-1, syscall(__NR_move_mount, AT_FDCWD, dir_s3d2, AT_FDCWD, in TEST_F_FORK()
1620 dirfd = AT_FDCWD; in test_relative_path()
1628 dirfd = AT_FDCWD; in test_relative_path()
1636 dirfd = AT_FDCWD; in test_relative_path()
1845 if (renameat2(AT_FDCWD, oldpath, AT_FDCWD, newpath, RENAME_EXCHANGE)) in test_exchange()
1879 ASSERT_EQ(-1, renameat2(AT_FDCWD, file1_s2d3, AT_FDCWD, file1_s1d3, in TEST_F_FORK()
1882 ASSERT_EQ(-1, renameat2(AT_FDCWD, file1_s2d3, AT_FDCWD, dir_s1d3, in TEST_F_FORK()
[all …]
/linux-6.1.9/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()
/linux-6.1.9/fs/
Dinit.c152 dentry = kern_path_create(AT_FDCWD, filename, &path, 0); in init_mknod()
177 new_dentry = kern_path_create(AT_FDCWD, newname, &new_path, 0); in init_link()
207 dentry = kern_path_create(AT_FDCWD, newname, &path, 0); in init_symlink()
220 return do_unlinkat(AT_FDCWD, getname_kernel(pathname)); in init_unlink()
229 dentry = kern_path_create(AT_FDCWD, pathname, &path, LOOKUP_DIRECTORY); in init_mkdir()
244 return do_rmdir(AT_FDCWD, getname_kernel(pathname)); in init_rmdir()
Dutimes.c142 if (filename == NULL && dfd != AT_FDCWD) in do_utimes()
211 return do_futimesat(AT_FDCWD, filename, utimes); in SYSCALL_DEFINE2()
225 return do_utimes(AT_FDCWD, filename, times ? tv : NULL, 0); in SYSCALL_DEFINE2()
247 return do_utimes(AT_FDCWD, filename, t ? tv : NULL, 0); in SYSCALL_DEFINE2()
296 return do_compat_futimesat(AT_FDCWD, filename, t); in SYSCALL_DEFINE2()
Dopen.c132 error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); in do_sys_truncate()
505 return do_faccessat(AT_FDCWD, filename, mode, 0); in SYSCALL_DEFINE2()
514 error = user_path_at(AT_FDCWD, filename, lookup_flags, &path); in SYSCALL_DEFINE1()
562 error = user_path_at(AT_FDCWD, filename, lookup_flags, &path); in SYSCALL_DEFINE1()
663 return do_fchmodat(AT_FDCWD, filename, mode); in SYSCALL_DEFINE2()
787 return do_fchownat(AT_FDCWD, filename, user, group, 0); in SYSCALL_DEFINE3()
792 return do_fchownat(AT_FDCWD, filename, user, group, in SYSCALL_DEFINE3()
1255 return do_filp_open(AT_FDCWD, name, &op); in file_open_name()
1334 return do_sys_open(AT_FDCWD, filename, flags, mode); in SYSCALL_DEFINE3()
1377 return do_sys_open(AT_FDCWD, filename, flags, mode); in COMPAT_SYSCALL_DEFINE3()
[all …]
Dxattr.c631 error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); in path_setxattr()
748 error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); in path_getxattr()
825 error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); in path_listxattr()
887 error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); in path_removexattr()
Dexec.c137 file = do_filp_open(AT_FDCWD, tmp, &uselib_flags); in SYSCALL_DEFINE1()
955 f = do_open_execat(AT_FDCWD, filename, 0); in open_exec()
1513 if (fd == AT_FDCWD || filename->name[0] == '/') { in alloc_bprm()
1956 int fd = AT_FDCWD; in kernel_execve()
2016 return do_execveat_common(AT_FDCWD, filename, argv, envp, 0); in do_execve()
2043 return do_execveat_common(AT_FDCWD, filename, argv, envp, 0); in compat_do_execve()
/linux-6.1.9/tools/testing/selftests/filesystems/fat/
Drename_exchange.c30 ret = renameat2(AT_FDCWD, argv[1], AT_FDCWD, argv[2], RENAME_EXCHANGE); in main()
/linux-6.1.9/tools/perf/tests/
Dopenat-syscall-tp-fields.c21 #ifndef AT_FDCWD
22 #define AT_FDCWD -100 macro
87 openat(AT_FDCWD, filename, flags); in test__syscall_openat_tp_fields()
/linux-6.1.9/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()
/linux-6.1.9/tools/include/nolibc/
Dsys.h118 return my_syscall4(__NR_fchmodat, AT_FDCWD, path, mode, 0); in sys_chmod()
147 return my_syscall5(__NR_fchownat, AT_FDCWD, path, owner, group, 0); in sys_chown()
578 return my_syscall5(__NR_linkat, AT_FDCWD, old, AT_FDCWD, new, 0); in sys_link()
630 return my_syscall3(__NR_mkdirat, AT_FDCWD, path, mode); in sys_mkdir()
659 return my_syscall4(__NR_mknodat, AT_FDCWD, path, mode, dev); in sys_mknod()
776 return my_syscall4(__NR_openat, AT_FDCWD, path, flags, mode); in sys_open()
1041 ret = my_syscall4(__NR_newfstatat, AT_FDCWD, path, &stat, 0); in sys_stat()
1084 return my_syscall3(__NR_symlinkat, old, AT_FDCWD, new); in sys_symlink()
1153 return my_syscall3(__NR_unlinkat, AT_FDCWD, path, 0); in sys_unlink()
Dtypes.h64 #ifndef AT_FDCWD
65 #define AT_FDCWD (-100) macro
/linux-6.1.9/tools/build/feature/
Dtest-file-handle.c15 name_to_handle_at(AT_FDCWD, "/", &handle.fh, &mount_id, 0); in main()
/linux-6.1.9/tools/include/uapi/linux/
Dfcntl.h95 #define AT_FDCWD -100 /* Special value used to indicate macro
/linux-6.1.9/include/uapi/linux/
Dfcntl.h95 #define AT_FDCWD -100 /* Special value used to indicate macro
/linux-6.1.9/drivers/base/
Ddevtmpfs.c172 dentry = kern_path_create(AT_FDCWD, name, &path, LOOKUP_DIRECTORY); in dev_mkdir()
218 dentry = kern_path_create(AT_FDCWD, nodename, &path, 0); in handle_create()
221 dentry = kern_path_create(AT_FDCWD, nodename, &path, 0); in handle_create()
/linux-6.1.9/tools/testing/selftests/move_mount_set_group/
Dmove_mount_set_group_test.c221 ret = syscall(SYS_move_mount, AT_FDCWD, SET_GROUP_FROM, in move_mount_set_group_supported()
222 AT_FDCWD, SET_GROUP_TO, MOVE_MOUNT_SET_GROUP); in move_mount_set_group_supported()
/linux-6.1.9/fs/coda/
Dpioctl.c68 error = user_path_at(AT_FDCWD, data.path, in coda_pioctl()
/linux-6.1.9/arch/powerpc/platforms/cell/spufs/
Dsyscalls.c70 dentry = user_path_create(AT_FDCWD, pathname, &path, LOOKUP_DIRECTORY); in do_spu_create()
/linux-6.1.9/io_uring/
Dxattr.c134 ret = filename_lookup(AT_FDCWD, ix->filename, lookup_flags, &path, NULL); in io_getxattr()
246 ret = filename_lookup(AT_FDCWD, ix->filename, lookup_flags, &path, NULL); in io_setxattr()
/linux-6.1.9/samples/vfs/
Dtest-fsmount.c122 if (move_mount(mfd, "", AT_FDCWD, "/mnt", MOVE_MOUNT_F_EMPTY_PATH) < 0) { in main()
/linux-6.1.9/tools/testing/selftests/openat2/
Dhelpers.c104 fd = sys_openat2(AT_FDCWD, ".", &how); in init()
Dopenat2_test.c120 fd = raw_openat2(AT_FDCWD, ".", how_copy, test->size); in test_openat2_struct()
261 fd = sys_openat2(AT_FDCWD, path, &test->how); in test_openat2_flags()
/linux-6.1.9/fs/hostfs/
Dhostfs_user.c373 err = syscall(SYS_renameat2, AT_FDCWD, from, AT_FDCWD, to, flags); in rename2_file()
/linux-6.1.9/samples/fanotify/
Dfs-monitor.c128 FAN_FS_ERROR, AT_FDCWD, argv[1])) { in main()

123