Lines Matching refs:sort
291 struct dirtree *dt, **sort; in listfiles() local
329 for (sort = 0;;sort = xmalloc(dtlen*sizeof(void *))) { in listfiles()
331 if (sort) sort[dtlen] = dt; in listfiles()
332 if (sort || !dtlen) break; in listfiles()
349 qsort(sort, dtlen, sizeof(void *), (void *)compare); in listfiles()
351 entrylen(sort[ul], len); in listfiles()
354 blocks += sort[ul]->st.st_blocks; in listfiles()
377 entrylen(sort[next_column(ul, dtlen, columns, &c)], len); in listfiles()
398 struct stat *st = &(sort[next]->st); in listfiles()
407 entrylen(sort[next], len); in listfiles()
457 printf(" %-*s", -(int)totals[7], (char *)sort[next]->extra); in listfiles()
479 printf("%-*s ", (int)totals[7], (char *)sort[next]->extra); in listfiles()
486 ss = sort[next]->name; in listfiles()
495 if (fstatat(dirfd, sort[next]->symlink, &st2, 0)) color = 256+31; in listfiles()
501 printf("%s", sort[next]->symlink); in listfiles()
518 for (ul = 0; ul<dtlen; free(sort[ul++])) { in listfiles()
519 if ((flags & FLAG_d) || !S_ISDIR(sort[ul]->st.st_mode)) continue; in listfiles()
522 if (!indir->parent || ((flags&FLAG_R) && dirtree_notdotdot(sort[ul]))) in listfiles()
523 listfiles(openat(dirfd, sort[ul]->name, 0), sort[ul]); in listfiles()
524 free((void *)sort[ul]->extra); in listfiles()
526 free(sort); in listfiles()