Home
last modified time | relevance | path

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

123

/external/ltp/testcases/kernel/syscalls/readdir/
Dreaddir21.c57 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/
Dkms_sysfs_edid_timing.c42 DIR *dirp; variable
45 dirp = opendir("/sys/class/drm");
46 igt_assert(dirp != NULL);
48 while ((de = readdir(dirp))) {
95 closedir(dirp);
Dvgem_basic.c266 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/
Dgetdents01.c88 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()
Dgetdents.h41 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()
Dgetdents02.c127 struct linux_dirent dirp; in test_ebadf() local
132 getdents(fd, &dirp, sizeof(dirp)); in test_ebadf()
/external/openssh/openbsd-compat/
Dbsd-closefrom.c130 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()
Dglob.c705 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/
Dbsdopendirtype.py23 dirp = lib.opendir(dir)
24 if dirp == ffi.NULL:
29 dirent = lib.readdir(dirp)
44 lib.closedir(dirp)
Drecopendirtype.py23 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/
Dnfs01_open_files.c98 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/
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/ltp/include/
Dsafe_macros_fn.h169 DIR *dirp);
173 DIR *dirp);
181 DIR *dirp);
185 DIR *dirp);
Dtst_safe_macros.h215 #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/
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()
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/
Dsafe_macros.h325 #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/
Ddwarf_getsrclines.c317 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/
Dxfrm_policy.c261 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/
Dsafe_macros.c802 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/
Dsanitizer_solaris.cpp177 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/
Dsanitizer_linux.h32 uptr internal_getdents(fd_t fd, struct linux_dirent *dirp, unsigned int count);
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/ipsec-tools/src/racoon/
Deaytest.c416 DIR *dirp; local
536 dirp = opendir(path);
537 if (dirp == NULL) {
543 while ((dp = readdir(dirp)) != NULL) {
/external/rust/crates/libc/src/
Dwasi.rs490 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/
Dstd-c-library-functions-POSIX.c144 int dirfd(DIR *dirp);
194 void seekdir(DIR *dirp, long loc);

123