Changeset 721d3a27 in mainline for uspace/app/bdsh/cmds/builtins
- 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/cmds/builtins
- Files:
-
- 1 added
- 1 edited
- 3 moved
Legend:
- Unmodified
- Added
- Removed
-
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 },
Note:
See TracChangeset
for help on using the changeset viewer.