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

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

adding options for single column output and human readable sizes

  • Property mode set to 100644
File size: 508 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
11typedef struct {
12 /* Options set at runtime. */
13 unsigned int recursive;
14 unsigned int sort;
15
16 bool single_column;
17 bool well_formatted;
18} ls_job_t;
19
20/** Structure to represent a directory entry.
21 *
22 * Useful to keep together important information
23 * for sorting directory entries.
24 */
25struct dir_elem_t {
26 char *name;
27 vfs_stat_t s;
28};
29
30#endif
Note: See TracBrowser for help on using the repository browser.