Home
last modified time | relevance | path

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

/openssh-portable/openbsd-compat/
H A 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()
H A 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);
/openssh-portable/
H A Dsftp-server.c278 DIR *dirp; member
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()
1040 closedir(dirp); in process_opendir()
1055 DIR *dirp; in process_readdir() local
1065 dirp = handle_to_dir(handle); in process_readdir()
[all …]
H A Dscp.c1177 DIR *dirp; in rsource() local
1181 if (!(dirp = opendir(name))) { in rsource()
1192 closedir(dirp); in rsource()
1202 closedir(dirp); in rsource()
1205 while ((dp = readdir(dirp)) != NULL) { in rsource()
1218 (void) closedir(dirp); in rsource()
H A Dsftp-client.c1834 DIR *dirp; in upload_dir_internal() local
1879 if ((dirp = opendir(src)) == NULL) { in upload_dir_internal()
1884 while (((dp = readdir(dirp)) != NULL) && !interrupted) { in upload_dir_internal()
1921 (void) closedir(dirp); in upload_dir_internal()

Completed in 12 milliseconds