/freebsd-11-stable/lib/libc/gen/ |
H A D | fts.c | 630 DIR *dirp; local 653 if ((dirp = __opendir2(cur->fts_accpath, oflag)) == NULL) { 703 if (fts_safe_changedir(sp, cur, _dirfd(dirp), NULL)) { 739 for (head = tail = NULL, nitems = 0; dirp && (dp = readdir(dirp));) { 758 (void)closedir(dirp); 803 p->fts_info = fts_stat(sp, p, 0, _dirfd(dirp)); 825 if (dirp) 826 (void)closedir(dirp);
|
/freebsd-11-stable/crypto/openssh/ |
H A D | sftp-server.c | 274 DIR *dirp; member in struct:Handle 300 handle_new(int use, const char *name, int fd, int flags, DIR *dirp) argument 316 handles[i].dirp = dirp; 369 return handles[handle].dirp; 429 ret = closedir(handles[handle].dirp); 1007 DIR *dirp = NULL; local 1016 dirp = opendir(path); 1017 if (dirp == NULL) { 1020 handle = handle_new(HANDLE_DIR, path, 0, 0, dirp); 1037 DIR *dirp; local [all...] |
H A D | scp.c | 872 DIR *dirp; local 876 if (!(dirp = opendir(name))) { 887 closedir(dirp); 897 closedir(dirp); 900 while ((dp = readdir(dirp)) != NULL) { 913 (void) closedir(dirp);
|
/freebsd-11-stable/contrib/tcsh/ |
H A D | sh.exec.c | 639 DIR *dirp; local 700 dirp = opendir(short2str(*pv)); 701 if (dirp == NULL) 703 cleanup_push(dirp, opendir_cleanup); 706 if (fstat(dirp->dd_fd, &stb) < 0 || !S_ISDIR(stb.st_mode)) { 707 cleanup_until(dirp); 714 while ((dp = readdir(dirp)) != NULL) { 759 cleanup_until(dirp);
|
H A D | glob.c | 567 DIR *dirp; local 613 if (!(dirp = Opendir(pathbuf->s))) { 623 while ((dp = readdir(dirp)) != NULL) { 655 closedir(dirp);
|
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_platform_limits_openbsd.h | 319 void (*gl_closedir)(void *dirp); 320 struct dirent *(*gl_readdir)(void *dirp);
|
H A D | sanitizer_solaris.cpp | 167 DECLARE__REAL_AND_INTERNAL64(uptr, getdents, fd_t fd, struct linux_dirent *dirp, argument 169 return _REAL64(getdents)(fd, dirp, count);
|
H A D | sanitizer_platform_limits_freebsd.h | 360 void (*gl_closedir)(void *dirp); 361 struct dirent *(*gl_readdir)(void *dirp);
|
/freebsd-11-stable/crypto/heimdal/lib/roken/ |
H A D | glob.c | 574 DIR *dirp; local 589 if ((dirp = g_opendir(pathbuf, pglob)) == NULL) { 607 while ((dp = (*readdirfunc)(dirp))) { 627 (*pglob->gl_closedir)(dirp); 629 closedir(dirp);
|
/freebsd-11-stable/usr.sbin/lpr/lpd/ |
H A D | lpd.c | 630 DIR *dirp; local 634 if ((dirp = opendir(spooldir)) == NULL) 636 while ((d = readdir(dirp)) != NULL) { 639 closedir(dirp); 642 closedir(dirp);
|
/freebsd-11-stable/usr.sbin/kbdmap/ |
H A D | kbdmap.c | 591 DIR *dirp; local 730 dirp = opendir(dir); 731 if (dirp) { 732 while ((dp = readdir(dirp)) != NULL) { 753 closedir(dirp);
|
/freebsd-11-stable/sbin/devd/ |
H A D | devd.cc | 455 DIR *dirp; local 460 dirp = opendir(dirname); 461 if (dirp == NULL) 463 readdir(dirp); /* Skip . */ 464 readdir(dirp); /* Skip .. */ 465 while ((dp = readdir(dirp)) != NULL) { 472 closedir(dirp);
|
/freebsd-11-stable/contrib/gcc/config/ |
H A D | darwin-c.c | 53 cpp_dir **dirp); 545 find_subframework_header (cpp_reader *pfile, const char *header, cpp_dir **dirp) argument 562 *dirp = cpp_get_dir (cpp_get_file (b));
|
/freebsd-11-stable/contrib/groff/src/preproc/pic/ |
H A D | object.h | 212 direction *dirp);
|
/freebsd-11-stable/contrib/openbsm/libauditd/ |
H A D | auditd_lib.c | 444 DIR *dirp; local 447 dirp = opendir(traildir->dirname); 448 while ((dp = readdir(dirp)) != NULL) { 542 closedir(dirp);
|
/freebsd-11-stable/usr.sbin/makefs/ |
H A D | walk.c | 79 DIR *dirp; local 94 if ((dirp = opendir(path)) == NULL) 105 while ((dent = readdir(dirp)) != NULL) { 214 if (closedir(dirp) == -1)
|
/freebsd-11-stable/usr.sbin/rpc.yppasswdd/ |
H A D | yppasswdd_server.c | 253 struct dirent *dirp; local 268 while ((dirp = readdir(dird)) != NULL) { 270 yp_dir, dirp->d_name); 278 tmp = (char *)dirp->d_name;
|
/freebsd-11-stable/usr.sbin/config/ |
H A D | main.c | 642 DIR *dirp; local 657 if ((dirp = opendir(p)) == NULL) 659 while ((dp = readdir(dirp)) != NULL) { 681 (void)closedir(dirp);
|
/freebsd-11-stable/contrib/llvm-project/lldb/source/Symbol/ |
H A D | LocateSymbolFileMacOSX.cpp | 262 DIR *dirp = opendir(path); local 263 if (!dirp) 267 auto cleanup_dir = llvm::make_scope_exit([&]() { closedir(dirp); }); 272 while ((dp = readdir(dirp)) != NULL) {
|
/freebsd-11-stable/contrib/gdb/gdb/ |
H A D | nto-procfs.c | 260 struct dirent *dirp = NULL; local 286 dirp = readdir (dp); 287 if (dirp == NULL) 292 snprintf (buf, 511, "%s/%s/as", nto_procfs_path, dirp->d_name); 293 pid = atoi (dirp->d_name); 335 while (dirp != NULL);
|
/freebsd-11-stable/contrib/nvi/common/ |
H A D | exf.c | 1026 DIR *dirp; local 1119 dirp = opendir("."); 1123 dirp = opendir(bp); 1127 if (dirp == NULL) { 1133 for (maxnum = 0; (dp = readdir(dirp)) != NULL;) 1136 (void)closedir(dirp);
|
/freebsd-11-stable/usr.sbin/ypserv/ |
H A D | yp_server.c | 687 struct dirent *dirp; local 697 while ((dirp = readdir(dird)) != NULL) { 698 if (strcmp(dirp->d_name, ".") && strcmp(dirp->d_name, "..")) { 700 yp_mapdir,dirp->d_name); 711 if ((cur->map = strdup(dirp->d_name)) == NULL) {
|
/freebsd-11-stable/usr.sbin/newsyslog/ |
H A D | newsyslog.c | 1552 DIR *dirp; local 1577 if ((dirp = opendir(dir)) == NULL) 1579 dir_fd = dirfd(dirp); 1580 while ((dp = readdir(dirp)) != NULL) { 1640 closedir(dirp); 2359 DIR *dirp; local 2377 if ((dirp = opendir(dir)) == NULL) { 2381 dir_fd = dirfd(dirp); 2383 while ((dp = readdir(dirp)) != NULL) { 2394 closedir(dirp); [all...] |
/freebsd-11-stable/cddl/contrib/opensolaris/lib/libdtrace/common/ |
H A D | dt_open.c | 862 DIR *dirp; local 864 if ((dirp = opendir(_dtrace_provdir)) == NULL) 870 while (readdir_r(dirp, ep, &dp) == 0 && dp != NULL) { 906 (void) closedir(dirp); 1634 dt_dirpath_t *dirp; local 1710 while ((dirp = dt_list_next(&dtp->dt_lib_path)) != NULL) { 1711 dt_list_delete(&dtp->dt_lib_path, dirp); 1712 free(dirp->dir_path); 1713 free(dirp);
|
/freebsd-11-stable/crypto/openssh/openbsd-compat/ |
H A D | glob.c | 701 DIR *dirp; local 718 if ((dirp = g_opendir(pathbuf, pglob)) == NULL) { 737 while ((dp = (*readdirfunc)(dirp))) { 774 (*pglob->gl_closedir)(dirp); 776 closedir(dirp);
|