lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
Last change
on this file since 1e2629f was e3a3e3ad, checked in by Jerome Portal <jeromeportal1@…>, 15 years ago |
|
improve ls sorting, and add -h and -u options
|
-
Property mode
set to
100644
|
|
File size:
449 bytes
|
| Rev | Line | |
|---|
| [216d6fc] | 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 |
|
|---|
| [e3a3e3ad] | 9 | static void ls_scan_dir(const char *, DIR *, int);
|
|---|
| [415c7e0d] | 10 | static void ls_print(const char *, const char *);
|
|---|
| [216d6fc] | 11 |
|
|---|
| [e3a3e3ad] | 12 | /** Structure to represent a directory entry.
|
|---|
| 13 | *
|
|---|
| 14 | * Useful to keep together important informations
|
|---|
| 15 | * for sorting directory entries.
|
|---|
| 16 | */
|
|---|
| 17 | struct dir_elem_t {
|
|---|
| 18 | char * name;
|
|---|
| 19 | int isdir;
|
|---|
| 20 | };
|
|---|
| 21 |
|
|---|
| [216d6fc] | 22 | #endif /* LS_H */
|
|---|
| 23 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.