/third_party/ltp/testcases/kernel/syscalls/openat2/ |
D | openat203.c | 27 {"invalid-pathname", AT_FDCWD, NULL, O_RDONLY | O_CREAT, S_IRUSR, 0, &how, sizeof(*how), EFAULT}, 28 {"invalid-flags", AT_FDCWD, TEST_FILE, O_RDONLY, S_IWUSR, 0, &how, sizeof(*how), EINVAL}, 29 {"invalid-mode", AT_FDCWD, TEST_FILE, O_RDWR | O_CREAT, -1, 0, &how, sizeof(*how), EINVAL}, 30 …{"invalid-resolve", AT_FDCWD, TEST_FILE, O_RDWR | O_CREAT, S_IRWXU, -1, &how, sizeof(*how), EINVAL… 31 {"invalid-size-zero", AT_FDCWD, TEST_FILE, O_RDWR | O_CREAT, S_IRWXU, 0, &how, 0, EINVAL}, 32 …{"invalid-size-small", AT_FDCWD, TEST_FILE, O_RDWR | O_CREAT, S_IRWXU, 0, &how, sizeof(*how) - 1, … 33 …{"invalid-size-big", AT_FDCWD, TEST_FILE, O_RDWR | O_CREAT, S_IRWXU, 0, &how, sizeof(*how) + 1, EF… 34 …{"invalid-size-big-with-pad", AT_FDCWD, TEST_FILE, O_RDWR | O_CREAT, S_IRWXU, 0, (struct open_how …
|
/third_party/musl/src/stdio/ |
D | rename.c | 10 return syscall(SYS_renameat, AT_FDCWD, old, AT_FDCWD, new); in rename() 12 return syscall(SYS_renameat2, AT_FDCWD, old, AT_FDCWD, new, 0); in rename()
|
D | remove.c | 11 int r = __syscall(SYS_unlinkat, AT_FDCWD, path, 0); in remove() 16 if (r==-EISDIR) r = __syscall(SYS_unlinkat, AT_FDCWD, path, AT_REMOVEDIR); in remove()
|
/third_party/ltp/testcases/kernel/syscalls/statx/ |
D | statx03.c | 58 {.dfd = AT_FDCWD, .filename = &efault_fname, .flag = 0, 61 {.dfd = AT_FDCWD, .filename = &test_fname, .flag = -1, 64 {.dfd = AT_FDCWD, .filename = &test_fname, .flag = 0, 67 {.dfd = AT_FDCWD, .filename = &empty_fname, .flag = 0, 73 {.dfd = AT_FDCWD, .filename = &etoolong_fname, .flag = 0,
|
/third_party/ltp/testcases/kernel/syscalls/openat/ |
D | openat02.c | 123 TEST(openat(AT_FDCWD, TEST_FILE, O_APPEND | O_RDWR, 0777)); in testfunc_append() 154 TEST(openat(AT_FDCWD, TEST_FILE, O_CLOEXEC | O_RDWR, 0777)); in testfunc_cloexec() 210 TEST(openat(AT_FDCWD, LARGE_FILE, O_LARGEFILE | O_RDONLY, 0777)); in testfunc_largefile() 245 TEST(openat(AT_FDCWD, TEST_FILE, O_NOATIME | O_RDONLY, 0777)); in testfunc_noatime() 266 TEST(openat(AT_FDCWD, SFILE, O_NOFOLLOW | O_RDONLY, 0777)); in testfunc_nofollow() 280 TEST(openat(AT_FDCWD, TEST_FILE, O_TRUNC | O_RDWR, 0777)); in testfunc_trunc()
|
D | openat03.c | 53 int fd = openat(AT_FDCWD, ".", O_TMPFILE | O_RDWR, 0600); in setup() 67 int fd = openat(AT_FDCWD, ".", O_TMPFILE | O_RDWR, mode); in openat_tmp() 113 SAFE_LINKAT(cleanup, AT_FDCWD, path, AT_FDCWD, "tmpfile", in test01() 181 SAFE_LINKAT(cleanup, AT_FDCWD, path1, AT_FDCWD, path2, in link_tmp_file()
|
/third_party/boost/libs/filesystem/test/issues/ |
D | fchmodat_AT_SYMLINK_NOFOLLOW_6659.cpp | 31 assert(!::fchmodat(AT_FDCWD, "out", S_IRUSR | S_IWUSR | S_IXUSR, 0)); in main() 32 assert(!::fchmodat(AT_FDCWD, "sym", S_IRUSR | S_IWUSR | S_IXUSR, 0)); in main() 34 assert(::fchmodat(AT_FDCWD, "sym", S_IRUSR | S_IWUSR | S_IXUSR, AT_SYMLINK_NOFOLLOW) == -1); in main()
|
/third_party/ltp/testcases/kernel/syscalls/move_mount/ |
D | move_mount02.c | 23 {"invalid-from-fd", &invalid_fd, "", AT_FDCWD, MNTPOINT, MOVE_MOUNT_F_EMPTY_PATH, EBADF}, 24 {"invalid-from-path", &fsmfd, "invalid", AT_FDCWD, MNTPOINT, MOVE_MOUNT_F_EMPTY_PATH, ENOENT}, 26 {"invalid-to-path", &fsmfd, "", AT_FDCWD, "invalid", MOVE_MOUNT_F_EMPTY_PATH, ENOENT}, 27 {"invalid-flags", &fsmfd, "", AT_FDCWD, MNTPOINT, 0x08, EINVAL},
|
/third_party/ltp/testcases/kernel/syscalls/fanotify/ |
D | fanotify04.c | 61 if (fanotify_mark(fd_notify, FAN_MARK_ADD | flag, FAN_OPEN, AT_FDCWD, in check_mark() 81 FAN_OPEN, AT_FDCWD, file) < 0) { in check_mark() 195 FAN_OPEN, AT_FDCWD, fname) < 0) { in test01() 201 FAN_OPEN | FAN_ONDIR, AT_FDCWD, dir) < 0) { in test01() 212 0, AT_FDCWD, ".") < 0) { in test01()
|
D | fanotify01.c | 106 AT_FDCWD, fname) < 0) { in test_fanotify() 166 FAN_ACCESS, AT_FDCWD, fname) < 0) { in test_fanotify() 216 FAN_OPEN | FAN_CLOSE, AT_FDCWD, fname) < 0) { in test_fanotify() 245 FAN_OPEN | FAN_CLOSE, AT_FDCWD, fname) < 0) { in test_fanotify() 349 AT_FDCWD, fname) < 0) { in test_fanotify()
|
/third_party/musl/src/unistd/ |
D | link.c | 10 return syscall(SYS_linkat, AT_FDCWD, existing, AT_FDCWD, new, 0); in link()
|
/third_party/ltp/testcases/kernel/syscalls/futimesat/ |
D | futimesat01.c | 40 #ifndef AT_FDCWD 41 #define AT_FDCWD -100 macro 120 fds[4] = AT_FDCWD; in setup()
|
/third_party/ltp/testcases/kernel/syscalls/unlinkat/ |
D | unlinkat01.c | 41 #ifndef AT_FDCWD 42 #define AT_FDCWD -100 macro 127 fds[5] = AT_FDCWD; in setup()
|
/third_party/ltp/testcases/kernel/syscalls/fchmodat/ |
D | fchmodat01.c | 49 #ifndef AT_FDCWD 50 #define AT_FDCWD -100 macro 135 fds[5] = AT_FDCWD; in setup()
|
/third_party/ltp/testcases/kernel/syscalls/faccessat/ |
D | faccessat01.c | 49 #ifndef AT_FDCWD 50 #define AT_FDCWD -100 macro 138 fds[5] = AT_FDCWD; in setup()
|
/third_party/toybox/porting/liteos_a/toys/posix/ |
D | cp.c | 112 int fdout = -1, cfd = try->parent ? try->parent->extra : AT_FDCWD, in cp_node() 214 fdout = AT_FDCWD; in cp_node() 232 fdout = AT_FDCWD; in cp_node() 292 if (fdout == AT_FDCWD) in cp_node() 308 if (fdout == AT_FDCWD) utimensat(cfd, catch, times, AT_SYMLINK_NOFOLLOW); in cp_node() 313 if (fdout != AT_FDCWD) { in cp_node() 422 ret = fstatat(AT_FDCWD, destname, &cst, 0); in cp_main() 508 if (mkpathat(AT_FDCWD, *ss, 0777, MKPATHAT_MKLAST | MKPATHAT_MAKE)) perror_msg_raw(*ss); in install_main() 519 if (mkpathat(AT_FDCWD, TT.destname, 0, MKPATHAT_MAKE)) in install_main()
|
/third_party/flutter/engine/flutter/fml/platform/posix/ |
D | file_posix.cc | 64 return OpenFile(fml::UniqueFD{AT_FDCWD}, path, create_if_necessary, in OpenFile() 94 return OpenDirectory(fml::UniqueFD{AT_FDCWD}, path, create_if_necessary, in OpenDirectory() 153 return UnlinkDirectory(fml::UniqueFD{AT_FDCWD}, path); in UnlinkDirectory() 161 return UnlinkFile(fml::UniqueFD{AT_FDCWD}, path); in UnlinkFile()
|
/third_party/ltp/testcases/kernel/syscalls/fstatat/ |
D | fstatat01.c | 41 #ifndef AT_FDCWD 42 #define AT_FDCWD -100 macro 137 fds[5] = AT_FDCWD; in setup()
|
/third_party/toybox/toys/posix/ |
D | cp.c | 128 int fdout = -1, cfd = try->parent ? try->parent->extra : AT_FDCWD, in cp_node() 241 fdout = AT_FDCWD; in cp_node() 259 fdout = AT_FDCWD; in cp_node() 319 if (fdout == AT_FDCWD) in cp_node() 335 if (fdout == AT_FDCWD) utimensat(cfd, catch, times, AT_SYMLINK_NOFOLLOW); in cp_node() 340 if (fdout != AT_FDCWD) { in cp_node() 505 if (mkpathat(AT_FDCWD, *ss, 0777, MKPATHAT_MKLAST | MKPATHAT_MAKE)) perror_msg_raw(*ss); in install_main() 516 if (mkpathat(AT_FDCWD, TT.destname, 0, MKPATHAT_MAKE)) in install_main()
|
/third_party/ltp/include/lapi/ |
D | fcntl.h | 85 #ifndef AT_FDCWD 86 # define AT_FDCWD -100 macro
|
/third_party/ltp/testcases/kernel/syscalls/open_tree/ |
D | open_tree02.c | 20 {"invalid-path", AT_FDCWD, "invalid", OPEN_TREE_CLONE, ENOENT}, 21 {"invalid-flags", AT_FDCWD, MNTPOINT, 0xFFFFFFFF, EINVAL},
|
D | open_tree01.c | 43 TEST(otfd = open_tree(AT_FDCWD, MNTPOINT, tc->flags | OPEN_TREE_CLONE)); in run() 49 TEST(move_mount(otfd, "", AT_FDCWD, OT_MNTPOINT, in run()
|
/third_party/ltp/testcases/kernel/syscalls/open/ |
D | open14.c | 102 SAFE_LINKAT(cleanup, AT_FDCWD, path, AT_FDCWD, "tmpfile", in test01() 170 SAFE_LINKAT(cleanup, AT_FDCWD, path1, AT_FDCWD, path2, in link_tmp_file()
|
/third_party/ltp/testcases/kernel/syscalls/fspick/ |
D | fspick02.c | 20 {"invalid-path", AT_FDCWD, "invalid", FSPICK_NO_AUTOMOUNT | FSPICK_CLOEXEC, ENOENT}, 21 {"invalid-flags", AT_FDCWD, MNTPOINT, 0x10, EINVAL},
|
/third_party/musl/src/stat/ |
D | fchmodat.c | 30 ret = __syscall(SYS_fstatat, AT_FDCWD, proc, &st, 0); in fchmodat() 33 else ret = __syscall(SYS_fchmodat, AT_FDCWD, proc, mode); in fchmodat()
|