Searched refs:dirp (Results 1 – 4 of 4) sorted by relevance
30 dirp = ctypes.c_void_p variable33 libc.readdir.argtypes = [dirp]36 libc.opendir.restype = dirp42 dirp = libc.opendir(".") variable43 if dirp:45 ep = libc.readdir(dirp)
154 DIR *dirp; in find_dir_entry() local160 dirp = opendir (".."); in find_dir_entry()161 if (dirp == nullptr) in find_dir_entry()165 fd = dirfd (dirp); in find_dir_entry()186 if ((dp = readdir_ignoring_dot_and_dotdot (dirp)) == nullptr) in find_dir_entry()192 closedir (dirp); in find_dir_entry()196 dirp = nullptr; in find_dir_entry()226 if (dirp == nullptr || closedir (dirp) != 0) in find_dir_entry()
282 readdir_ignoring_dot_and_dotdot (DIR *dirp) in readdir_ignoring_dot_and_dotdot() argument286 struct dirent const *dp = readdir (dirp); in readdir_ignoring_dot_and_dotdot()304 DIR *dirp; in directory_status() local314 dirp = fdopendir (fd); in directory_status()315 if (dirp == nullptr) in directory_status()323 no_direntries = !readdir_ignoring_dot_and_dotdot (dirp); in directory_status()325 closedir (dirp); in directory_status()
2993 DIR *dirp; in print_dir() local2999 dirp = opendir (name); in print_dir()3000 if (!dirp) in print_dir()3009 int fd = dirfd (dirp); in print_dir()3018 closedir (dirp); in print_dir()3028 closedir (dirp); in print_dir()3069 next = readdir (dirp); in print_dir()3126 if (closedir (dirp) != 0) in print_dir()