Changeset b510d52 in mainline


Ignore:
Timestamp:
2008-08-25T05:38:01Z (16 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
Files:
14 edited

Legend:

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

    r74965d2 rb510d52  
    8282}
    8383
    84 unsigned int cat_file(const char *fname, size_t blen)
     84static unsigned int cat_file(const char *fname, size_t blen)
    8585{
    8686        int fd, bytes = 0, count = 0, reads = 0;
  • uspace/app/bdsh/cmds/modules/cat/cat.h

    r74965d2 rb510d52  
    44/* Prototypes for the cat command, excluding entry points */
    55
    6 extern unsigned int cat_file(const char *, size_t);
     6static unsigned int cat_file(const char *, size_t);
    77
    88#endif /* CAT_H */
  • uspace/app/bdsh/cmds/modules/help/help.c

    r74965d2 rb510d52  
    5050
    5151/* Just use a pointer here, no need for mod_switch */
    52 int is_mod_or_builtin(char *cmd)
     52static int is_mod_or_builtin(char *cmd)
    5353{
    5454        int rc = HELP_IS_RUBBISH;
  • uspace/app/bdsh/cmds/modules/help/help.h

    r74965d2 rb510d52  
    33
    44/* Prototypes for the help command (excluding entry points) */
    5 extern int is_mod_or_builtin(char *);
     5static int is_mod_or_builtin(char *);
    66
    77#endif
  • 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 */
  • uspace/app/bdsh/cmds/modules/mkdir/mkdir.c

    r74965d2 rb510d52  
    8484
    8585/* This is kind of clunky, but effective for now */
    86 unsigned int
     86static unsigned int
    8787create_directory(const char *path, unsigned int p)
    8888{
  • uspace/app/bdsh/cmds/modules/mkdir/mkdir.def

    r74965d2 rb510d52  
    11{
    22        "mkdir",
    3         "The mkdir command",
     3        "Create new directories",
    44        &cmd_mkdir,
    55        &help_cmd_mkdir,
  • uspace/app/bdsh/cmds/modules/mkdir/mkdir.h

    r74965d2 rb510d52  
    44/* Prototypes for the mkdir command, excluding entry points */
    55
    6 extern unsigned int create_directory(const char *, unsigned int);
     6static unsigned int create_directory(const char *, unsigned int);
    77#endif /* MKDIR_H */
    88
  • uspace/app/bdsh/cmds/modules/rm/rm.c

    r74965d2 rb510d52  
    5858};
    5959
    60 unsigned int rm_start(rm_job_t *rm)
     60static unsigned int rm_start(rm_job_t *rm)
    6161{
    6262        rm->recursive = 0;
     
    8686}
    8787
    88 void rm_end(rm_job_t *rm)
     88static void rm_end(rm_job_t *rm)
    8989{
    9090        if (NULL != rm->nwd)
     
    100100}
    101101
    102 unsigned int rm_recursive(const char *path)
     102static unsigned int rm_recursive(const char *path)
    103103{
    104104        int rc;
     
    115115}
    116116
    117 unsigned int rm_single(const char *path)
     117static unsigned int rm_single(const char *path)
    118118{
    119119        if (unlink(path)) {
     
    124124}
    125125
    126 unsigned int rm_scope(const char *path)
     126static unsigned int rm_scope(const char *path)
    127127{
    128128        int fd;
  • uspace/app/bdsh/cmds/modules/rm/rm.def

    r74965d2 rb510d52  
    11{
    22        "rm",
    3         "The rm command",
     3        "Remove files and directories",
    44        &cmd_rm,
    55        &help_cmd_rm,
  • uspace/app/bdsh/cmds/modules/rm/rm.h

    r74965d2 rb510d52  
    3434
    3535/* Prototypes for the rm command, excluding entry points */
    36 extern unsigned int rm_start(rm_job_t *);
    37 extern void rm_end(rm_job_t *rm);
    38 extern unsigned int rm_recursive(const char *);
    39 extern unsigned int rm_single(const char *);
    40 extern unsigned int rm_scope(const char *);
     36static unsigned int rm_start(rm_job_t *);
     37static void rm_end(rm_job_t *rm);
     38static unsigned int rm_recursive(const char *);
     39static unsigned int rm_single(const char *);
     40static unsigned int rm_scope(const char *);
    4141
    4242#endif /* RM_H */
  • uspace/app/bdsh/cmds/modules/touch/touch.def

    r74965d2 rb510d52  
    11{
    22        "touch",
    3         "The touch command",
     3        "Create files or update access times",
    44        &cmd_touch,
    55        &help_cmd_touch,
Note: See TracChangeset for help on using the changeset viewer.