Home
last modified time | relevance | path

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

/external/qemu/distrib/ext4_utils/src/
Dext4fixup.c593 static int is_entry_dir(int fd, struct ext4_dir_entry_2 *dirp, int pass) in is_entry_dir() argument
598 if (dirp->file_type == EXT4_FT_DIR) { in is_entry_dir()
600 } else if (dirp->file_type == EXT4_FT_UNKNOWN) { in is_entry_dir()
608 if ((pass == UPDATE_INODE_NUMS) && !(dirp->inode & 0x80000000)) { in is_entry_dir()
611 read_inode(fd, (dirp->inode & 0x7fffffff), &inode); in is_entry_dir()
625 struct ext4_dir_entry_2 *dirp, *prev_dirp = 0; in recurse_dir() local
676 dirp = (struct ext4_dir_entry_2 *)dirbuf; in recurse_dir()
677 while (dirp < (struct ext4_dir_entry_2 *)(dirbuf + dirsize)) { in recurse_dir()
679 leftover_space = (char *)(dirbuf + dirsize) - (char *)dirp; in recurse_dir()
694 if (dirp->inode == 0) { in recurse_dir()
[all …]
/external/fio/os/windows/posix/include/
Ddirent.h21 struct dirent *readdir(DIR *dirp);
22 int closedir(DIR *dirp);
/external/yaffs2/yaffs2/direct/
Dyaffsfs.h196 struct yaffs_dirent *yaffs_readdir(yaffs_DIR *dirp) ;
197 void yaffs_rewinddir(yaffs_DIR *dirp) ;
198 int yaffs_closedir(yaffs_DIR *dirp) ;
Dyaffsfs.c1294 struct yaffs_dirent *yaffs_readdir(yaffs_DIR *dirp) in yaffs_readdir() argument
1296 yaffsfs_DirectorySearchContext *dsc = (yaffsfs_DirectorySearchContext *)dirp; in yaffs_readdir()
1325 void yaffs_rewinddir(yaffs_DIR *dirp) in yaffs_rewinddir() argument
1327 yaffsfs_DirectorySearchContext *dsc = (yaffsfs_DirectorySearchContext *)dirp; in yaffs_rewinddir()
1337 int yaffs_closedir(yaffs_DIR *dirp) in yaffs_closedir() argument
1339 yaffsfs_DirectorySearchContext *dsc = (yaffsfs_DirectorySearchContext *)dirp; in yaffs_closedir()
/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/iproute2/ip/
Dxfrm_policy.c256 char *dirp = NULL; in xfrm_policy_modify() local
286 if (dirp) in xfrm_policy_modify()
288 dirp = *argv; in xfrm_policy_modify()
364 if (!dirp) { in xfrm_policy_modify()
569 char *dirp = NULL; in xfrm_policy_get_or_delete() local
592 if (dirp) in xfrm_policy_get_or_delete()
594 dirp = *argv; in xfrm_policy_get_or_delete()
641 if (!dirp) { in xfrm_policy_get_or_delete()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_linux.h31 uptr internal_getdents(fd_t fd, struct linux_dirent *dirp, unsigned int count);
Dsanitizer_platform_limits_posix.h624 void (*gl_closedir)(void *dirp);
625 void *(*gl_readdir)(void *dirp);
638 void (*gl_closedir)(void *dirp);
639 struct dirent *(*gl_readdir)(void *dirp);
Dsanitizer_linux.cc503 uptr internal_getdents(fd_t fd, struct linux_dirent *dirp, unsigned int count) { in internal_getdents() argument
505 return internal_syscall(SYSCALL(getdents64), fd, (uptr)dirp, count); in internal_getdents()
507 return internal_syscall(SYSCALL(getdents), fd, (uptr)dirp, count); in internal_getdents()
Dsanitizer_common_interceptors.inc2122 INTERCEPTOR(__sanitizer_dirent *, readdir, void *dirp) {
2124 COMMON_INTERCEPTOR_ENTER(ctx, readdir, dirp);
2128 __sanitizer_dirent *res = REAL(readdir)(dirp);
2133 INTERCEPTOR(int, readdir_r, void *dirp, __sanitizer_dirent *entry,
2136 COMMON_INTERCEPTOR_ENTER(ctx, readdir_r, dirp, entry, result);
2140 int res = REAL(readdir_r)(dirp, entry, result);
2157 INTERCEPTOR(__sanitizer_dirent64 *, readdir64, void *dirp) {
2159 COMMON_INTERCEPTOR_ENTER(ctx, readdir64, dirp);
2163 __sanitizer_dirent64 *res = REAL(readdir64)(dirp);
2168 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/main/include/
Dpub_tool_libcfile.h95 extern Int VG_(getdents)( Int fd, struct vki_dirent *dirp, UInt count );
/external/bluetooth/bluedroid/btif/src/
Dbtif_config_util.cpp533 DIR *dirp; in load_bluez_adapter_info() local
535 if((dirp = opendir(BLUEZ_PATH)) != NULL) in load_bluez_adapter_info()
537 while((dptr = readdir(dirp)) != NULL) in load_bluez_adapter_info()
549 closedir(dirp); in load_bluez_adapter_info()
/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.c1599 DIR *dirp; in globit() local
1607 dirp = opendir(prefix_len ? Xstring(*xs, xp) : "."); in globit()
1608 if (dirp == NULL) in globit()
1610 while ((d = readdir(dirp)) != NULL) { in globit()
1629 closedir(dirp); in globit()
/external/chromium_org/third_party/icu/source/common/
Dputil.c918 DIR* dirp = opendir(path); in searchForTZFile() local
923 if (dirp == NULL) { in searchForTZFile()
932 while((dirEntry = readdir(dirp)) != NULL) { in searchForTZFile()
967 closedir(dirp); in searchForTZFile()
/external/icu/icu4c/source/common/
Dputil.cpp941 DIR* dirp = opendir(path); in searchForTZFile() local
946 if (dirp == NULL) { in searchForTZFile()
955 while((dirEntry = readdir(dirp)) != NULL) { in searchForTZFile()
990 closedir(dirp); in searchForTZFile()
/external/e2fsprogs/contrib/
Dspd_readdir.c84 static void *(*real_rewinddir)(DIR *dirp) = 0;
/external/valgrind/main/coregrind/
Dm_libcfile.c531 Int VG_(getdents) (Int fd, struct vki_dirent *dirp, UInt count) in VG_()
536 res = VG_(do_syscall3)(__NR_getdents, fd, (UWord)dirp, count); in VG_()
/external/valgrind/main/memcheck/tests/x86-linux/
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)
/external/valgrind/main/coregrind/m_syswrap/
Dsyswrap-generic.c3193 unsigned int, fd, struct linux_dirent *, dirp, in PRE()
3210 unsigned int, fd, struct linux_dirent64 *, dirp, in PRE()
/external/chromium_org/third_party/lcov/
Ddescriptions.tests1863 check that we get a failure with a bad dirp address.
/external/chromium_org/v8/tools/profviz/
Dgnuplot-4.6.3-emscripten.js3369 function _readdir_r(dirp, entry, result) { argument
3372 if (!FS.streams[dirp] || !FS.streams[dirp].object.isFolder) {
3375 var stream = FS.streams[dirp];
3414 }function _readdir(dirp) { argument
3417 if (!FS.streams[dirp] || !FS.streams[dirp].object.isFolder) {
3422 _readdir_r(dirp, FS.streams[dirp].currentEntry, _readdir.result);
3426 return FS.streams[dirp].currentEntry;
3430 function _closedir(dirp) { argument
3433 if (!FS.streams[dirp] || !FS.streams[dirp].object.isFolder) {
3436 _free(FS.streams[dirp].currentEntry);
[all …]