/system/extras/ext4_utils/ |
ext4_crypt.cpp | 75 auto dirp = std::unique_ptr<DIR, int (*)(DIR*)>(opendir(dirname), closedir); local 76 if (!dirp) { 82 auto entry = readdir(dirp.get());
|
ext4fixup.c | 492 static int is_entry_dir(int fd, struct ext4_dir_entry_2 *dirp, int pass) 497 if (dirp->file_type == EXT4_FT_DIR) { 499 } else if (dirp->file_type == EXT4_FT_UNKNOWN) { 507 if ((pass == UPDATE_INODE_NUMS) && !(dirp->inode & 0x80000000)) { 510 read_inode(fd, (dirp->inode & 0x7fffffff), &inode); 524 struct ext4_dir_entry_2 *dirp, *prev_dirp = 0; local 575 dirp = (struct ext4_dir_entry_2 *)dirbuf; 576 while (dirp < (struct ext4_dir_entry_2 *)(dirbuf + dirsize)) { 578 leftover_space = (char *)(dirbuf + dirsize) - (char *)dirp; 593 if (dirp->inode == 0) [all...] |
/external/rootdev/ |
rootdev.c | 93 DIR *dirp = NULL; local 110 dirp = opendir(basedir); 111 if (!dirp) { 128 closedir(dirp); 137 closedir(dirp); 141 while (readdir_r(dirp, entry, &next) == 0 && next) { 191 closedir(dirp);
|
/bionic/libc/bionic/ |
fts.c | 551 DIR *dirp; local 565 if ((dirp = opendir(cur->fts_accpath)) == NULL) { 610 if (fts_safe_changedir(sp, cur, dirfd(dirp), NULL)) { 616 (void)closedir(dirp); 617 dirp = NULL; 651 for (head = tail = NULL, nitems = 0; dirp && (dp = readdir(dirp));) { 669 (void)closedir(dirp); 695 (void)closedir(dirp); 723 p->fts_info = fts_stat(sp, p, 0, dirfd(dirp)); [all...] |
/external/iproute2/ip/ |
xfrm_policy.c | 252 char *dirp = NULL; local 282 if (dirp) 284 dirp = *argv; 360 if (!dirp) { 565 char *dirp = NULL; local 588 if (dirp) 590 dirp = *argv; 637 if (!dirp) {
|
/external/avahi/avahi-daemon/ |
glob.c | 614 DIR *dirp; local 631 if ((dirp = g_opendir(pathbuf, pglob)) == NULL) { 650 while ((dp = (*readdirfunc)(dirp))) { 685 (*pglob->gl_closedir)(dirp); 687 closedir(dirp);
|
/external/elfutils/libdw/ |
dwarf_getsrclines.c | 290 const unsigned char *dirp = linep; local 291 while (*dirp != 0) 293 uint8_t *endp = memchr (dirp, '\0', lineendp - dirp); 297 dirp = endp + 1;
|
/external/ipsec-tools/src/racoon/ |
eaytest.c | 416 DIR *dirp; local 536 dirp = opendir(path); 537 if (dirp == NULL) { 543 while ((dp = readdir(dirp)) != NULL) {
|
/hardware/bsp/intel/peripheral/libmraa/src/glob/ |
glob.c | 687 DIR *dirp; local 745 if ((dirp = g_opendir(pathbuf, pglob)) == NULL) { 772 while ((dp = (*readdirfunc)(dirp)) != NULL) { 858 (*pglob->gl_closedir)(dirp); 860 closedir(dirp);
|
/libcore/ojluni/src/main/native/ |
UNIXProcess_md.c | 413 struct dirent64 *dirp; local 432 while ((dirp = readdir64(dp)) != NULL) { 434 if (isAsciiDigit(dirp->d_name[0]) && 435 (fd = strtol(dirp->d_name, NULL, 10)) >= from_fd + 2)
|
/system/vold/ |
Ext4Crypt.cpp | 186 auto dirp = std::unique_ptr<DIR, int (*)(DIR*)>(opendir(directory_path.c_str()), closedir); local 187 if (!dirp) { 194 auto const entry = readdir(dirp.get()); 392 auto dirp = std::unique_ptr<DIR, int (*)(DIR*)>(opendir(de_dir.c_str()), closedir); local 393 if (!dirp) { 399 auto entry = readdir(dirp.get());
|
/external/mksh/src/ |
eval.c | 1587 DIR *dirp; local [all...] |
/frameworks/base/core/jni/ |
android_util_Process.cpp | 759 DIR* dirp = opendir(file8); local 763 if(dirp == NULL) { 777 while ((entry=readdir(dirp)) != NULL) { 792 closedir(dirp); 810 closedir(dirp); [all...] |
/frameworks/native/cmds/dumpstate/ |
utils.cpp | 513 DIR *dirp; local 527 dirp = opendir(dir); 528 if (dirp == NULL) { 537 for (; ((d = readdir(dirp))); free(newpath), newpath = NULL) { 567 closedir(dirp); [all...] |
/hardware/broadcom/libbt/src/ |
hardware.c | 435 DIR *dirp; local 460 if ((dirp = opendir(fw_patchfile_path)) != NULL) 463 while ((dp = readdir(dirp)) != NULL) 506 closedir(dirp); [all...] |
/external/icu/icu4c/source/common/ |
putil.cpp | 920 DIR* dirp = opendir(path); local 925 if (dirp == NULL) { 934 while((dirEntry = readdir(dirp)) != NULL) { 969 closedir(dirp); [all...] |
/external/libvncserver/libvncserver/ |
rfbserver.c | 1325 DIR *dirp=NULL; local [all...] |
/external/squashfs-tools/squashfs-tools/ |
mksquashfs.c | 1336 unsigned char *dirp; local [all...] |