Lines Matching refs:dir
392 process_entry (struct ftw_data *data, struct dir_data *dir, const char *name, in process_entry() argument
413 if (dir->streamfd != -1) in process_entry()
414 statres = FSTATAT (dir->streamfd, name, &st, in process_entry()
438 if (dir->streamfd != -1) in process_entry()
439 statres = FSTATAT (dir->streamfd, name, &st, in process_entry()
469 result = ftw_dir (data, &st, dir); in process_entry()
487 struct dir_data dir; in ftw_dir() local
496 data, &dir); in ftw_dir()
515 __closedir (dir.stream); in ftw_dir()
516 dir.streamfd = -1; in ftw_dir()
529 if (__fchdir (__dirfd (dir.stream)) < 0) in ftw_dir()
545 while (dir.stream != NULL && (d = __readdir64 (dir.stream)) != NULL) in ftw_dir()
551 result = process_entry (data, &dir, d->d_name, NAMLEN (d), d_type); in ftw_dir()
556 if (dir.stream != NULL) in ftw_dir()
562 assert (dir.content == NULL); in ftw_dir()
564 __closedir (dir.stream); in ftw_dir()
565 dir.streamfd = -1; in ftw_dir()
575 char *runp = dir.content; in ftw_dir()
582 result = process_entry (data, &dir, runp, endp - runp, DT_UNKNOWN); in ftw_dir()
588 free (dir.content); in ftw_dir()
635 ftw_startup (const char *dir, int is_nftw, void *func, int descriptors, in ftw_startup() argument
647 if (dir[0] == '\0') in ftw_startup()
656 if (!ftw_allocate (&data, MAX (2 * strlen (dir), PATH_MAX))) in ftw_startup()
659 cp = __stpcpy (data.dirbuf, dir); in ftw_startup()