Changeset 721d3a27 in mainline
- Timestamp:
- 2009-01-22T07:39:43Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- fc11b8a
- Parents:
- 491af07
- Location:
- uspace/app/bdsh
- Files:
-
- 1 added
- 1 deleted
- 3 edited
- 3 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/Makefile
r491af07 r721d3a27 58 58 cmds/modules/ \ 59 59 cmds/modules/help/ \ 60 cmds/modules/quit/ \61 60 cmds/modules/mkdir/ \ 62 61 cmds/modules/rm/ \ … … 68 67 cmds/modules/cp/ \ 69 68 cmds/builtins/ \ 69 cmds/builtins/exit/\ 70 70 cmds/builtins/cd/ 71 71 72 72 SOURCES = \ 73 73 cmds/modules/help/help.c \ 74 cmds/modules/quit/quit.c \75 74 cmds/modules/mkdir/mkdir.c \ 76 75 cmds/modules/rm/rm.c \ … … 81 80 cmds/modules/sleep/sleep.c \ 82 81 cmds/modules/cp/cp.c \ 82 cmds/builtins/exit/exit.c \ 83 83 cmds/builtins/cd/cd.c \ 84 84 cmds/mod_cmds.c \ -
uspace/app/bdsh/cmds/builtins/builtins.h
r491af07 r721d3a27 5 5 6 6 #include "cd/entry.h" 7 #include "exit/entry.h" 7 8 8 9 builtin_t builtins[] = { 9 10 #include "cd/cd_def.h" 11 #include "exit/exit_def.h" 10 12 {NULL, NULL, NULL, NULL} 11 13 }; -
uspace/app/bdsh/cmds/builtins/exit/exit.c
r491af07 r721d3a27 32 32 #include <stdlib.h> 33 33 #include "entry.h" 34 #include " quit.h"34 #include "exit.h" 35 35 #include "cmds.h" 36 36 37 static c har *cmdname = "exit";37 static const char *cmdname = "exit"; 38 38 39 39 extern volatile unsigned int cli_quit; 40 40 extern const char *progname; 41 41 42 void help_cmd_ quit(unsigned int level)42 void help_cmd_exit(unsigned int level) 43 43 { 44 44 printf("Type `%s' to exit %s\n", cmdname, progname); … … 48 48 /* Quits the program and returns the status of whatever command 49 49 * came before invoking 'quit' */ 50 int cmd_ quit(char *argv[])50 int cmd_exit(char *argv[], cliuser_t *usr) 51 51 { 52 52 /* Inform that we're outta here */ -
uspace/app/bdsh/cmds/builtins/exit/exit.h
r491af07 r721d3a27 1 #ifndef QUIT_H2 #define QUIT_H1 #ifndef EXIT_H 2 #define EXIT_H 3 3 4 4 /* Prototypes for the quit command (excluding entry points) */ -
uspace/app/bdsh/cmds/builtins/exit/exit_def.h
r491af07 r721d3a27 2 2 "exit", 3 3 "Exit the shell", 4 &cmd_ quit,5 &help_cmd_ quit,4 &cmd_exit, 5 &help_cmd_exit, 6 6 }, -
uspace/app/bdsh/cmds/modules/modules.h
r491af07 r721d3a27 19 19 20 20 #include "help/entry.h" 21 #include "quit/entry.h"22 21 #include "mkdir/entry.h" 23 22 #include "rm/entry.h" … … 35 34 module_t modules[] = { 36 35 #include "help/help_def.h" 37 #include "quit/quit_def.h"38 36 #include "mkdir/mkdir_def.h" 39 37 #include "rm/rm_def.h"
Note:
See TracChangeset
for help on using the changeset viewer.