/openbmc/linux/tools/testing/selftests/landlock/ |
H A D | fs_test.c | 2047 ASSERT_EQ(0, renameat2(AT_FDCWD, file1_s2d2, AT_FDCWD, dir_s2d3, in TEST_F_FORK() 2079 ASSERT_EQ(-1, renameat2(AT_FDCWD, dir_s2d3, AT_FDCWD, dir_s1d3, in TEST_F_FORK() 2092 ASSERT_EQ(-1, renameat2(AT_FDCWD, dir_s1d1, AT_FDCWD, dir_s2d1, in TEST_F_FORK() 2666 ASSERT_EQ(-1, renameat2(AT_FDCWD, dir_file1_s1d2, AT_FDCWD, in TEST_F_FORK() 2669 ASSERT_EQ(-1, renameat2(AT_FDCWD, dir_file2_s2d3, AT_FDCWD, in TEST_F_FORK() 2674 ASSERT_EQ(0, renameat2(AT_FDCWD, dir_s1d3, AT_FDCWD, dir_s2d3, in TEST_F_FORK() 2676 ASSERT_EQ(0, renameat2(AT_FDCWD, dir_s2d3, AT_FDCWD, dir_s1d3, in TEST_F_FORK() 2720 ASSERT_EQ(-1, renameat2(AT_FDCWD, dir_file1_s1d2, AT_FDCWD, in TEST_F_FORK() 2723 ASSERT_EQ(-1, renameat2(AT_FDCWD, dir_file2_s2d3, AT_FDCWD, in TEST_F_FORK() 2728 ASSERT_EQ(-1, renameat2(AT_FDCWD, dir_s1d3, AT_FDCWD, dir_s2d3, in TEST_F_FORK() [all …]
|
/openbmc/linux/tools/testing/selftests/tmpfs/ |
H A 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()
|
/openbmc/linux/fs/ |
H A 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()
|
H A D | utimes.c | 143 if (filename == NULL && dfd != AT_FDCWD) in do_utimes() 212 return do_futimesat(AT_FDCWD, filename, utimes); in SYSCALL_DEFINE2() 226 return do_utimes(AT_FDCWD, filename, times ? tv : NULL, 0); in SYSCALL_DEFINE2() 248 return do_utimes(AT_FDCWD, filename, t ? tv : NULL, 0); in SYSCALL_DEFINE2() 297 return do_compat_futimesat(AT_FDCWD, filename, t); in SYSCALL_DEFINE2()
|
H A D | open.c | 133 error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); in do_sys_truncate() 542 return do_faccessat(AT_FDCWD, filename, mode, 0); in SYSCALL_DEFINE2() 551 error = user_path_at(AT_FDCWD, filename, lookup_flags, &path); in SYSCALL_DEFINE1() 599 error = user_path_at(AT_FDCWD, filename, lookup_flags, &path); in SYSCALL_DEFINE1() 715 return do_fchmodat(AT_FDCWD, filename, mode, 0); in SYSCALL_DEFINE2() 834 return do_fchownat(AT_FDCWD, filename, user, group, 0); in SYSCALL_DEFINE3() 839 return do_fchownat(AT_FDCWD, filename, user, group, in SYSCALL_DEFINE3() 1364 return do_filp_open(AT_FDCWD, name, &op); in file_open_name() 1442 return do_sys_open(AT_FDCWD, filename, flags, mode); in SYSCALL_DEFINE3() 1487 return do_sys_open(AT_FDCWD, filename, flags, mode); in COMPAT_SYSCALL_DEFINE3() [all …]
|
/openbmc/linux/tools/testing/selftests/filesystems/fat/ |
H A D | rename_exchange.c | 30 ret = renameat2(AT_FDCWD, argv[1], AT_FDCWD, argv[2], RENAME_EXCHANGE); in main()
|
/openbmc/linux/tools/perf/tests/ |
H A D | openat-syscall-tp-fields.c | 22 #ifndef AT_FDCWD 23 #define AT_FDCWD -100 macro 88 openat(AT_FDCWD, filename, flags); in test__syscall_openat_tp_fields()
|
/openbmc/linux/tools/include/nolibc/ |
H A D | sys.h | 132 return my_syscall4(__NR_fchmodat, AT_FDCWD, path, mode, 0); in sys_chmod() 155 return my_syscall5(__NR_fchownat, AT_FDCWD, path, owner, group, 0); in sys_chown() 562 return my_syscall5(__NR_linkat, AT_FDCWD, old, AT_FDCWD, new, 0); in sys_link() 606 return my_syscall3(__NR_mkdirat, AT_FDCWD, path, mode); in sys_mkdir() 630 return my_syscall3(__NR_unlinkat, AT_FDCWD, path, AT_REMOVEDIR); in sys_rmdir() 651 return my_syscall4(__NR_mknodat, AT_FDCWD, path, mode, dev); in sys_mknod() 741 return my_syscall4(__NR_openat, AT_FDCWD, path, flags, mode); in sys_open() 1009 ret = __sysret(sys_statx(AT_FDCWD, path, AT_NO_AUTOMOUNT, STATX_BASIC_STATS, &statx)); in stat() 1046 return my_syscall3(__NR_symlinkat, old, AT_FDCWD, new); in sys_symlink() 1103 return my_syscall3(__NR_unlinkat, AT_FDCWD, path, 0); in sys_unlink()
|
/openbmc/linux/tools/testing/selftests/exec/ |
H A 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()
|
/openbmc/linux/tools/build/feature/ |
H A D | test-file-handle.c | 15 name_to_handle_at(AT_FDCWD, "/", &handle.fh, &mount_id, 0); in main()
|
/openbmc/linux/tools/include/uapi/linux/ |
H A D | fcntl.h | 96 #define AT_FDCWD -100 /* Special value used to indicate macro
|
/openbmc/linux/include/uapi/linux/ |
H A D | fcntl.h | 96 #define AT_FDCWD -100 /* Special value used to indicate macro
|
/openbmc/linux/fs/coda/ |
H A D | pioctl.c | 68 error = user_path_at(AT_FDCWD, data.path, in coda_pioctl()
|
/openbmc/linux/tools/testing/selftests/move_mount_set_group/ |
H A 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()
|
/openbmc/linux/drivers/base/ |
H A D | devtmpfs.c | 165 dentry = kern_path_create(AT_FDCWD, name, &path, LOOKUP_DIRECTORY); in dev_mkdir() 211 dentry = kern_path_create(AT_FDCWD, nodename, &path, 0); in handle_create() 214 dentry = kern_path_create(AT_FDCWD, nodename, &path, 0); in handle_create()
|
/openbmc/linux/arch/powerpc/platforms/cell/spufs/ |
H A D | syscalls.c | 70 dentry = user_path_create(AT_FDCWD, pathname, &path, LOOKUP_DIRECTORY); in do_spu_create()
|
/openbmc/linux/io_uring/ |
H A D | xattr.c | 133 ret = filename_lookup(AT_FDCWD, ix->filename, lookup_flags, &path, NULL); in io_getxattr() 242 ret = filename_lookup(AT_FDCWD, ix->filename, lookup_flags, &path, NULL); in io_setxattr()
|
/openbmc/linux/tools/testing/selftests/openat2/ |
H A D | helpers.c | 104 fd = sys_openat2(AT_FDCWD, ".", &how); in init()
|
H A D | openat2_test.c | 121 fd = raw_openat2(AT_FDCWD, ".", how_copy, test->size); in test_openat2_struct() 262 fd = sys_openat2(AT_FDCWD, path, &test->how); in test_openat2_flags()
|
/openbmc/linux/samples/vfs/ |
H A D | test-fsmount.c | 122 if (move_mount(mfd, "", AT_FDCWD, "/mnt", MOVE_MOUNT_F_EMPTY_PATH) < 0) { in main()
|
/openbmc/linux/samples/fanotify/ |
H A D | fs-monitor.c | 128 FAN_FS_ERROR, AT_FDCWD, argv[1])) { in main()
|
/openbmc/openbmc/poky/meta/recipes-core/systemd/systemd/ |
H A D | 0007-don-t-pass-AT_SYMLINK_NOFOLLOW-flag-to-faccessat.patch | 61 - RET_NERRNO(faccessat(AT_FDCWD, (path), (mode), AT_SYMLINK_NOFOLLOW)) 62 + RET_NERRNO(faccessat(AT_FDCWD, (path), (mode), 0))
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-core/sdbus-c++/sdbus-c++-libsystemd/ |
H A D | 0007-don-t-pass-AT_SYMLINK_NOFOLLOW-flag-to-faccessat.patch | 61 - RET_NERRNO(faccessat(AT_FDCWD, (path), (mode), AT_SYMLINK_NOFOLLOW)) 62 + RET_NERRNO(faccessat(AT_FDCWD, (path), (mode), 0))
|
/openbmc/qemu/hw/9pfs/ |
H A D | 9p-util-darwin.c | 107 err = fchmodat(AT_FDCWD, filename, mode, AT_SYMLINK_NOFOLLOW); in create_socket_file_at_cwd()
|
/openbmc/linux/fs/hostfs/ |
H A D | hostfs_user.c | 375 err = syscall(SYS_renameat2, AT_FDCWD, from, AT_FDCWD, to, flags); in rename2_file()
|