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

12

/external/fio/os/windows/posix/include/
H A Ddirent.h21 struct dirent *readdir(DIR *dirp);
22 int closedir(DIR *dirp);
/external/ltp/testcases/kernel/syscalls/getdents/
H A Dgetdents.h38 getdents(unsigned int fd, struct linux_dirent *dirp, unsigned int size) argument
40 return ltp_syscall(__NR_getdents, fd, dirp, size);
H A Dgetdents01.c77 * 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;
H A Dgetdents02.c127 struct linux_dirent dirp; local
132 getdents(fd, &dirp, sizeof(dirp));
/external/ltp/testcases/kernel/syscalls/readdir/
H A Dreaddir21.c57 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/
H A Dnfs01_open_files.c98 DIR *dirp; local
102 dirp = opendir(".");
103 for (entp = readdir(dirp); entp; entp = readdir(dirp))
/external/rootdev/
H A Drootdev.c93 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);
/external/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_linux.h32 uptr internal_getdents(fd_t fd, struct linux_dirent *dirp, unsigned int count);
H A Dsanitizer_platform_limits_posix.h697 void (*gl_closedir)(void *dirp);
698 void *(*gl_readdir)(void *dirp);
711 void (*gl_closedir)(void *dirp);
712 struct dirent *(*gl_readdir)(void *dirp);
/external/ltp/include/
H A Dsafe_macros_fn.h169 DIR *dirp);
173 DIR *dirp);
181 DIR *dirp);
185 DIR *dirp);
H A Dtst_safe_macros.h197 #define SAFE_CLOSEDIR(dirp) \
198 safe_closedir(__FILE__, __LINE__, NULL, (dirp))
200 #define SAFE_READDIR(dirp) \
201 safe_readdir(__FILE__, __LINE__, NULL, (dirp))
/external/perfetto/src/traced/probes/
H A Dprocess_stats_data_source.cc52 int32_t ReadNextNumericDir(DIR* dirp) { argument
53 while (struct dirent* dir_ent = readdir(dirp)) {
/external/fio/os/windows/
H A Dposix.c910 int closedir(DIR *dirp) argument
912 if (dirp != NULL && dirp->find_handle != INVALID_HANDLE_VALUE)
913 FindClose(dirp->find_handle);
915 free(dirp);
919 struct dirent *readdir(DIR *dirp) argument
924 if (dirp == NULL)
927 if (dirp->find_handle == INVALID_HANDLE_VALUE) {
929 StringCchPrintfA(search_pattern, MAX_PATH-1, "%s\\*", dirp->dirname);
930 dirp
[all...]
/external/ltp/include/old/
H A Dsafe_macros.h325 #define SAFE_CLOSEDIR(cleanup_fn, dirp) \
326 safe_closedir(__FILE__, __LINE__, (cleanup_fn), (dirp))
328 #define SAFE_READDIR(cleanup_fn, dirp) \
329 safe_readdir(__FILE__, __LINE__, (cleanup_fn), (dirp))
/external/valgrind/include/
H A Dpub_tool_libcfile.h97 extern Int VG_(getdents64)( Int fd, struct vki_dirent64 *dirp, UInt count );
/external/iproute2/ip/
H A Dxfrm_policy.c261 char *dirp = NULL; local
276 if (dirp)
278 dirp = *argv;
354 if (!dirp) {
567 char *dirp = NULL; local
581 if (dirp)
583 dirp = *argv;
630 if (!dirp) {
/external/elfutils/libdw/
H A Ddwarf_getsrclines.c290 const unsigned char *dirp = linep; local
291 while (*dirp != 0)
293 uint8_t *endp = memchr (dirp, '\0', lineendp - dirp);
297 dirp = endp + 1;
/external/ltp/lib/
H A Dsafe_macros.c792 DIR *dirp)
796 rval = closedir(dirp);
800 "%s:%d: closedir(%p) failed", file, lineno, dirp);
807 DIR *dirp)
813 rval = readdir(dirp);
817 "%s:%d: readdir(%p) failed", file, lineno, dirp);
791 safe_closedir(const char *file, const int lineno, void (cleanup_fn)(void), DIR *dirp) argument
806 safe_readdir(const char *file, const int lineno, void (cleanup_fn)(void), DIR *dirp) argument
/external/icu/icu4c/source/common/
H A Dputil.cpp952 DIR* dirp = NULL; local
963 dirp = opendir(path);
964 if (dirp == NULL) {
977 while((dirEntry = readdir(dirp)) != NULL) {
1028 if (dirp) {
1029 closedir(dirp);
/external/python/cpython3/Modules/
H A D_posixsubprocess.c35 # define dirfd(dirp) ((dirp)->dd_fd)
/external/sqlite/dist/orig/
H A Dshell.c1128 extern LPDIRENT readdir(LPDIR dirp);
1129 extern INT readdir_r(LPDIR dirp, LPDIRENT entry, LPDIRENT *result);
1130 extern INT closedir(LPDIR dirp);
1189 LPDIR dirp = (LPDIR)sqlite3_malloc(sizeof(DIR)); local
1192 if( dirp==NULL ) return NULL;
1193 memset(dirp, 0, sizeof(DIR));
1202 dirp->d_handle = _findfirst(data.name, &data);
1204 if( dirp->d_handle==BAD_INTPTR_T ){
1205 closedir(dirp);
1214 if( _findnext(dirp
1266 readdir_r( LPDIR dirp, LPDIRENT entry, LPDIRENT *result ) argument
[all...]
/external/sqlite/dist/
H A Dshell.c1134 extern LPDIRENT readdir(LPDIR dirp);
1135 extern INT readdir_r(LPDIR dirp, LPDIRENT entry, LPDIRENT *result);
1136 extern INT closedir(LPDIR dirp);
1195 LPDIR dirp = (LPDIR)sqlite3_malloc(sizeof(DIR)); local
1198 if( dirp==NULL ) return NULL;
1199 memset(dirp, 0, sizeof(DIR));
1208 dirp->d_handle = _findfirst(data.name, &data);
1210 if( dirp->d_handle==BAD_INTPTR_T ){
1211 closedir(dirp);
1220 if( _findnext(dirp
1272 readdir_r( LPDIR dirp, LPDIRENT entry, LPDIRENT *result ) argument
[all...]
/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/valgrind/memcheck/tests/x86-solaris/
H A Dscalar.stderr.exp96 Syscall param getdents64(dirp) contains uninitialised byte(s)
102 Syscall param getdents64(dirp) points to unaddressable byte(s)
/external/valgrind/coregrind/
H A Dm_libcfile.c664 Int VG_(getdents64) (Int fd, struct vki_dirent64 *dirp, UInt count) argument
667 /* res = getdents( fd, dirp, count ); */
671 res = VG_(do_syscall3)(__NR_getdents, fd, (UWord)dirp, count);
673 res = VG_(do_syscall3)(__NR_getdents64, fd, (UWord)dirp, count);
680 res = VG_(do_syscall3)(__NR_getdents, fd, (UWord)dirp, count);
689 p = (char *)dirp;
693 if (p + u->m.d_reclen > (char *)dirp + r)
702 } while (p < (char *)dirp + r);

Completed in 2891 milliseconds

12