Searched refs:dirp (Results 51 - 75 of 110) sorted by relevance

12345

/freebsd-current/crypto/openssh/
H A Dsftp-server.c312 DIR *dirp; member in struct:Handle
338 handle_new(int use, const char *name, int fd, int flags, DIR *dirp) argument
354 handles[i].dirp = dirp;
407 return handles[handle].dirp;
467 ret = closedir(handles[handle].dirp);
1101 DIR *dirp = NULL; local
1110 dirp = opendir(path);
1111 if (dirp == NULL) {
1114 handle = handle_new(HANDLE_DIR, path, 0, 0, dirp);
1131 DIR *dirp; local
[all...]
/freebsd-current/contrib/tcsh/
H A Dsh.exec.c639 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 Dglob.c567 DIR *dirp; local
613 if (!(dirp = Opendir(pathbuf->s))) {
623 while ((dp = readdir(dirp)) != NULL) {
655 closedir(dirp);
H A Dtc.os.c1221 DIR *dirp = NULL; /* directory stream */ local
1241 if ((dirp = opendir("..")) == NULL) {
1252 if ((dir = readdir(dirp)) == NULL) {
1267 closedir(dirp);
1268 dirp = NULL;
1269 pnptr = strnrcpy(dirp->d_name, pnptr, pnptr - pathbuf);
/freebsd-current/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_solaris.cpp184 DECLARE__REAL_AND_INTERNAL64(uptr, getdents, fd_t fd, struct linux_dirent *dirp, argument
186 return _REAL64(getdents)(fd, dirp, count);
H A Dsanitizer_linux.h48 uptr internal_getdents(fd_t fd, struct linux_dirent *dirp, unsigned int count);
/freebsd-current/crypto/heimdal/lib/roken/
H A Dglob.c574 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-current/sys/contrib/openzfs/cmd/zed/
H A Dzed_conf.c333 DIR *dirp; local
352 dirp = opendir(zcp->zedlet_dir);
353 if (!dirp) {
361 while ((direntp = readdir(dirp))) {
417 if (closedir(dirp) < 0) {
/freebsd-current/usr.bin/locale/
H A Dlocale.c523 DIR *dirp; local
542 dirp = opendir(_PathLocale);
543 if (dirp == NULL)
547 while ((dp = readdir(dirp)) != NULL) {
557 closedir(dirp);
/freebsd-current/usr.sbin/lpr/lpd/
H A Dlpd.c626 DIR *dirp; local
630 if ((dirp = opendir(spooldir)) == NULL)
632 while ((d = readdir(dirp)) != NULL) {
635 closedir(dirp);
638 closedir(dirp);
/freebsd-current/usr.sbin/kbdmap/
H A Dkbdmap.c571 DIR *dirp; local
710 dirp = opendir(dir);
711 if (dirp) {
712 while ((dp = readdir(dirp)) != NULL) {
733 closedir(dirp);
/freebsd-current/sbin/fsck_ffs/
H A Dinode.c1280 struct direct *dirp = idesc->id_dirp; local
1282 if (dirp->d_ino != idesc->id_parent || idesc->id_entryno < 2) {
1286 memmove(idesc->id_name, dirp->d_name, (size_t)dirp->d_namlen + 1);
1293 struct direct *dirp = idesc->id_dirp; local
1295 if (dirp->d_ino == 0)
1297 if (strcmp(dirp->d_name, idesc->id_name) == 0 &&
1298 dirp->d_ino >= UFS_ROOTINO && dirp->d_ino < maxino) {
1299 idesc->id_parent = dirp
1308 struct direct *dirp = idesc->id_dirp; local
[all...]
/freebsd-current/sbin/devd/
H A Ddevd.cc481 DIR *dirp; local
486 dirp = opendir(dirname);
487 if (dirp == NULL)
489 readdir(dirp); /* Skip . */
490 readdir(dirp); /* Skip .. */
491 while ((dp = readdir(dirp)) != NULL) {
498 closedir(dirp);
/freebsd-current/usr.sbin/makefs/msdos/
H A Dmsdosfs_vnops.c416 struct direntry *dirp; local
420 error = m_readde(dep, &bp, &dirp);
423 DE_EXTERNALIZE(dirp, dep);
/freebsd-current/usr.sbin/config/
H A Dmain.cc641 DIR *dirp; local
656 if ((dirp = opendir(p)) == NULL)
658 while ((dp = readdir(dirp)) != NULL) {
682 (void)closedir(dirp);
/freebsd-current/usr.sbin/rpc.yppasswdd/
H A Dyppasswdd_server.c250 struct dirent *dirp; local
265 while ((dirp = readdir(dird)) != NULL) {
267 yp_dir, dirp->d_name);
275 tmp = (char *)dirp->d_name;
/freebsd-current/usr.sbin/makefs/
H A Dwalk.c75 DIR *dirp; local
91 if ((dirp = opendir(path)) == NULL)
102 while ((dent = readdir(dirp)) != NULL) {
211 if (closedir(dirp) == -1)
/freebsd-current/sys/fs/msdosfs/
H A Dmsdosfs_denode.c319 struct direntry *dirp; local
336 error = readde(dep, &bp, &dirp);
340 if (bcmp(dirp, &dir, sizeof(dir)) == 0) {
346 *dirp = dir;
/freebsd-current/stand/kboot/include/
H A Dhost_syscall.h165 int host_getdents64(int fd, void *dirp, int count);
/freebsd-current/tests/sys/fs/fusefs/
H A Dutils.hh269 static void leakdir(DIR* dirp __unused) {}
/freebsd-current/contrib/nvi/common/
H A Dexf.c1023 DIR *dirp; local
1116 dirp = opendir(".");
1120 dirp = opendir(bp);
1124 if (dirp == NULL) {
1130 for (maxnum = 0; (dp = readdir(dirp)) != NULL;)
1133 (void)closedir(dirp);
/freebsd-current/usr.sbin/ypserv/
H A Dyp_server.c685 struct dirent *dirp; local
695 while ((dirp = readdir(dird)) != NULL) {
696 if (strcmp(dirp->d_name, ".") && strcmp(dirp->d_name, "..")) {
698 yp_mapdir,dirp->d_name);
709 if ((cur->map = strdup(dirp->d_name)) == NULL) {
/freebsd-current/cddl/contrib/opensolaris/lib/libdtrace/common/
H A Ddt_open.c861 DIR *dirp; local
863 if ((dirp = opendir(_dtrace_provdir)) == NULL)
869 while (readdir_r(dirp, ep, &dp) == 0 && dp != NULL) {
905 (void) closedir(dirp);
1644 dt_dirpath_t *dirp; local
1722 while ((dirp = dt_list_next(&dtp->dt_lib_path)) != NULL) {
1723 dt_list_delete(&dtp->dt_lib_path, dirp);
1724 free(dirp->dir_path);
1725 free(dirp);
/freebsd-current/crypto/openssh/openbsd-compat/
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);
/freebsd-current/lib/libc/gen/
H A Dglob-compat11.c683 DIR *dirp; local
702 if ((dirp = g_opendir(pathbuf, pglob)) == NULL) {
722 while ((dp = (*readdirfunc)(dirp)) != NULL) {
780 (*pglob->gl_closedir)(dirp);
782 closedir(dirp);

Completed in 426 milliseconds

12345