4.104.115
Line | |
---|
1 | /* |
---|
2 | * Halt Command Implementation |
---|
3 | * |
---|
4 | * COPYRIGHT (c) 1989-2008. |
---|
5 | * On-Line Applications Research Corporation (OAR). |
---|
6 | * |
---|
7 | * The license and distribution terms for this file may be |
---|
8 | * found in the file LICENSE in this distribution or at |
---|
9 | * http://www.rtems.com/license/LICENSE. |
---|
10 | * |
---|
11 | * $Id$ |
---|
12 | */ |
---|
13 | |
---|
14 | #ifdef HAVE_CONFIG_H |
---|
15 | #include "config.h" |
---|
16 | #endif |
---|
17 | |
---|
18 | #include <stdlib.h> |
---|
19 | |
---|
20 | #include <rtems.h> |
---|
21 | #include <rtems/shell.h> |
---|
22 | #include "internal.h" |
---|
23 | |
---|
24 | int rtems_shell_main_halt( |
---|
25 | int argc __attribute__((unused)), |
---|
26 | char *argv[] __attribute__((unused)) |
---|
27 | ) |
---|
28 | { |
---|
29 | exit(0); |
---|
30 | return 0; |
---|
31 | } |
---|
32 | |
---|
33 | rtems_shell_cmd_t rtems_shell_HALT_Command = { |
---|
34 | "halt", /* name */ |
---|
35 | "halt", /* usage */ |
---|
36 | "rtems", /* topic */ |
---|
37 | rtems_shell_main_halt, /* command */ |
---|
38 | NULL, /* alias */ |
---|
39 | NULL /* next */ |
---|
40 | }; |
---|
Note: See
TracBrowser
for help on using the repository browser.