/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))
|
/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))) 55 readlinkat0(dirfd, "driver", driver, sizeof(driver)); 61 if (-1 == (fd = openat(dirfd, *fields, O_RDONLY))) { 62 close(dirfd); 72 close(dirfd);
|
/external/ltp/testcases/kernel/syscalls/readlinkat/ |
readlinkat02.c | 27 * 4. pathname is relative and dirfd is a file descriptor referring to a file 47 int *dirfd; member in struct:test_case_t 100 TEST(readlinkat(*test->dirfd, test->pathname, buf, test->bufsiz));
|
/device/linaro/bootloader/edk2/StdLib/Include/ |
dirent.h | 72 #define dirfd(dirp) ((dirp)->dd_fd)
macro
|
/external/ltp/testcases/kernel/syscalls/mkdirat/ |
mkdirat02.c | 52 int *dirfd; member in struct:test_case_t 133 TEST(mkdirat(*test->dirfd, test->pathname, 0777));
|
/external/ltp/testcases/kernel/syscalls/utimensat/ |
utimensat01.c | 71 utimensat_sc(int dirfd, const char *pathname, 74 return ltp_syscall(__NR_utimensat, dirfd, pathname, times, flags); 110 int flags, dirfd, opt, oflag; local 121 dirfd = AT_FDCWD; 154 dirfd = open(dirfdPath, oflag); 155 if (dirfd == -1) 159 printf("Opened dirfd %d", oflag); 224 printf("dirfd is %d\n", dirfd); 238 if (utimensat_sc(dirfd, pathname, tsp, flags) == -1) [all...] |
/bionic/libc/bionic/ |
dirent.cpp | 75 int dirfd(DIR* d) { function
|
/external/ltp/testcases/network/nfs/nfs_stress/ |
nfs05_make_tree.c | 142 int i, k, fd, dirfd, ret; local 152 dirfd = SAFE_OPEN(dirname, O_DIRECTORY); 156 fd = openat(dirfd, "makefile", O_CREAT | O_RDWR, 170 fd = openat(dirfd, cfile, O_CREAT | O_RDWR, 184 ret = mkdirat(dirfd, "dir", 0755); 187 dirfd = openat(dirfd, "dir", O_DIRECTORY); 188 if (dirfd < 0)
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot/usr/include/ |
dirent.h | 225 extern int dirfd (DIR *__dirp) __THROW __nonnull ((1)); 228 # define dirfd(dirp) _DIR_dirfd (dirp) macro
|
/external/toybox/lib/ |
lib.h | 88 int dirfd; member in struct:dirtree 99 int dirfd, int symfollow); 194 char *readfileat(int dirfd, char *name, char *buf, off_t *len); 238 int readlinkat0(int dirfd, char *path, char *buf, int len);
|
xwrap.c | 474 int try = 9999, dirfd = open("/", 0);; local 506 } else len = readlinkat(dirfd, new->str, libbuf, sizeof(libbuf)); 513 // For .. just move dirfd 515 // Not a symlink: add to linked list, move dirfd, fail if error 522 fd = openat(dirfd, s, 0); 524 close(dirfd); 525 dirfd = fd; 534 close(dirfd); 535 dirfd = open("/", 0); 548 close(dirfd); [all...] |
/external/e2fsprogs/contrib/ |
spd_readdir.c | 135 real_dirfd = dlsym(RTLD_NEXT, "dirfd"); 451 int dirfd(DIR *dir) function 456 DEBUG_DIR(printf("dirfd %d, %p\n", fd, real_dirfd));
|
/external/toybox/toys/net/ |
netstat.c | 237 int pid, dirfd; local 246 if (-1==(dirfd = openat(dirtree_parentfd(node), s, O_RDONLY))) return 0; 247 if (!(dp = fdopendir(dirfd))) { 248 close(dirfd); 255 if (!readlinkat0(dirfd, entry->d_name, s, sizeof(toybuf)-256)) continue;
|
/external/python/cpython3/Modules/ |
_posixsubprocess.c | 34 /* Some versions of Solaris lack dirfd(). */ 35 # define dirfd(dirp) ((dirp)->dd_fd) macro 349 int fd_used_by_opendir = dirfd(proc_fd_dir);
|
/system/vold/ |
Utils.cpp | 543 int dirfd = open(path.c_str(), O_RDONLY | O_DIRECTORY | O_CLOEXEC); local 544 if (dirfd < 0) { 548 uint64_t res = calculate_dir_size(dirfd); 549 close(dirfd); 706 bool Readlinkat(int dirfd, const std::string& path, std::string* result) { 716 ssize_t size = readlinkat(dirfd, path.c_str(), &buf[0], buf.size());
|
/external/syslinux/extlinux/ |
main.c | 514 int fd = -1, dirfd = -1; local 528 dirfd = open(path, O_RDONLY | O_DIRECTORY); 529 if (dirfd < 0) { 558 close(dirfd); 589 if (dirfd >= 0) 590 close(dirfd); 673 int dirfd = -1; local 682 dirfd = open(path, O_RDONLY | O_DIRECTORY); 683 if (dirfd < 0) { 713 close(dirfd); [all...] |
/external/tcpdump/ |
tcpdump.c | 234 int dirfd; member in struct:dump_info [all...] |
/external/compiler-rt/lib/msan/tests/ |
msan_test.cc | 722 int dirfd = open(DIR_TO_READ, O_RDONLY); local 723 ASSERT_GT(dirfd, 0); 724 int res = fstatat(dirfd, SUBFILE_TO_READ, st, 0); 729 close(dirfd); [all...] |
/external/python/cpython2/Lib/plat-atheos/ |
IN.py | 564 def dirfd(dirp): return _DIR_dirfd (dirp) function
|
/external/sqlite/dist/orig/ |
sqlite3.c | 34354 int dirfd; local [all...] |
/external/sqlite/dist/ |
sqlite3.c | 34354 int dirfd; local [all...] |