/external/ltp/testcases/kernel/syscalls/readdir/ |
D | readdir21.c | 57 static struct old_linux_dirent dirp; variable 63 struct old_linux_dirent *dirp; member 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, in setup() 122 TEST(ltp_syscall(__NR_readdir, *test->fd, test->dirp, test->count)); in readdir_verify()
|
/external/igt-gpu-tools/tests/ |
D | kms_sysfs_edid_timing.c | 42 DIR *dirp; variable 45 dirp = opendir("/sys/class/drm"); 46 igt_assert(dirp != NULL); 48 while ((de = readdir(dirp))) { 95 closedir(dirp);
|
D | vgem_basic.c | 266 DIR *dirp = fdopendir(dir); in test_sysfs_read() local 269 while ((de = readdir(dirp))) { in test_sysfs_read() 287 closedir(dirp); in test_sysfs_read() 294 DIR *dirp = fdopendir(dir); in test_debugfs_read() local 297 igt_assert(dirp); in test_debugfs_read() 298 while ((de = readdir(dirp))) { in test_debugfs_read() 316 closedir(dirp); in test_debugfs_read()
|
/external/ltp/testcases/kernel/syscalls/getdents/ |
D | getdents01.c | 88 struct linux_dirent *dirp; in main() local 100 dirp = buf; in main() 115 rval = getdents(fd, dirp, BUFSIZE); in main() 141 d_reclen = dirp->d_reclen; in main() 142 d_name = dirp->d_name; in main() 154 dirp = (void*)dirp + d_reclen; in main()
|
D | getdents.h | 41 getdents(unsigned int fd, struct linux_dirent *dirp, unsigned int size) in getdents() argument 43 return ltp_syscall(__NR_getdents, fd, dirp, size); in getdents()
|
D | getdents02.c | 127 struct linux_dirent dirp; in test_ebadf() local 132 getdents(fd, &dirp, sizeof(dirp)); in test_ebadf()
|
/external/openssh/openbsd-compat/ |
D | bsd-closefrom.c | 130 DIR *dirp; in closefrom() local 135 if (len > 0 && (size_t)len < sizeof(fdpath) && (dirp = opendir(fdpath))) { in closefrom() 136 while ((dent = readdir(dirp)) != NULL) { in closefrom() 139 fd >= 0 && fd < INT_MAX && fd >= lowfd && fd != dirfd(dirp)) in closefrom() 142 (void) closedir(dirp); in closefrom()
|
D | glob.c | 705 DIR *dirp; local 722 if ((dirp = g_opendir(pathbuf, pglob)) == NULL) { 741 while ((dp = (*readdirfunc)(dirp))) { 778 (*pglob->gl_closedir)(dirp); 780 closedir(dirp);
|
/external/python/cffi/demo/ |
D | bsdopendirtype.py | 23 dirp = lib.opendir(dir) 24 if dirp == ffi.NULL: 29 dirent = lib.readdir(dirp) 44 lib.closedir(dirp)
|
D | recopendirtype.py | 23 dirp = lib.opendir(dir) 24 if dirp == ffi.NULL: 31 err = lib.readdir_r(dirp, dirent, result) 46 lib.closedir(dirp)
|
/external/ltp/testcases/network/nfs/nfs_stress/ |
D | nfs01_open_files.c | 98 DIR *dirp; in delete_files() local 102 dirp = opendir("."); in delete_files() 103 for (entp = readdir(dirp); entp; entp = readdir(dirp)) in delete_files()
|
/external/rootdev/ |
D | rootdev.c | 93 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/ltp/include/ |
D | safe_macros_fn.h | 169 DIR *dirp); 173 DIR *dirp); 181 DIR *dirp); 185 DIR *dirp);
|
D | tst_safe_macros.h | 215 #define SAFE_CLOSEDIR(dirp) \ argument 216 safe_closedir(__FILE__, __LINE__, NULL, (dirp)) 218 #define SAFE_READDIR(dirp) \ argument 219 safe_readdir(__FILE__, __LINE__, NULL, (dirp))
|
/external/openssh/ |
D | sftp-server.c | 278 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() 1025 DIR *dirp = NULL; in process_opendir() local 1034 dirp = opendir(path); in process_opendir() 1035 if (dirp == NULL) { in process_opendir() 1038 handle = handle_new(HANDLE_DIR, path, 0, 0, dirp); in process_opendir() 1040 closedir(dirp); in process_opendir() [all …]
|
/external/ltp/include/old/ |
D | safe_macros.h | 325 #define SAFE_CLOSEDIR(cleanup_fn, dirp) \ argument 326 safe_closedir(__FILE__, __LINE__, (cleanup_fn), (dirp)) 328 #define SAFE_READDIR(cleanup_fn, dirp) \ argument 329 safe_readdir(__FILE__, __LINE__, (cleanup_fn), (dirp))
|
/external/elfutils/libdw/ |
D | dwarf_getsrclines.c | 317 const unsigned char *dirp = linep; in read_srclines() local 318 while (dirp < lineendp && *dirp != 0) in read_srclines() 320 uint8_t *endp = memchr (dirp, '\0', lineendp - dirp); in read_srclines() 324 dirp = endp + 1; in read_srclines() 326 if (dirp >= lineendp || *dirp != '\0') in read_srclines()
|
/external/iproute2/ip/ |
D | xfrm_policy.c | 261 char *dirp = NULL; in xfrm_policy_modify() local 276 if (dirp) in xfrm_policy_modify() 278 dirp = *argv; in xfrm_policy_modify() 354 if (!dirp) { in xfrm_policy_modify() 567 char *dirp = NULL; in xfrm_policy_get_or_delete() local 581 if (dirp) in xfrm_policy_get_or_delete() 583 dirp = *argv; in xfrm_policy_get_or_delete() 630 if (!dirp) { in xfrm_policy_get_or_delete()
|
/external/ltp/lib/ |
D | safe_macros.c | 802 DIR *dirp) in safe_closedir() argument 806 rval = closedir(dirp); in safe_closedir() 810 "%s:%d: closedir(%p) failed", file, lineno, dirp); in safe_closedir() 817 DIR *dirp) in safe_readdir() argument 823 rval = readdir(dirp); in safe_readdir() 827 "%s:%d: readdir(%p) failed", file, lineno, dirp); in safe_readdir()
|
/external/llvm-project/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_solaris.cpp | 177 DECLARE__REAL_AND_INTERNAL64(uptr, getdents, fd_t fd, struct linux_dirent *dirp, in DECLARE__REAL_AND_INTERNAL64() argument 179 return _REAL64(getdents)(fd, dirp, count); in DECLARE__REAL_AND_INTERNAL64()
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_linux.h | 32 uptr internal_getdents(fd_t fd, struct linux_dirent *dirp, unsigned int count);
|
D | sanitizer_platform_limits_posix.h | 697 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/ipsec-tools/src/racoon/ |
D | eaytest.c | 416 DIR *dirp; local 536 dirp = opendir(path); 537 if (dirp == NULL) { 543 while ((dp = readdir(dirp)) != NULL) {
|
/external/rust/crates/libc/src/ |
D | wasi.rs | 490 pub fn readdir(dirp: *mut ::DIR) -> *mut ::dirent; in readdir() 491 pub fn closedir(dirp: *mut ::DIR) -> ::c_int; in closedir() 492 pub fn rewinddir(dirp: *mut ::DIR); in rewinddir() 493 pub fn dirfd(dirp: *mut ::DIR) -> ::c_int; in dirfd() 494 pub fn seekdir(dirp: *mut ::DIR, loc: ::c_long); in seekdir() 495 pub fn telldir(dirp: *mut ::DIR) -> ::c_long; in telldir()
|
/external/llvm-project/clang/test/Analysis/ |
D | std-c-library-functions-POSIX.c | 144 int dirfd(DIR *dirp); 194 void seekdir(DIR *dirp, long loc);
|