Searched refs:dirp (Results 1 - 25 of 26) sorted by relevance

12

/external/grub/stage2/
H A Ddir.h135 #define dirfd(dirp) ((dirp)->dd_fd)
144 #define rewinddir(dirp) seekdir((dirp), (long)0)
/external/openssh/openbsd-compat/
H A Dbsd-closefrom.c75 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);
H A Dglob.c655 DIR *dirp; local
672 if ((dirp = g_opendir(pathbuf, pglob)) == NULL) {
691 while ((dp = (*readdirfunc)(dirp))) {
727 (*pglob->gl_closedir)(dirp);
729 closedir(dirp);
/external/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_common_syscalls.inc95 PRE_SYSCALL(getdents)(int fd, void *dirp, int count) { PRE_WRITE(dirp, count); }
97 POST_SYSCALL(getdents)(long res, int fd, void *dirp, int count) {
99 POST_WRITE(dirp, res);
103 PRE_SYSCALL(getdents64)(int fd, void *dirp, int count) {
104 PRE_WRITE(dirp, count);
107 POST_SYSCALL(getdents64)(long res, int fd, void *dirp, int count) {
109 POST_WRITE(dirp, res);
H A Dsanitizer_linux.h28 uptr internal_getdents(fd_t fd, struct linux_dirent *dirp, unsigned int count);
H A Dsanitizer_platform_limits_posix.h198 void (*gl_closedir)(void *dirp);
199 void *(*gl_readdir)(void *dirp);
H A Dsanitizer_common_interceptors.inc1403 INTERCEPTOR(__sanitizer_dirent *, readdir, void *dirp) {
1405 COMMON_INTERCEPTOR_ENTER(ctx, readdir, dirp);
1406 __sanitizer_dirent *res = REAL(readdir)(dirp);
1412 INTERCEPTOR(int, readdir_r, void *dirp, __sanitizer_dirent *entry,
1415 COMMON_INTERCEPTOR_ENTER(ctx, readdir_r, dirp, entry, result);
1416 int res = REAL(readdir_r)(dirp, entry, result);
1433 INTERCEPTOR(__sanitizer_dirent64 *, readdir64, void *dirp) {
1435 COMMON_INTERCEPTOR_ENTER(ctx, readdir64, dirp);
1436 __sanitizer_dirent64 *res = REAL(readdir64)(dirp);
1442 INTERCEPTOR(int, readdir64_r, void *dirp, __sanitizer_dirent6
[all...]
H A Dsanitizer_linux.cc537 uptr internal_getdents(fd_t fd, struct linux_dirent *dirp, unsigned int count) { argument
538 return internal_syscall(__NR_getdents, fd, dirp, count);
/external/yaffs2/yaffs2/direct/
H A Dyaffsfs.h196 struct yaffs_dirent *yaffs_readdir(yaffs_DIR *dirp) ;
197 void yaffs_rewinddir(yaffs_DIR *dirp) ;
198 int yaffs_closedir(yaffs_DIR *dirp) ;
H A Dyaffsfs.c1294 struct yaffs_dirent *yaffs_readdir(yaffs_DIR *dirp) argument
1296 yaffsfs_DirectorySearchContext *dsc = (yaffsfs_DirectorySearchContext *)dirp;
1325 void yaffs_rewinddir(yaffs_DIR *dirp) argument
1327 yaffsfs_DirectorySearchContext *dsc = (yaffsfs_DirectorySearchContext *)dirp;
1337 int yaffs_closedir(yaffs_DIR *dirp) argument
1339 yaffsfs_DirectorySearchContext *dsc = (yaffsfs_DirectorySearchContext *)dirp;
/external/openssh/
H A Dsftp-server.c180 DIR *dirp; member in struct:Handle
205 handle_new(int use, const char *name, int fd, DIR *dirp) argument
221 handles[i].dirp = dirp;
273 return handles[handle].dirp;
325 ret = closedir(handles[handle].dirp);
883 DIR *dirp = NULL; local
892 dirp = opendir(path);
893 if (dirp == NULL) {
896 handle = handle_new(HANDLE_DIR, path, 0, dirp);
913 DIR *dirp; local
[all...]
H A Dscp.c847 DIR *dirp; local
851 if (!(dirp = opendir(name))) {
866 closedir(dirp);
876 closedir(dirp);
879 while ((dp = readdir(dirp)) != NULL) {
892 (void) closedir(dirp);
H A Dsftp-client.c1521 DIR *dirp; local
1565 if ((dirp = opendir(src)) == NULL) {
1570 while (((dp = readdir(dirp)) != NULL) && !interrupted) {
1603 (void) closedir(dirp);
/external/valgrind/main/include/
H A Dpub_tool_libcfile.h92 extern Int VG_(getdents)( Int fd, struct vki_dirent *dirp, UInt count );
/external/iproute2/ip/
H A Dxfrm_policy.c256 char *dirp = NULL; local
286 if (dirp)
288 dirp = *argv;
364 if (!dirp) {
569 char *dirp = NULL; local
592 if (dirp)
594 dirp = *argv;
641 if (!dirp) {
/external/bluetooth/bluedroid/btif/src/
H A Dbtif_config_util.cpp496 DIR *dirp; local
498 if((dirp = opendir(BLUEZ_PATH)) != NULL)
500 while((dptr = readdir(dirp)) != NULL)
512 closedir(dirp);
/external/compiler-rt/include/sanitizer/
H A Dlinux_syscall_hooks.h29 void __sanitizer_syscall_pre_getdents(int fd, void *dirp, int count);
30 void __sanitizer_syscall_pre_getdents64(int fd, void *dirp, int count);
39 void __sanitizer_syscall_post_getdents(long res, int fd, void *dirp, int count);
40 void __sanitizer_syscall_post_getdents64(long res, int fd, void *dirp,
/external/dropbear/
H A Dscp.c715 DIR *dirp; local
719 if (!(dirp = opendir(name))) {
734 closedir(dirp);
744 closedir(dirp);
747 while ((dp = readdir(dirp)) != NULL) {
760 (void) closedir(dirp);
/external/ipsec-tools/src/racoon/
H A Deaytest.c416 DIR *dirp; local
536 dirp = opendir(path);
537 if (dirp == NULL) {
543 while ((dp = readdir(dirp)) != NULL) {
/external/mksh/src/
H A Deval.c1567 DIR *dirp; local
1575 dirp = opendir(prefix_len ? Xstring(*xs, xp) : ".");
1576 if (dirp == NULL)
1578 while ((d = readdir(dirp)) != NULL) {
1597 closedir(dirp);
/external/chromium_org/third_party/icu/source/common/
H A Dputil.c916 DIR* dirp = opendir(path); local
921 if (dirp == NULL) {
930 while((dirEntry = readdir(dirp)) != NULL) {
965 closedir(dirp);
/external/icu4c/common/
H A Dputil.cpp937 DIR* dirp = opendir(path); local
942 if (dirp == NULL) {
951 while((dirEntry = readdir(dirp)) != NULL) {
986 closedir(dirp);
/external/valgrind/main/coregrind/
H A Dm_libcfile.c481 Int VG_(getdents) (Int fd, struct vki_dirent *dirp, UInt count) argument
485 /* res = getdents( fd, dirp, count ); */
486 res = VG_(do_syscall3)(__NR_getdents, fd, (UWord)dirp, count);
/external/valgrind/main/coregrind/m_syswrap/
H A Dsyswrap-generic.c3083 unsigned int, fd, struct linux_dirent *, dirp,
3085 PRE_MEM_WRITE( "getdents(dirp)", ARG2, ARG3 );
3100 unsigned int, fd, struct linux_dirent64 *, dirp,
3102 PRE_MEM_WRITE( "getdents64(dirp)", ARG2, ARG3 );
/external/valgrind/main/memcheck/tests/x86-linux/
H A Dscalar.stderr.exp1627 Syscall param getdents(dirp) contains uninitialised byte(s)
1635 Syscall param getdents(dirp) points to unaddressable byte(s)
2887 Syscall param getdents64(dirp) contains uninitialised byte(s)
2895 Syscall param getdents64(dirp) points to unaddressable byte(s)

Completed in 4143 milliseconds

12