Home
last modified time | relevance | path

Searched refs:dirp (Results 1 – 25 of 32) sorted by relevance

12

/external/autotest/client/tests/ltp/patches/
Dgetdents.patch49 - : "a" (cnum), "b" (fd), "c" (dirp), "d" (count)\
73 +getdents(unsigned int fd, struct dirent *dirp, unsigned int count)
76 + struct linux_dirent *dirp;
88 +#define kdircpy(field) memcpy(&dirp[i].field, &ptrs.dirp->field, sizeof(dirp[i].field))
96 + reclen = dirp[i].d_reclen;
98 + strcpy(dirp[i].d_name, ptrs.dirp->d_name);
115 struct dirent *dirp;
122 - * equivalent to - getdents(fd, dirp, count);
132 rval = getdents(fd, dirp, count);
177 struct dirent *dirp;
[all …]
/external/rootdev/
Drootdev.c93 DIR *dirp = NULL; in match_sysfs_device() local
110 dirp = opendir(basedir); in match_sysfs_device()
111 if (!dirp) { in match_sysfs_device()
128 closedir(dirp); in match_sysfs_device()
137 closedir(dirp); in match_sysfs_device()
141 while (readdir_r(dirp, entry, &next) == 0 && next) { in match_sysfs_device()
191 closedir(dirp); in match_sysfs_device()
/external/fio/os/windows/posix/include/
Ddirent.h21 struct dirent *readdir(DIR *dirp);
22 int closedir(DIR *dirp);
/external/fio/os/windows/
Dposix.c848 int closedir(DIR *dirp) in closedir() argument
850 if (dirp != NULL && dirp->find_handle != INVALID_HANDLE_VALUE) in closedir()
851 FindClose(dirp->find_handle); in closedir()
853 free(dirp); in closedir()
857 struct dirent *readdir(DIR *dirp) in readdir() argument
862 if (dirp == NULL) in readdir()
865 if (dirp->find_handle == INVALID_HANDLE_VALUE) { in readdir()
867 StringCchPrintfA(search_pattern, MAX_PATH, "%s\\*", dirp->dirname); in readdir()
868 dirp->find_handle = FindFirstFileA(search_pattern, &find_data); in readdir()
869 if (dirp->find_handle == INVALID_HANDLE_VALUE) in readdir()
[all …]
/external/boringssl/src/crypto/
Ddirectory_posix.c43 int readdir_r(DIR *dirp, struct dirent *entry, struct dirent **result) { in readdir_r() argument
45 *result = readdir(dirp); in readdir_r()
/external/iproute2/ip/
Dxfrm_policy.c252 char *dirp = NULL; in xfrm_policy_modify() local
282 if (dirp) in xfrm_policy_modify()
284 dirp = *argv; in xfrm_policy_modify()
360 if (!dirp) { in xfrm_policy_modify()
565 char *dirp = NULL; in xfrm_policy_get_or_delete() local
588 if (dirp) in xfrm_policy_get_or_delete()
590 dirp = *argv; in xfrm_policy_get_or_delete()
637 if (!dirp) { in xfrm_policy_get_or_delete()
/external/avahi/avahi-daemon/
Dglob.c614 DIR *dirp; in glob3() local
631 if ((dirp = g_opendir(pathbuf, pglob)) == NULL) { in glob3()
650 while ((dp = (*readdirfunc)(dirp))) { in glob3()
685 (*pglob->gl_closedir)(dirp); in glob3()
687 closedir(dirp); in glob3()
/external/elfutils/libdw/
Ddwarf_getsrclines.c290 const unsigned char *dirp = linep; in read_srclines() local
291 while (*dirp != 0) in read_srclines()
293 uint8_t *endp = memchr (dirp, '\0', lineendp - dirp); in read_srclines()
297 dirp = endp + 1; in read_srclines()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_linux.h32 uptr internal_getdents(fd_t fd, struct linux_dirent *dirp, unsigned int count);
Dsanitizer_platform_limits_posix.h673 void (*gl_closedir)(void *dirp);
674 void *(*gl_readdir)(void *dirp);
687 void (*gl_closedir)(void *dirp);
688 struct dirent *(*gl_readdir)(void *dirp);
Dsanitizer_linux.cc534 uptr internal_getdents(fd_t fd, struct linux_dirent *dirp, unsigned int count) { in internal_getdents() argument
536 return internal_syscall(SYSCALL(getdents64), fd, (uptr)dirp, count); in internal_getdents()
538 return internal_syscall(SYSCALL(getdents), fd, (uptr)dirp, count); in internal_getdents()
Dsanitizer_common_interceptors.inc2379 INTERCEPTOR(__sanitizer_dirent *, readdir, void *dirp) {
2381 COMMON_INTERCEPTOR_ENTER(ctx, readdir, dirp);
2385 __sanitizer_dirent *res = REAL(readdir)(dirp);
2390 INTERCEPTOR(int, readdir_r, void *dirp, __sanitizer_dirent *entry,
2393 COMMON_INTERCEPTOR_ENTER(ctx, readdir_r, dirp, entry, result);
2397 int res = REAL(readdir_r)(dirp, entry, result);
2415 INTERCEPTOR(__sanitizer_dirent64 *, readdir64, void *dirp) {
2417 COMMON_INTERCEPTOR_ENTER(ctx, readdir64, dirp);
2421 __sanitizer_dirent64 *res = REAL(readdir64)(dirp);
2426 INTERCEPTOR(int, readdir64_r, void *dirp, __sanitizer_dirent64 *entry,
[all …]
/external/ipsec-tools/src/racoon/
Deaytest.c416 DIR *dirp; local
536 dirp = opendir(path);
537 if (dirp == NULL) {
543 while ((dp = readdir(dirp)) != NULL) {
/external/valgrind/include/
Dpub_tool_libcfile.h97 extern Int VG_(getdents64)( Int fd, struct vki_dirent64 *dirp, UInt count );
/external/valgrind/memcheck/tests/x86-solaris/
Dscalar.stderr.exp77 Syscall param getdents64(dirp) contains uninitialised byte(s)
83 Syscall param getdents64(dirp) points to unaddressable byte(s)
/external/mksh/src/
Deval.c1587 DIR *dirp; in globit() local
1595 dirp = opendir(prefix_len ? Xstring(*xs, xp) : "."); in globit()
1596 if (dirp == NULL) in globit()
1598 while ((d = readdir(dirp)) != NULL) { in globit()
1617 closedir(dirp); in globit()
/external/icu/icu4c/source/common/
Dputil.cpp920 DIR* dirp = opendir(path); in searchForTZFile() local
925 if (dirp == NULL) { in searchForTZFile()
934 while((dirEntry = readdir(dirp)) != NULL) { in searchForTZFile()
969 closedir(dirp); in searchForTZFile()
/external/autotest/client/profilers/lockmeter/
Dpatch.2.6.14-lockmeter-1.gz1Index: linux/arch/i386/Kconfig.debug 2====== ...
/external/dbus/
Dconfigure.ac639 DIR *dirp;
640 dirp = opendir(".");
641 dirfd(dirp);
642 closedir(dirp);
650 AC_MSG_CHECKING(for DIR *dirp->dd_fd)
655 DIR *dirp;
657 dirp = opendir(".");
658 fd = dirp->dd_fd;
659 closedir(dirp);
/external/libvncserver/libvncserver/
Drfbserver.c1325 DIR *dirp=NULL; in rfbSendDirContent() local
1355 dirp=opendir(path); in rfbSendDirContent()
1356 if (dirp==NULL) in rfbSendDirContent()
1366 for (direntp=readdir(dirp); direntp!=NULL; direntp=readdir(dirp)) in rfbSendDirContent()
1426 closedir(dirp); in rfbSendDirContent()
1447 closedir(dirp); in rfbSendDirContent()
/external/valgrind/coregrind/
Dm_libcfile.c660 Int VG_(getdents64) (Int fd, struct vki_dirent64 *dirp, UInt count) in VG_()
667 res = VG_(do_syscall3)(__NR_getdents, fd, (UWord)dirp, count); in VG_()
669 res = VG_(do_syscall3)(__NR_getdents64, fd, (UWord)dirp, count); in VG_()
/external/e2fsprogs/contrib/
Dspd_readdir.c84 static void *(*real_rewinddir)(DIR *dirp) = 0;
/external/compiler-rt/lib/tsan/rtl/
Dtsan_interceptors.cc119 extern "C" int dirfd(void *dirp);
1893 TSAN_INTERCEPTOR(int, closedir, void *dirp) { in TSAN_INTERCEPTOR() argument
1894 SCOPED_TSAN_INTERCEPTOR(closedir, dirp); in TSAN_INTERCEPTOR()
1895 int fd = dirfd(dirp); in TSAN_INTERCEPTOR()
1897 return REAL(closedir)(dirp); in TSAN_INTERCEPTOR()
/external/squashfs-tools/squashfs-tools/
Dmksquashfs.c1336 unsigned char *dirp; in write_dir() local
1340 dirp = dir->buff; in write_dir()
1341 while(dirp < dir->p) { in write_dir()
1345 SQUASHFS_SWAP_DIR_HEADER((struct squashfs_dir_header *) dirp, in write_dir()
1348 dirp += sizeof(struct squashfs_dir_header); in write_dir()
1354 idirp = (struct squashfs_dir_entry *) dirp; in write_dir()
1360 dirp += sizeof(struct squashfs_dir_entry) + idir.size + in write_dir()
/external/valgrind/memcheck/tests/x86-linux/
Dscalar.stderr.exp1629 Syscall param getdents(dirp) contains uninitialised byte(s)
1637 Syscall param getdents(dirp) points to unaddressable byte(s)
2891 Syscall param getdents64(dirp) contains uninitialised byte(s)
2899 Syscall param getdents64(dirp) points to unaddressable byte(s)

12