source: mainline/uspace/app/bdsh/cmds/modules/ls/ls.h@ f4f4b95

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since f4f4b95 was f4f4b95, checked in by Matthieu Riolo <matthieu.riolo@…>, 7 years ago

improved error handling

  • Property mode set to 100644
File size: 544 bytes
RevLine 
[4567b31c]1#ifndef LS_H
2#define LS_H
3
[23a0368]4#include <vfs/vfs.h>
5
[4567b31c]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/** Structure to represent a directory entry.
12 *
13 * Useful to keep together important information
14 * for sorting directory entries.
15 */
16struct dir_elem_t {
17 char *name;
[39330200]18 vfs_stat_t s;
[4567b31c]19};
20
[a27e370]21typedef struct {
22 /* Options set at runtime. */
23 unsigned int recursive;
24 unsigned int sort;
25
26 bool single_column;
[41453d93]27 bool exact_size;
[a27e370]28
[f4f4b95]29 bool (*printer)(struct dir_elem_t *);
[a27e370]30} ls_job_t;
31
[4567b31c]32#endif
Note: See TracBrowser for help on using the repository browser.