Changeset a000878c in mainline for uspace/app/bdsh
- Timestamp:
- 2010-02-25T19:11:25Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 958de16
- Parents:
- a634485
- Location:
- uspace/app/bdsh
- Files:
-
- 19 edited
-
cmds/builtins/cd/cd.c (modified) (1 diff)
-
cmds/cmds.h (modified) (4 diffs)
-
cmds/modules/cat/cat.c (modified) (1 diff)
-
cmds/modules/help/help.c (modified) (1 diff)
-
cmds/modules/kcon/kcon.c (modified) (1 diff)
-
cmds/modules/ls/ls.c (modified) (1 diff)
-
cmds/modules/mkdir/mkdir.c (modified) (1 diff)
-
cmds/modules/mkfile/mkfile.c (modified) (1 diff)
-
cmds/modules/module_aliases.h (modified) (1 diff)
-
cmds/modules/mount/mount.c (modified) (1 diff)
-
cmds/modules/pwd/pwd.c (modified) (1 diff)
-
cmds/modules/rm/rm.c (modified) (1 diff)
-
cmds/modules/sleep/sleep.c (modified) (1 diff)
-
cmds/modules/touch/touch.c (modified) (1 diff)
-
errors.c (modified) (1 diff)
-
errstr.h (modified) (2 diffs)
-
exec.c (modified) (1 diff)
-
exec.h (modified) (1 diff)
-
scli.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/builtins/cd/cd.c
ra634485 ra000878c 41 41 #include "cd.h" 42 42 43 static c har *cmdname = "cd";43 static const char *cmdname = "cd"; 44 44 45 45 void help_cmd_cd(unsigned int level) -
uspace/app/bdsh/cmds/cmds.h
ra634485 ra000878c 33 33 /* Module structure */ 34 34 typedef struct { 35 c har *name;/* Name of the command */36 c har *desc;/* Description of the command */35 const char *name; /* Name of the command */ 36 const char *desc; /* Description of the command */ 37 37 mod_entry_t entry; /* Command (exec) entry function */ 38 38 mod_help_t help; /* Command (help) entry function */ … … 41 41 /* Builtin structure, same as modules except different types of entry points */ 42 42 typedef struct { 43 c har *name;44 c har *desc;43 const char *name; 44 const char *desc; 45 45 builtin_entry_t entry; 46 46 builtin_help_t help; … … 57 57 extern int is_module(const char *); 58 58 extern int is_module_alias(const char *); 59 extern char * alias_for_module(const char *);59 extern char *alias_for_module(const char *); 60 60 extern int help_module(int, unsigned int); 61 61 extern int run_module(int, char *[]); … … 65 65 extern int is_builtin(const char *); 66 66 extern int is_builtin_alias(const char *); 67 extern char * alias_for_builtin(const char *);67 extern char *alias_for_builtin(const char *); 68 68 extern int help_builtin(int, unsigned int); 69 69 extern int run_builtin(int, char *[], cliuser_t *); -
uspace/app/bdsh/cmds/modules/cat/cat.c
ra634485 ra000878c 43 43 #include "cmds.h" 44 44 45 static c har *cmdname = "cat";45 static const char *cmdname = "cat"; 46 46 #define CAT_VERSION "0.0.1" 47 47 #define CAT_DEFAULT_BUFLEN 1024 48 48 49 static c har *cat_oops = "That option is not yet supported\n";49 static const char *cat_oops = "That option is not yet supported\n"; 50 50 51 51 static struct option const long_options[] = { -
uspace/app/bdsh/cmds/modules/help/help.c
ra634485 ra000878c 42 42 #include "util.h" 43 43 44 static c har *cmdname = "help";44 static const char *cmdname = "help"; 45 45 extern const char *progname; 46 46 -
uspace/app/bdsh/cmds/modules/kcon/kcon.c
ra634485 ra000878c 40 40 #include "cmds.h" 41 41 42 static c har *cmdname = "kcon";42 static const char *cmdname = "kcon"; 43 43 44 44 /* Dispays help for kcon in various levels */ -
uspace/app/bdsh/cmds/modules/ls/ls.c
ra634485 ra000878c 49 49 #include "cmds.h" 50 50 51 static c har *cmdname = "ls";51 static const char *cmdname = "ls"; 52 52 53 53 static void ls_scan_dir(const char *d, DIR *dirp) -
uspace/app/bdsh/cmds/modules/mkdir/mkdir.c
ra634485 ra000878c 49 49 #define MKDIR_VERSION "0.0.1" 50 50 51 static c har *cmdname = "mkdir";51 static const char *cmdname = "mkdir"; 52 52 53 53 static struct option const long_options[] = { -
uspace/app/bdsh/cmds/modules/mkfile/mkfile.c
ra634485 ra000878c 51 51 #define BUFFER_SIZE 16384 52 52 53 static c har *cmdname = "mkfile";53 static const char *cmdname = "mkfile"; 54 54 55 55 static struct option const long_options[] = { -
uspace/app/bdsh/cmds/modules/module_aliases.h
ra634485 ra000878c 12 12 * the entry point being reached. */ 13 13 14 c har *mod_aliases[] = {14 const char *mod_aliases[] = { 15 15 "ren", "mv", 16 16 "umount", "unmount", -
uspace/app/bdsh/cmds/modules/mount/mount.c
ra634485 ra000878c 58 58 { 59 59 unsigned int argc; 60 c har *mopts = "";60 const char *mopts = ""; 61 61 int rc; 62 62 -
uspace/app/bdsh/cmds/modules/pwd/pwd.c
ra634485 ra000878c 39 39 #include "pwd.h" 40 40 41 static c har *cmdname = "pwd";41 static const char *cmdname = "pwd"; 42 42 43 43 void help_cmd_pwd(unsigned int level) -
uspace/app/bdsh/cmds/modules/rm/rm.c
ra634485 ra000878c 45 45 #include "cmds.h" 46 46 47 static c har *cmdname = "rm";47 static const char *cmdname = "rm"; 48 48 #define RM_VERSION "0.0.1" 49 49 -
uspace/app/bdsh/cmds/modules/sleep/sleep.c
ra634485 ra000878c 38 38 #include "cmds.h" 39 39 40 static c har *cmdname = "sleep";40 static const char *cmdname = "sleep"; 41 41 42 42 /* Dispays help for sleep in various levels */ -
uspace/app/bdsh/cmds/modules/touch/touch.c
ra634485 ra000878c 47 47 #include "cmds.h" 48 48 49 static c har *cmdname = "touch";49 static const char *cmdname = "touch"; 50 50 51 51 /* Dispays help for touch in various levels */ -
uspace/app/bdsh/errors.c
ra634485 ra000878c 47 47 /* Look up errno in cl_errors and return the corresponding string. 48 48 * Return NULL if not found */ 49 static c har *err2str(int err)49 static const char *err2str(int err) 50 50 { 51 51 -
uspace/app/bdsh/errstr.h
ra634485 ra000878c 4 4 /* Simple array to translate error codes to meaningful strings */ 5 5 6 static c har *cl_errors[] = {6 static const char *cl_errors[] = { 7 7 "Success", 8 8 "Failure", … … 18 18 }; 19 19 20 static c har *err2str(int);20 static const char *err2str(int); 21 21 22 22 #endif -
uspace/app/bdsh/exec.c
ra634485 ra000878c 120 120 free(found); 121 121 122 tid = task_spawn( (const char *)tmp,argv);122 tid = task_spawn(tmp, (const char **) argv); 123 123 free(tmp); 124 124 -
uspace/app/bdsh/exec.h
ra634485 ra000878c 5 5 6 6 extern unsigned int try_exec(char *, char **); 7 7 8 #endif -
uspace/app/bdsh/scli.h
ra634485 ra000878c 6 6 7 7 typedef struct { 8 c har *name;8 const char *name; 9 9 char *line; 10 10 char *cwd;
Note:
See TracChangeset
for help on using the changeset viewer.
