source: rtems/cpukit/libmisc/shell/main_logoff.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: 1.0 KB
Line 
1/*
2 *  LOGOFF Shell Command Implmentation
3 *
4 *  Author: Fernando RUIZ CASAS
5 *  Work: fernando.ruiz@ctv.es
6 *  Home: correo@fernando-ruiz.com
7 *
8 *  The license and distribution terms for this file may be
9 *  found in the file LICENSE in this distribution or at
10 *  http://www.rtems.org/license/LICENSE.
11 */
12
13#ifdef HAVE_CONFIG_H
14#include "config.h"
15#endif
16
17#include <stdio.h>
18
19#include <rtems.h>
20#include <rtems/shell.h>
21#include "internal.h"
22
23static int rtems_shell_main_logoff(
24  int   argc __attribute__((unused)),
25  char *argv[] __attribute__((unused))
26)
27{
28  printf("logoff from the system...");
29
30  rtems_current_shell_env->exit_shell = true;
31
32  return 0;
33}
34
35rtems_shell_cmd_t rtems_shell_LOGOFF_Command = {
36  "logoff",                                  /* name */
37  "logoff from the system",                  /* usage */
38  "misc",                                    /* topic */
39  rtems_shell_main_logoff,                   /* command */
40  NULL,                                      /* alias */
41  NULL                                       /* next */
42};
Note: See TracBrowser for help on using the repository browser.