lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
Last change
on this file since d8023313 was 23a0368, checked in by Jakub Jermar <jakub@…>, 8 years ago |
Rename stat() to vfs_stat_path() and fstat() to vfs_stat()
|
-
Property mode
set to
100644
|
File size:
466 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 | struct stat s;
|
---|
26 | };
|
---|
27 |
|
---|
28 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.