Home
last modified time | relevance | path

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

/coreutils/tests/
Dd_type-check30 dirp = ctypes.c_void_p variable
33 libc.readdir.argtypes = [dirp]
36 libc.opendir.restype = dirp
42 dirp = libc.opendir(".") variable
43 if dirp:
45 ep = libc.readdir(dirp)
/coreutils/src/
Dpwd.c154 DIR *dirp; in find_dir_entry() local
160 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()
Dsystem.h282 readdir_ignoring_dot_and_dotdot (DIR *dirp) in readdir_ignoring_dot_and_dotdot() argument
286 struct dirent const *dp = readdir (dirp); in readdir_ignoring_dot_and_dotdot()
304 DIR *dirp; in directory_status() local
314 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()
Dls.c2993 DIR *dirp; in print_dir() local
2999 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()