Rev 3293 | Rev 3346 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3293 | Rev 3326 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | #ifndef LS_H |
1 | #ifndef LS_H |
2 | #define LS_H |
2 | #define LS_H |
3 | 3 | ||
4 | /* Prototypes for the ls command, excluding entry points */ |
4 | /* Various values that can be returned by ls_scope() */ |
5 | - | ||
6 | #define LS_BOGUS 0 |
5 | #define LS_BOGUS 0 |
7 | #define LS_FILE 1 |
6 | #define LS_FILE 1 |
8 | #define LS_DIR 2 |
7 | #define LS_DIR 2 |
9 | 8 | ||
- | 9 | /* Protoypes for non entry points, intrinsic to ls. Stuff like ls_scope() |
|
- | 10 | * is also duplicated in rm, while rm sort of duplicates ls_scan_dir(). |
|
- | 11 | * TODO make some more shared functions and don't expose the stuff below */ |
|
10 | extern unsigned int ls_scope(const char *); |
12 | extern unsigned int ls_scope(const char *); |
- | 13 | extern void ls_scan_dir(const char *, DIR *); |
|
11 | extern void ls_print(const char *); |
14 | extern void ls_print_dir(const char *); |
- | 15 | extern void ls_print_file(const char *); |
|
12 | 16 | ||
13 | #endif /* LS_H */ |
17 | #endif /* LS_H */ |
14 | 18 |