Lines Matching refs:dt
128 static void entrylen(struct dirtree *dt, unsigned *len) in entrylen() argument
130 struct stat *st = &(dt->st); in entrylen()
134 *len = strwidth(dt->name); in entrylen()
155 len[7] = (flags & FLAG_Z) ? strwidth((char *)dt->extra) : 0; in entrylen()
288 struct dirtree *dt, **sort; in listfiles() local
308 dt = indir->child; in listfiles()
309 if (dt && S_ISDIR(dt->st.st_mode) && !dt->next && !(flags&(FLAG_d|FLAG_R))) in listfiles()
311 listfiles(open(dt->name, 0), TT.singledir = dt); in listfiles()
317 for (;dt; dt = dt->next) filter(dt); in listfiles()
330 for (dtlen = 0, dt = indir->child; dt; dt = dt->next, dtlen++) in listfiles()
331 if (sort) sort[dtlen] = dt; in listfiles()
523 struct dirtree *dt; in ls_main() local
546 dt = dirtree_start(*s, !(toys.optflags&(FLAG_l|FLAG_d|FLAG_F)) || in ls_main()
550 if (dt) dlist_add_nomalloc((void *)&TT.files->child, (void *)dt); in ls_main()
556 for (dt = TT.files->child; dt; dt = dt->next) dt->parent = TT.files; in ls_main()