Lines Matching refs:nitems
148 size_t len, nitems; in fts_open() local
189 for (root = NULL, nitems = 0; *argv != NULL; ++argv, ++nitems) { in fts_open()
219 if (compar && nitems > 1) in fts_open()
220 root = fts_sort(sp, root, nitems); in fts_open()
685 size_t dnamlen, len, maxlen, nitems; in fts_build() local
795 for (head = tail = NULL, nitems = 0; in fts_build()
880 ++nitems; in fts_build()
889 cur->fts_info = nitems ? FTS_ERR : FTS_DNR; in fts_build()
916 if (descend && (type == BCHILD || !nitems) && in fts_build()
927 if (!nitems) { in fts_build()
935 if (sp->fts_compar && nitems > 1) in fts_build()
936 head = fts_sort(sp, head, nitems); in fts_build()
1043 fts_sort(FTS *sp, FTSENT *head, size_t nitems) in fts_sort() argument
1054 if (nitems > sp->fts_nitems) { in fts_sort()
1055 sp->fts_nitems = nitems + 40; in fts_sort()
1064 qsort(sp->fts_array, nitems, sizeof(FTSENT *), fts_compar); in fts_sort()
1065 for (head = *(ap = sp->fts_array); --nitems; ++ap) in fts_sort()