Changeset b510d52 in mainline for uspace/app/bdsh/cmds/modules/ls


Ignore:
Timestamp:
2008-08-25T05:38:01Z (17 years ago)
Author:
Tim Post <echo@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e2ea8d7e
Parents:
74965d2
Message:

Fix command description display, only command entry points need to be exposed.

Location:
uspace/app/bdsh/cmds/modules/ls
Files:
3 edited

Legend:

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

    r74965d2 rb510d52  
    5151static char *cmdname = "ls";
    5252
    53 unsigned int ls_scope(const char *path)
     53static unsigned int ls_scope(const char *path)
    5454{
    5555        int fd;
     
    7171}
    7272
    73 void ls_scan_dir(const char *d, DIR *dirp)
     73static void ls_scan_dir(const char *d, DIR *dirp)
    7474{
    7575        struct dirent *dp;
     
    119119 * Now we just print basic DOS style lists */
    120120
    121 void ls_print_dir(const char *d)
     121static void ls_print_dir(const char *d)
    122122{
    123123        printf("%-40s\t<DIR>\n", d);
     
    126126}
    127127
    128 void ls_print_file(const char *f)
     128static void ls_print_file(const char *f)
    129129{
    130130        printf("%-40s\n", f);
  • uspace/app/bdsh/cmds/modules/ls/ls.def

    r74965d2 rb510d52  
    11{
    22        "ls",
    3         "The ls command",
     3        "List files and directories",
    44        &cmd_ls,
    55        &help_cmd_ls,
  • uspace/app/bdsh/cmds/modules/ls/ls.h

    r74965d2 rb510d52  
    77#define LS_DIR   2
    88
    9 /* Protoypes for non entry points, intrinsic to ls. Stuff like ls_scope()
    10  * is also duplicated in rm, while rm sort of duplicates ls_scan_dir().
    11  * TODO make some more shared functions and don't expose the stuff below */
    12 extern unsigned int ls_scope(const char *);
    13 extern void ls_scan_dir(const char *, DIR *);
    14 extern void ls_print_dir(const char *);
    15 extern void ls_print_file(const char *);
     9
     10static unsigned int ls_scope(const char *);
     11static void ls_scan_dir(const char *, DIR *);
     12static void ls_print_dir(const char *);
     13static void ls_print_file(const char *);
    1614
    1715#endif /* LS_H */
Note: See TracChangeset for help on using the changeset viewer.