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

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since beb6b3d was e3a3e3ad, checked in by Jerome Portal <jeromeportal1@…>, 14 years ago

improve ls sorting, and add -h and -u options

  • Property mode set to 100644
File size: 449 bytes
Line 
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
9static void ls_scan_dir(const char *, DIR *, int);
10static void ls_print(const char *, const char *);
11
12/** Structure to represent a directory entry.
13 *
14 * Useful to keep together important informations
15 * for sorting directory entries.
16 */
17struct dir_elem_t {
18 char * name;
19 int isdir;
20};
21
22#endif /* LS_H */
23
Note: See TracBrowser for help on using the repository browser.