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

4.115
Last change on this file since c499856 was c499856, checked in by Chris Johns <chrisj@…>, on 03/20/14 at 21:10:47

Change all references of rtems.com to rtems.org.

  • Property mode set to 100644
File size: 957 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.org/license/LICENSE.
10 */
11
12#ifdef HAVE_CONFIG_H
13#include "config.h"
14#endif
15
16#include <stdlib.h>
17
18#include <rtems.h>
19#include <rtems/shell.h>
20#include "internal.h"
21
22static int rtems_shell_main_halt(
23  int   argc __attribute__((unused)),
24  char *argv[] __attribute__((unused))
25)
26{
27  exit(0);
28  return 0;
29}
30
31rtems_shell_cmd_t rtems_shell_HALT_Command = {
32  "halt",                                    /* name */
33  "halt",                                    /* usage */
34  "rtems",                                   /* topic */
35  rtems_shell_main_halt,                     /* command */
36  NULL,                                      /* alias */
37  NULL                                       /* next */
38};
Note: See TracBrowser for help on using the repository browser.