/device/linaro/bootloader/edk2/StdLib/PosixLib/Gen/ |
opendir.c | 76 DIR *dirp = NULL;
local 91 if ((dirp = (DIR *)malloc(sizeof(DIR))) == NULL)
93 dirp->dd_buf = NULL;
103 dirp->dd_len = incr;
104 dirp->dd_buf = malloc((size_t)dirp->dd_len);
105 if (dirp->dd_buf == NULL)
107 dirp->dd_seek = 0;
110 dirp->dd_loc = 0;
111 dirp->dd_fd = fd; [all...] |
/external/openssh/openbsd-compat/ |
bsd-closefrom.c | 75 DIR *dirp; local 80 if (len > 0 && (size_t)len <= sizeof(fdpath) && (dirp = opendir(fdpath))) { 81 while ((dent = readdir(dirp)) != NULL) { 84 fd >= 0 && fd < INT_MAX && fd >= lowfd && fd != dirfd(dirp)) 87 (void) closedir(dirp);
|
glob.c | 701 DIR *dirp; local 718 if ((dirp = g_opendir(pathbuf, pglob)) == NULL) { 737 while ((dp = (*readdirfunc)(dirp))) { 774 (*pglob->gl_closedir)(dirp); 776 closedir(dirp);
|
/external/ltp/testcases/kernel/syscalls/getdents/ |
getdents02.c | 127 struct linux_dirent dirp; local 132 getdents(fd, &dirp, sizeof(dirp));
|
getdents01.c | 77 * Big enough for dirp entires + data, the current size returned 87 struct linux_dirent *dirp; local 99 dirp = buf; 114 rval = getdents(fd, dirp, BUFSIZE); 140 d_reclen = dirp->d_reclen; 141 d_name = dirp->d_name; 153 dirp = (void*)dirp + d_reclen;
|
/external/ltp/testcases/kernel/syscalls/readdir/ |
readdir21.c | 57 static struct old_linux_dirent dirp; variable in typeref:struct:old_linux_dirent 63 struct old_linux_dirent *dirp; member in struct:test_case_t 67 {&del_dir_fd, &dirp, sizeof(struct old_linux_dirent), ENOENT}, 68 {&file_fd, &dirp, sizeof(struct old_linux_dirent), ENOTDIR}, 69 {&invalid_fd, &dirp, sizeof(struct old_linux_dirent), EBADF}, 115 test_cases[3].dirp = SAFE_MMAP(cleanup, 0, 1, PROT_NONE, 122 TEST(ltp_syscall(__NR_readdir, *test->fd, test->dirp, test->count));
|
/external/ltp/testcases/network/nfs/nfs_stress/ |
nfs01_open_files.c | 98 DIR *dirp; local 102 dirp = opendir("."); 103 for (entp = readdir(dirp); entp; entp = readdir(dirp))
|
/hardware/libhardware/modules/sensors/dynamic_sensor/ |
ConnectionDetector.cpp | 150 auto dirp = ::opendir(mPath.c_str()); local 152 while ((dp = ::readdir(dirp)) != NULL) { 158 ::closedir(dirp);
|
/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);
|
/system/extras/ext4_utils/ |
ext4_crypt.cpp | 84 auto dirp = std::unique_ptr<DIR, int (*)(DIR*)>(opendir(dirname), closedir); local 85 if (!dirp) { 91 auto entry = readdir(dirp.get());
|
ext4fixup.c | 497 static int is_entry_dir(int fd, struct ext4_dir_entry_2 *dirp, int pass) 502 if (dirp->file_type == EXT4_FT_DIR) { 504 } else if (dirp->file_type == EXT4_FT_UNKNOWN) { 512 if ((pass == UPDATE_INODE_NUMS) && !(dirp->inode & 0x80000000)) { 515 read_inode(fd, (dirp->inode & 0x7fffffff), &inode); 529 struct ext4_dir_entry_2 *dirp, *prev_dirp = 0; local 580 dirp = (struct ext4_dir_entry_2 *)dirbuf; 581 while (dirp < (struct ext4_dir_entry_2 *)(dirbuf + dirsize)) { 583 leftover_space = (char *)(dirbuf + dirsize) - (char *)dirp; 598 if (dirp->inode == 0) [all...] |
/test/vts/agents/hal/ |
AgentRequestHandler.cpp | 64 struct dirent* dirp; local 66 while ((dirp = readdir(dp)) != NULL) { 67 len = strlen(dirp->d_name); 68 if (len > 3 && !strcmp(&dirp->d_name[len - 3], ".so")) { 69 string found_path = path + "/" + string(dirp->d_name);
|
/bionic/libc/bionic/ |
fts.c | 552 DIR *dirp; local 566 if ((dirp = opendir(cur->fts_accpath)) == NULL) { 611 if (fts_safe_changedir(sp, cur, dirfd(dirp), NULL)) { 617 (void)closedir(dirp); 618 dirp = NULL; 652 for (head = tail = NULL, nitems = 0; dirp && (dp = readdir(dirp));) { 670 (void)closedir(dirp); 696 (void)closedir(dirp); 725 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) {
|
/device/linaro/bootloader/edk2/StdLib/PosixLib/Glob/ |
glob.c | 677 DIR *dirp;
local 698 if ((dirp = g_opendir(pathbuf, pglob)) == NULL) {
725 while ((dp = (*readdirfunc)(dirp)) != NULL) {
790 (*pglob->gl_closedir)(dirp);
792 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) {
|
/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 | 106 auto dirp = std::unique_ptr<DIR, int (*)(DIR*)>(opendir(directory_path.c_str()), closedir); local 107 if (!dirp) { 114 auto const entry = readdir(dirp.get()); 288 auto dirp = std::unique_ptr<DIR, int (*)(DIR*)>(opendir(de_dir.c_str()), closedir); local 289 if (!dirp) { 295 auto entry = readdir(dirp.get());
|
/external/mksh/src/ |
eval.c | 1679 DIR *dirp; local [all...] |
/external/openssh/ |
scp.c | 872 DIR *dirp; local 876 if (!(dirp = opendir(name))) { 887 closedir(dirp); 897 closedir(dirp); 900 while ((dp = readdir(dirp)) != NULL) { 913 (void) closedir(dirp);
|
sftp-client.c | 1784 DIR *dirp; local [all...] |
sftp-server.c | 274 DIR *dirp; member in struct:Handle 300 handle_new(int use, const char *name, int fd, int flags, DIR *dirp) 316 handles[i].dirp = dirp; 369 return handles[handle].dirp; 429 ret = closedir(handles[handle].dirp); 1007 DIR *dirp = NULL; local 1016 dirp = opendir(path); 1017 if (dirp == NULL) { 1020 handle = handle_new(HANDLE_DIR, path, 0, 0, dirp); 1037 DIR *dirp; local [all...] |
/frameworks/base/core/jni/ |
android_util_Process.cpp | 791 DIR* dirp = opendir(file8); local 795 if(dirp == NULL) { 809 while ((entry=readdir(dirp)) != NULL) { 824 closedir(dirp); 842 closedir(dirp); [all...] |
/frameworks/native/cmds/dumpstate/ |
utils.cpp | 627 DIR *dirp; local 641 dirp = opendir(dir); 642 if (dirp == NULL) { 651 for (; ((d = readdir(dirp))); free(newpath), newpath = NULL) { 681 closedir(dirp); [all...] |