Home | History | Annotate | Download | only in debugfs

Lines Matching refs:ls

2  * ls.c --- list directories
61 struct list_dir_struct *ls = (struct list_dir_struct *) private;
76 if (ls->options & PARSE_OPT) {
78 fprintf(ls->f,"/%u/%06o/%d/%d/%s/",ino,inode.i_mode,inode.i_uid, inode.i_gid,name);
80 fprintf(ls->f, "/");
82 fprintf(ls->f, "%lld/", inode.i_size | ((__u64)inode.i_size_high << 32));
83 fprintf(ls->f, "\n");
85 else if (ls->options & LONG_OPT) {
99 fprintf(ls->f, "%c%6u%c %6o (%d) %5d %5d ", lbr, ino, rbr,
103 fprintf(ls->f, "%5d", inode.i_size);
105 fprintf(ls->f, "%5llu", inode.i_size |
107 fprintf (ls->f, " %s %s\n", datestr, name);
113 if (ls->col + thislen > 80) {
114 fprintf(ls->f, "\n");
115 ls->col = 0;
117 fprintf(ls->f, "%s", tmp);
118 ls->col += thislen;
129 struct list_dir_struct ls;
131 ls.options = 0;
139 ls.options |= LONG_OPT;
142 ls.options |= DELETED_OPT;
145 ls.options |= PARSE_OPT;
154 com_err(0, 0, "Usage: ls [-l] [-d] [-p] file");
165 ls.f = open_pager();
166 ls.col = 0;
168 if (ls.options & DELETED_OPT)
172 0, list_dir_proc, &ls);
173 fprintf(ls.f, "\n");
174 close_pager(ls.f);