/external/valgrind/memcheck/tests/darwin/ |
pth-undocumented.c | 21 int __pthread_fchdir(int dirfd) 23 return syscall(SYS___pthread_fchdir, dirfd); 28 int dirfd; local 30 dirfd = open("/", O_RDONLY); 31 if (dirfd == -1) 37 if (__pthread_fchdir(dirfd))
|
/external/libchrome/sandbox/linux/suid/ |
process_util_linux.c | 41 const int dirfd = open(oom_adj, O_RDONLY | O_DIRECTORY); local 42 if (dirfd < 0) 46 if (fstat(dirfd, &statbuf) < 0) { 47 close(dirfd); 51 close(dirfd); 55 int fd = openat(dirfd, "oom_score_adj", O_WRONLY); 59 fd = openat(dirfd, "oom_adj", O_WRONLY); 70 close(dirfd);
|
/frameworks/base/packages/DefaultContainerService/jni/ |
com_android_defcontainer_MeasurementUtils.cpp | 40 int dirfd = open(path, O_DIRECTORY, O_RDONLY); local 41 if (dirfd < 0) { 44 ret = calculate_dir_size(dirfd); 45 close(dirfd);
|
/external/toybox/toys/other/ |
lspci.c | 44 int dirfd; local 50 if (-1 == (dirfd = openat(dirtree_parentfd(new), new->name, O_RDONLY))) 56 if (readlinkat(dirfd, "driver", driver, sizeof(driver))) {}; 62 if (-1 == (fd = openat(dirfd, *fields, O_RDONLY))) { 63 close(dirfd); 73 close(dirfd);
|
/external/toybox/lib/ |
dirtree.c | 35 int fd = parent ? parent->dirfd : AT_FDCWD; 96 return node->parent ? node->parent->dirfd : AT_FDCWD; 118 new->dirfd = openat(dirtree_parentfd(new), new->name, O_CLOEXEC); 133 // callback(). Uses and closes supplied ->dirfd. 142 if (node->dirfd == -1 || !(dir = fdopendir(node->dirfd))) { 148 close(node->dirfd); 174 node->dirfd = -1;
|
/bionic/libc/bionic/ |
fchmodat.cpp | 39 int fchmodat(int dirfd, const char* pathname, mode_t mode, int flags) { 50 int fd = openat(dirfd, pathname, O_PATH | O_NOFOLLOW | O_CLOEXEC); 66 return ___fchmodat(dirfd, pathname, mode);
|
/development/ndk/platforms/android-12/include/sys/ |
stat.h | 134 extern int fstatat(int dirfd, const char *path, struct stat *buf, int flags); 135 extern int mkdirat(int dirfd, const char *pathname, mode_t mode); 136 extern int fchownat(int dirfd, const char *path, uid_t owner, gid_t group, int flags); 137 extern int fchmodat(int dirfd, const char *path, mode_t mode, int flags);
|
/development/ndk/platforms/android-19/include/sys/ |
stat.h | 134 extern int fstatat(int dirfd, const char *path, struct stat *buf, int flags); 135 extern int mkdirat(int dirfd, const char *pathname, mode_t mode); 136 extern int fchownat(int dirfd, const char *path, uid_t owner, gid_t group, int flags); 137 extern int fchmodat(int dirfd, const char *path, mode_t mode, int flags);
|
/development/ndk/platforms/android-3/include/sys/ |
stat.h | 100 extern int fstatat(int dirfd, const char *path, struct stat *buf, int flags); 101 extern int mkdirat(int dirfd, const char *pathname, mode_t mode); 102 extern int fchownat(int dirfd, const char *path, uid_t owner, gid_t group, int flags); 103 extern int fchmodat(int dirfd, const char *path, mode_t mode, int flags);
|
/development/ndk/platforms/android-9/include/sys/ |
stat.h | 134 extern int fstatat(int dirfd, const char *path, struct stat *buf, int flags); 135 extern int mkdirat(int dirfd, const char *pathname, mode_t mode); 136 extern int fchownat(int dirfd, const char *path, uid_t owner, gid_t group, int flags); 137 extern int fchmodat(int dirfd, const char *path, mode_t mode, int flags);
|
/external/strace/tests/ |
file_handle.c | 45 const int dirfd = AT_FDCWD; local 52 if (name_to_handle_at(dirfd, ".", handle, &mount_id, flags | 1) != -1 61 if (name_to_handle_at(dirfd, ".", handle, &mount_id, flags) != -1 71 assert(!name_to_handle_at(dirfd, ".", handle, &mount_id, flags));
|
/prebuilts/ndk/current/platforms/android-12/arch-arm/usr/include/sys/ |
stat.h | 134 extern int fstatat(int dirfd, const char *path, struct stat *buf, int flags); 135 extern int mkdirat(int dirfd, const char *pathname, mode_t mode); 136 extern int fchownat(int dirfd, const char *path, uid_t owner, gid_t group, int flags); 137 extern int fchmodat(int dirfd, const char *path, mode_t mode, int flags);
|
/prebuilts/ndk/current/platforms/android-12/arch-mips/usr/include/sys/ |
stat.h | 134 extern int fstatat(int dirfd, const char *path, struct stat *buf, int flags); 135 extern int mkdirat(int dirfd, const char *pathname, mode_t mode); 136 extern int fchownat(int dirfd, const char *path, uid_t owner, gid_t group, int flags); 137 extern int fchmodat(int dirfd, const char *path, mode_t mode, int flags);
|
/prebuilts/ndk/current/platforms/android-12/arch-x86/usr/include/sys/ |
stat.h | 134 extern int fstatat(int dirfd, const char *path, struct stat *buf, int flags); 135 extern int mkdirat(int dirfd, const char *pathname, mode_t mode); 136 extern int fchownat(int dirfd, const char *path, uid_t owner, gid_t group, int flags); 137 extern int fchmodat(int dirfd, const char *path, mode_t mode, int flags);
|
/prebuilts/ndk/current/platforms/android-13/arch-arm/usr/include/sys/ |
stat.h | 134 extern int fstatat(int dirfd, const char *path, struct stat *buf, int flags); 135 extern int mkdirat(int dirfd, const char *pathname, mode_t mode); 136 extern int fchownat(int dirfd, const char *path, uid_t owner, gid_t group, int flags); 137 extern int fchmodat(int dirfd, const char *path, mode_t mode, int flags);
|
/prebuilts/ndk/current/platforms/android-13/arch-mips/usr/include/sys/ |
stat.h | 134 extern int fstatat(int dirfd, const char *path, struct stat *buf, int flags); 135 extern int mkdirat(int dirfd, const char *pathname, mode_t mode); 136 extern int fchownat(int dirfd, const char *path, uid_t owner, gid_t group, int flags); 137 extern int fchmodat(int dirfd, const char *path, mode_t mode, int flags);
|
/prebuilts/ndk/current/platforms/android-13/arch-x86/usr/include/sys/ |
stat.h | 134 extern int fstatat(int dirfd, const char *path, struct stat *buf, int flags); 135 extern int mkdirat(int dirfd, const char *pathname, mode_t mode); 136 extern int fchownat(int dirfd, const char *path, uid_t owner, gid_t group, int flags); 137 extern int fchmodat(int dirfd, const char *path, mode_t mode, int flags);
|
/prebuilts/ndk/current/platforms/android-14/arch-arm/usr/include/sys/ |
stat.h | 134 extern int fstatat(int dirfd, const char *path, struct stat *buf, int flags); 135 extern int mkdirat(int dirfd, const char *pathname, mode_t mode); 136 extern int fchownat(int dirfd, const char *path, uid_t owner, gid_t group, int flags); 137 extern int fchmodat(int dirfd, const char *path, mode_t mode, int flags);
|
/prebuilts/ndk/current/platforms/android-14/arch-mips/usr/include/sys/ |
stat.h | 134 extern int fstatat(int dirfd, const char *path, struct stat *buf, int flags); 135 extern int mkdirat(int dirfd, const char *pathname, mode_t mode); 136 extern int fchownat(int dirfd, const char *path, uid_t owner, gid_t group, int flags); 137 extern int fchmodat(int dirfd, const char *path, mode_t mode, int flags);
|
/prebuilts/ndk/current/platforms/android-14/arch-x86/usr/include/sys/ |
stat.h | 134 extern int fstatat(int dirfd, const char *path, struct stat *buf, int flags); 135 extern int mkdirat(int dirfd, const char *pathname, mode_t mode); 136 extern int fchownat(int dirfd, const char *path, uid_t owner, gid_t group, int flags); 137 extern int fchmodat(int dirfd, const char *path, mode_t mode, int flags);
|
/prebuilts/ndk/current/platforms/android-15/arch-arm/usr/include/sys/ |
stat.h | 134 extern int fstatat(int dirfd, const char *path, struct stat *buf, int flags); 135 extern int mkdirat(int dirfd, const char *pathname, mode_t mode); 136 extern int fchownat(int dirfd, const char *path, uid_t owner, gid_t group, int flags); 137 extern int fchmodat(int dirfd, const char *path, mode_t mode, int flags);
|
/prebuilts/ndk/current/platforms/android-15/arch-mips/usr/include/sys/ |
stat.h | 134 extern int fstatat(int dirfd, const char *path, struct stat *buf, int flags); 135 extern int mkdirat(int dirfd, const char *pathname, mode_t mode); 136 extern int fchownat(int dirfd, const char *path, uid_t owner, gid_t group, int flags); 137 extern int fchmodat(int dirfd, const char *path, mode_t mode, int flags);
|
/prebuilts/ndk/current/platforms/android-15/arch-x86/usr/include/sys/ |
stat.h | 134 extern int fstatat(int dirfd, const char *path, struct stat *buf, int flags); 135 extern int mkdirat(int dirfd, const char *pathname, mode_t mode); 136 extern int fchownat(int dirfd, const char *path, uid_t owner, gid_t group, int flags); 137 extern int fchmodat(int dirfd, const char *path, mode_t mode, int flags);
|
/prebuilts/ndk/current/platforms/android-16/arch-arm/usr/include/sys/ |
stat.h | 134 extern int fstatat(int dirfd, const char *path, struct stat *buf, int flags); 135 extern int mkdirat(int dirfd, const char *pathname, mode_t mode); 136 extern int fchownat(int dirfd, const char *path, uid_t owner, gid_t group, int flags); 137 extern int fchmodat(int dirfd, const char *path, mode_t mode, int flags);
|
/prebuilts/ndk/current/platforms/android-16/arch-mips/usr/include/sys/ |
stat.h | 134 extern int fstatat(int dirfd, const char *path, struct stat *buf, int flags); 135 extern int mkdirat(int dirfd, const char *pathname, mode_t mode); 136 extern int fchownat(int dirfd, const char *path, uid_t owner, gid_t group, int flags); 137 extern int fchmodat(int dirfd, const char *path, mode_t mode, int flags);
|