Home
last modified time | relevance | path

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

12

/bionic/tests/
Dsys_stat_test.cpp111 int rc = statx(AT_FDCWD, "/proc/version", AT_STATX_SYNC_AS_STAT, STATX_ALL, &sx); in TEST()
129 ASSERT_EQ(-1, fchmodat(AT_FDCWD, (char *) 0x1, 0751, 0)); in TEST()
134 ASSERT_EQ(-1, fchmodat(AT_FDCWD, (char *) 0x1, 0751, AT_SYMLINK_NOFOLLOW)); in TEST()
145 ASSERT_EQ(-1, fchmodat(AT_FDCWD, "/blah", 0751, ~AT_SYMLINK_NOFOLLOW)); in TEST()
150 ASSERT_EQ(-1, fchmodat(AT_FDCWD, "/blah", 0751, ~0)); in TEST()
155 ASSERT_EQ(-1, fchmodat(AT_FDCWD, "/blah", 0751, 0)); in TEST()
160 ASSERT_EQ(-1, fchmodat(AT_FDCWD, "/blah", 0751, AT_SYMLINK_NOFOLLOW)); in TEST()
180 ASSERT_EQ(0, fchmodat(AT_FDCWD, tf.path, 0751, 0)); in TEST()
187 int result = fchmodat(AT_FDCWD, tf.path, 0751, AT_SYMLINK_NOFOLLOW); in TEST()
208 ASSERT_EQ(0, fchmodat(AT_FDCWD, linkname, 0751, 0)); in TEST()
[all …]
Dsys_time_test.cpp85 ASSERT_EQ(0, futimesat(AT_FDCWD, tf.path, nullptr)); in TEST()
94 ASSERT_EQ(-1, futimesat(AT_FDCWD, tf.path, tv)); in TEST()
97 ASSERT_EQ(-1, futimesat(AT_FDCWD, tf.path, tv)); in TEST()
103 ASSERT_EQ(-1, futimesat(AT_FDCWD, tf.path, tv)); in TEST()
106 ASSERT_EQ(-1, futimesat(AT_FDCWD, tf.path, tv)); in TEST()
Dfcntl_test.cpp74 fd = openat(AT_FDCWD, "/proc/version", O_RDONLY); in TEST()
78 fd = openat64(AT_FDCWD, "/proc/version", O_RDONLY); in TEST()
343 ASSERT_EQ(0, linkat(AT_FDCWD, android::base::StringPrintf("/proc/self/fd/%d", fd).c_str(), in TEST()
344 AT_FDCWD, final_path.c_str(), in TEST()
356 ASSERT_EQ(-1, linkat(AT_FDCWD, android::base::StringPrintf("/proc/self/fd/%d", fd).c_str(), in TEST()
357 AT_FDCWD, android::base::StringPrintf("%s/no_chance", dir.path).c_str(), in TEST()
/bionic/libc/bionic/
Dlink.cpp33 return linkat(AT_FDCWD, old_path, AT_FDCWD, new_path, 0); in link()
Drename.cpp33 return renameat2(AT_FDCWD, old_path, AT_FDCWD, new_path, 0); in rename()
Dsys_time.cpp47 return futimesat(AT_FDCWD, path, tv, 0); in utimes()
51 return futimesat(AT_FDCWD, path, tv, AT_SYMLINK_NOFOLLOW); in lutimes()
Dopen.cpp66 return FDTRACK_CREATE(__openat(AT_FDCWD, pathname, force_O_LARGEFILE(flags), mode)); in open()
72 return FDTRACK_CREATE_NAME("open", __openat(AT_FDCWD, pathname, force_O_LARGEFILE(flags), 0)); in __open_2()
Dscandir.cpp96 if (parent_fd == AT_FDCWD) { in scandirat()
133 return scandirat(AT_FDCWD, dir_path, name_list, filter, comparator); in scandir()
Dunlink.cpp33 return unlinkat(AT_FDCWD, path, 0); in unlink()
Drmdir.cpp33 return unlinkat(AT_FDCWD, path, AT_REMOVEDIR); in rmdir()
Daccess.cpp33 return faccessat(AT_FDCWD, path, mode, 0); in access()
Dsymlink.cpp33 return symlinkat(old_path, AT_FDCWD, new_path); in symlink()
Dmkdir.cpp34 return mkdirat(AT_FDCWD, path, mode); in mkdir()
Dchmod.cpp34 return fchmodat(AT_FDCWD, path, mode, 0); in chmod()
Dchown.cpp35 return fchownat(AT_FDCWD, path, uid, gid, 0); in chown()
Dmknod.cpp35 return mknodat(AT_FDCWD, path, mode, dev); in mknod()
Dreadlink.cpp35 return readlinkat(AT_FDCWD, path, buf, size); in readlink()
Dstat.cpp35 return fstatat(AT_FDCWD, path, sb, 0); in stat()
Dlchown.cpp35 return fchownat(AT_FDCWD, path, uid, gid, AT_SYMLINK_NOFOLLOW); in lchown()
Dlstat.cpp35 return fstatat(AT_FDCWD, path, sb, AT_SYMLINK_NOFOLLOW); in lstat()
Dmkfifo.cpp34 return mkfifoat(AT_FDCWD, path, mode); in mkfifo()
/bionic/libc/kernel/uapi/linux/
Dfcntl.h44 #define AT_FDCWD - 100 macro
/bionic/tests/headers/posix/
Dfcntl_h.c93 MACRO(AT_FDCWD); in fcntl_h()
/bionic/libc/arch-riscv64/
Ddynamic_function_dispatch.cpp51 return ifunc_faccessat(AT_FDCWD, "/dev/hvc0", F_OK) != 0; in have_fast_v()
/bionic/libc/arch-arm/
Ddynamic_function_dispatch.cpp69 register long r0 __asm__("r0") = AT_FDCWD; in ifunc_open()

12