Changeset 0540498 in rtems


Ignore:
Timestamp:
Nov 18, 2009, 12:09:21 AM (10 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.10, 4.11, master
Children:
88db141
Parents:
ba955609
Message:

2009-11-18 Chris Johns <chrisj@…>

  • libmisc/shell/main_getenv.c, libmisc/shell/main_setenv.c, libmisc/shell/main_unsetenv.c: New. The shell can now play with environment variables.
  • libmisc/Makefile.am, libmisc/shell/shellconfig.h: Add setenv, getenv, and unsetenv to the shell.
Location:
cpukit
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    rba955609 r0540498  
     12009-11-18      Chris Johns <chrisj@rtems.org>
     2
     3        * libmisc/shell/main_getenv.c, libmisc/shell/main_setenv.c,
     4        libmisc/shell/main_unsetenv.c: New. The shell can now play with
     5        environment variables.
     6        * libmisc/Makefile.am, libmisc/shell/shellconfig.h: Add setenv,
     7        getenv, and unsetenv to the shell.
     8
    192009-11-17      Ralf Corsépius <ralf.corsepius@rtems.org>
    210
  • cpukit/libmisc/Makefile.am

    rba955609 r0540498  
    9696    shell/main_hexdump.c shell/hexdump-conv.c shell/hexdump-display.c \
    9797    shell/hexdump-odsyntax.c shell/hexdump-parse.c shell/hexsyntax.c \
    98     shell/main_time.c shell/main_mknod.c
     98    shell/main_time.c shell/main_mknod.c \
     99    shell/main_setenv.c shell/main_getenv.c shell/main_unsetenv.c
    99100
    100101if LIBNETWORKING
  • cpukit/libmisc/shell/shellconfig.h

    rba955609 r0540498  
    2424extern rtems_shell_cmd_t rtems_shell_TIME_Command;
    2525extern rtems_shell_cmd_t rtems_shell_LOGOFF_Command;
     26extern rtems_shell_cmd_t rtems_shell_SETENV_Command;
     27extern rtems_shell_cmd_t rtems_shell_GETENV_Command;
     28extern rtems_shell_cmd_t rtems_shell_UNSETENV_Command;
    2629
    2730extern rtems_shell_cmd_t rtems_shell_MDUMP_Command;
     
    195198        defined(CONFIGURE_SHELL_COMMAND_LOGOFF)
    196199      &rtems_shell_LOGOFF_Command,
     200    #endif
     201    #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
     202         !defined(CONFIGURE_SHELL_NO_COMMAND_SETENV)) || \
     203        defined(CONFIGURE_SHELL_COMMAND_SETENV)
     204      &rtems_shell_SETENV_Command,
     205    #endif
     206    #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
     207         !defined(CONFIGURE_SHELL_NO_COMMAND_GETENV)) || \
     208        defined(CONFIGURE_SHELL_COMMAND_GETENV)
     209      &rtems_shell_GETENV_Command,
     210    #endif
     211    #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
     212         !defined(CONFIGURE_SHELL_NO_COMMAND_CRLENV)) || \
     213        defined(CONFIGURE_SHELL_COMMAND_UNSETENV)
     214      &rtems_shell_UNSETENV_Command,
    197215    #endif
    198216
Note: See TracChangeset for help on using the changeset viewer.