Home
last modified time | relevance | path

Searched refs:dirp (Results 1 – 25 of 38) 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/openssh/openbsd-compat/
Dbsd-closefrom.c75 DIR *dirp; in closefrom() local
80 if (len > 0 && (size_t)len <= sizeof(fdpath) && (dirp = opendir(fdpath))) { in closefrom()
81 while ((dent = readdir(dirp)) != NULL) { in closefrom()
84 fd >= 0 && fd < INT_MAX && fd >= lowfd && fd != dirfd(dirp)) in closefrom()
87 (void) closedir(dirp); in closefrom()
Dglob.c700 DIR *dirp; local
717 if ((dirp = g_opendir(pathbuf, pglob)) == NULL) {
736 while ((dp = (*readdirfunc)(dirp))) {
773 (*pglob->gl_closedir)(dirp);
775 closedir(dirp);
/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/openssh/
Dsftp-server.c278 DIR *dirp; member
304 handle_new(int use, const char *name, int fd, int flags, DIR *dirp) in handle_new() argument
320 handles[i].dirp = dirp; in handle_new()
373 return handles[handle].dirp; in handle_to_dir()
433 ret = closedir(handles[handle].dirp); in handle_close()
1011 DIR *dirp = NULL; in process_opendir() local
1020 dirp = opendir(path); in process_opendir()
1021 if (dirp == NULL) { in process_opendir()
1024 handle = handle_new(HANDLE_DIR, path, 0, 0, dirp); in process_opendir()
1026 closedir(dirp); in process_opendir()
[all …]
Dscp.c860 DIR *dirp; in rsource() local
864 if (!(dirp = opendir(name))) { in rsource()
875 closedir(dirp); in rsource()
885 closedir(dirp); in rsource()
888 while ((dp = readdir(dirp)) != NULL) { in rsource()
901 (void) closedir(dirp); in rsource()
/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/lldb/source/Host/macosx/
DSymbols.cpp250 lldb_utility::CleanUp <DIR *, int> dirp (opendir(path), NULL, closedir); in FindSymbolFileInBundle() local
251 if (dirp.is_valid()) in FindSymbolFileInBundle()
255 while ((dp = readdir(dirp.get())) != NULL) in FindSymbolFileInBundle()
/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.gz
/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()

12