Changeset a27e370 in mainline for uspace/app/bdsh/cmds/modules/ls/ls.h


Ignore:
Timestamp:
2018-12-08T13:45:38Z (5 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade
Children:
0296ee1
Parents:
87ba3ceb
Message:

correct -1 according to feedback

This corrects the format for dirs vs files by adding a slash
Directories and files are simply sorted alphabetically

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/cmds/modules/ls/ls.h

    r87ba3ceb ra27e370  
    88#define LS_FILE  1
    99#define LS_DIR   2
    10 
    11 typedef 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;
    1910
    2011/** Structure to represent a directory entry.
     
    2819};
    2920
     21typedef struct {
     22        /* Options set at runtime. */
     23        unsigned int recursive;
     24        unsigned int sort;
     25
     26        bool single_column;
     27        bool well_formatted;
     28
     29        void (*printer)(struct dir_elem_t *);
     30} ls_job_t;
     31
    3032#endif
Note: See TracChangeset for help on using the changeset viewer.