lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
Last change
on this file since 5e801dc was 39330200, checked in by Jiří Zárevúcky <zarevucky.jiri@…>, 8 years ago |
|
Rename struct stat and struct statfs to vfs_stat_t and vfs_statfs_t,
respectively. They are nonstandard vestiges of times when native file API
was modeled after POSIX API.
|
-
Property mode
set to
100644
|
|
File size:
465 bytes
|
| Line | |
|---|
| 1 | #ifndef LS_H
|
|---|
| 2 | #define LS_H
|
|---|
| 3 |
|
|---|
| 4 | #include <vfs/vfs.h>
|
|---|
| 5 |
|
|---|
| 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 | typedef struct {
|
|---|
| 12 | /* Options set at runtime. */
|
|---|
| 13 | unsigned int recursive;
|
|---|
| 14 | unsigned int sort;
|
|---|
| 15 |
|
|---|
| 16 | } ls_job_t;
|
|---|
| 17 |
|
|---|
| 18 | /** Structure to represent a directory entry.
|
|---|
| 19 | *
|
|---|
| 20 | * Useful to keep together important information
|
|---|
| 21 | * for sorting directory entries.
|
|---|
| 22 | */
|
|---|
| 23 | struct dir_elem_t {
|
|---|
| 24 | char *name;
|
|---|
| 25 | vfs_stat_t s;
|
|---|
| 26 | };
|
|---|
| 27 |
|
|---|
| 28 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.