source: rtems/cpukit/libmisc/shell/main_halt.c @ e4a3d93

4.104.115
Last change on this file since e4a3d93 was 67ae7bb6, checked in by Joel Sherrill <joel.sherrill@…>, on 04/14/09 at 13:41:33

Fix attribution.

  • Property mode set to 100644
File size: 962 bytes
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
24int rtems_shell_main_halt(
25  int   argc __attribute__((unused)),
26  char *argv[] __attribute__((unused))
27)
28{
29  exit(0);
30  return 0;
31}
32
33rtems_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.