lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
Last change
on this file since bc41f3a3 was 4567b31c, checked in by Vivek Prakash <vivekprakash21@…>, 13 years ago |
add -R (—recursive) option to 'ls' command
|
-
Property mode
set to
100644
|
File size:
444 bytes
|
Line | |
---|
1 | #ifndef LS_H
|
---|
2 | #define LS_H
|
---|
3 |
|
---|
4 | /* Various values that can be returned by ls_scope() */
|
---|
5 | #define LS_BOGUS 0
|
---|
6 | #define LS_FILE 1
|
---|
7 | #define LS_DIR 2
|
---|
8 |
|
---|
9 | typedef struct {
|
---|
10 | /* Options set at runtime. */
|
---|
11 | unsigned int recursive;
|
---|
12 | unsigned int sort;
|
---|
13 |
|
---|
14 | } ls_job_t;
|
---|
15 |
|
---|
16 | /** Structure to represent a directory entry.
|
---|
17 | *
|
---|
18 | * Useful to keep together important information
|
---|
19 | * for sorting directory entries.
|
---|
20 | */
|
---|
21 | struct dir_elem_t {
|
---|
22 | char *name;
|
---|
23 | struct stat s;
|
---|
24 | };
|
---|
25 |
|
---|
26 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.