/linux-6.1.9/tools/testing/selftests/landlock/ |
D | fs_test.c | 282 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/ |
D | bug-link-o-tmpfile.c | 49 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/ |
D | init.c | 152 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()
|
D | utimes.c | 142 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()
|
D | open.c | 132 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 …]
|
D | xattr.c | 631 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()
|
D | exec.c | 137 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/ |
D | rename_exchange.c | 30 ret = renameat2(AT_FDCWD, argv[1], AT_FDCWD, argv[2], RENAME_EXCHANGE); in main()
|
/linux-6.1.9/tools/perf/tests/ |
D | openat-syscall-tp-fields.c | 21 #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/ |
D | execveat.c | 268 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/ |
D | sys.h | 118 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()
|
D | types.h | 64 #ifndef AT_FDCWD 65 #define AT_FDCWD (-100) macro
|
/linux-6.1.9/tools/build/feature/ |
D | test-file-handle.c | 15 name_to_handle_at(AT_FDCWD, "/", &handle.fh, &mount_id, 0); in main()
|
/linux-6.1.9/tools/include/uapi/linux/ |
D | fcntl.h | 95 #define AT_FDCWD -100 /* Special value used to indicate macro
|
/linux-6.1.9/include/uapi/linux/ |
D | fcntl.h | 95 #define AT_FDCWD -100 /* Special value used to indicate macro
|
/linux-6.1.9/drivers/base/ |
D | devtmpfs.c | 172 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/ |
D | move_mount_set_group_test.c | 221 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/ |
D | pioctl.c | 68 error = user_path_at(AT_FDCWD, data.path, in coda_pioctl()
|
/linux-6.1.9/arch/powerpc/platforms/cell/spufs/ |
D | syscalls.c | 70 dentry = user_path_create(AT_FDCWD, pathname, &path, LOOKUP_DIRECTORY); in do_spu_create()
|
/linux-6.1.9/io_uring/ |
D | xattr.c | 134 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/ |
D | test-fsmount.c | 122 if (move_mount(mfd, "", AT_FDCWD, "/mnt", MOVE_MOUNT_F_EMPTY_PATH) < 0) { in main()
|
/linux-6.1.9/tools/testing/selftests/openat2/ |
D | helpers.c | 104 fd = sys_openat2(AT_FDCWD, ".", &how); in init()
|
D | openat2_test.c | 120 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/ |
D | hostfs_user.c | 373 err = syscall(SYS_renameat2, AT_FDCWD, from, AT_FDCWD, to, flags); in rename2_file()
|
/linux-6.1.9/samples/fanotify/ |
D | fs-monitor.c | 128 FAN_FS_ERROR, AT_FDCWD, argv[1])) { in main()
|