Home
last modified time | relevance | path

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

123456

/third_party/ltp/testcases/kernel/syscalls/openat2/
Dopenat203.c27 {"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/
Drename.c10 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()
Dremove.c11 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/
Dstatx03.c58 {.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/
Dopenat02.c123 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()
Dopenat03.c53 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/
Dfchmodat_AT_SYMLINK_NOFOLLOW_6659.cpp31 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/
Dmove_mount02.c23 {"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/
Dfanotify04.c61 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()
Dfanotify01.c106 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/
Dlink.c10 return syscall(SYS_linkat, AT_FDCWD, existing, AT_FDCWD, new, 0); in link()
/third_party/ltp/testcases/kernel/syscalls/futimesat/
Dfutimesat01.c40 #ifndef AT_FDCWD
41 #define AT_FDCWD -100 macro
120 fds[4] = AT_FDCWD; in setup()
/third_party/ltp/testcases/kernel/syscalls/unlinkat/
Dunlinkat01.c41 #ifndef AT_FDCWD
42 #define AT_FDCWD -100 macro
127 fds[5] = AT_FDCWD; in setup()
/third_party/ltp/testcases/kernel/syscalls/fchmodat/
Dfchmodat01.c49 #ifndef AT_FDCWD
50 #define AT_FDCWD -100 macro
135 fds[5] = AT_FDCWD; in setup()
/third_party/ltp/testcases/kernel/syscalls/faccessat/
Dfaccessat01.c49 #ifndef AT_FDCWD
50 #define AT_FDCWD -100 macro
138 fds[5] = AT_FDCWD; in setup()
/third_party/toybox/porting/liteos_a/toys/posix/
Dcp.c112 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/
Dfile_posix.cc64 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/
Dfstatat01.c41 #ifndef AT_FDCWD
42 #define AT_FDCWD -100 macro
137 fds[5] = AT_FDCWD; in setup()
/third_party/toybox/toys/posix/
Dcp.c128 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/
Dfcntl.h85 #ifndef AT_FDCWD
86 # define AT_FDCWD -100 macro
/third_party/ltp/testcases/kernel/syscalls/open_tree/
Dopen_tree02.c20 {"invalid-path", AT_FDCWD, "invalid", OPEN_TREE_CLONE, ENOENT},
21 {"invalid-flags", AT_FDCWD, MNTPOINT, 0xFFFFFFFF, EINVAL},
Dopen_tree01.c43 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/
Dopen14.c102 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/
Dfspick02.c20 {"invalid-path", AT_FDCWD, "invalid", FSPICK_NO_AUTOMOUNT | FSPICK_CLOEXEC, ENOENT},
21 {"invalid-flags", AT_FDCWD, MNTPOINT, 0x10, EINVAL},
/third_party/musl/src/stat/
Dfchmodat.c30 ret = __syscall(SYS_fstatat, AT_FDCWD, proc, &st, 0); in fchmodat()
33 else ret = __syscall(SYS_fchmodat, AT_FDCWD, proc, mode); in fchmodat()

123456