source:
mainline/uspace/app/bdsh/cmds/modules/ls/ls.h@
f4f4b95
Last change on this file since f4f4b95 was f4f4b95, checked in by , 7 years ago | |
---|---|
|
|
File size: 544 bytes |
Rev | Line | |
---|---|---|
[4567b31c] | 1 | #ifndef LS_H |
2 | #define LS_H | |
3 | ||
[23a0368] | 4 | #include <vfs/vfs.h> |
5 | ||
[4567b31c] | 6 | /* Various values that can be returned by ls_scope() */ |
7 | #define LS_BOGUS 0 | |
8 | #define LS_FILE 1 | |
9 | #define LS_DIR 2 | |
10 | ||
11 | /** Structure to represent a directory entry. | |
12 | * | |
13 | * Useful to keep together important information | |
14 | * for sorting directory entries. | |
15 | */ | |
16 | struct dir_elem_t { | |
17 | char *name; | |
[39330200] | 18 | vfs_stat_t s; |
[4567b31c] | 19 | }; |
20 | ||
[a27e370] | 21 | typedef struct { |
22 | /* Options set at runtime. */ | |
23 | unsigned int recursive; | |
24 | unsigned int sort; | |
25 | ||
26 | bool single_column; | |
[41453d93] | 27 | bool exact_size; |
[a27e370] | 28 | |
[f4f4b95] | 29 | bool (*printer)(struct dir_elem_t *); |
[a27e370] | 30 | } ls_job_t; |
31 | ||
[4567b31c] | 32 | #endif |
Note:
See TracBrowser
for help on using the repository browser.