Changeset 26597fc1 in rtems


Ignore:
Timestamp:
Dec 4, 2011, 9:39:44 AM (7 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.11, master
Children:
9cfd222
Parents:
3cada05b
Message:

2011-12-04 Ralf Corsépius <ralf.corsepius@…>

  • libmisc/shell/cat_file.c: #include <rtems/shell.h>.
  • libmisc/shell/filemode.c: #include "internal.h".
  • libmisc/shell/shell.h: Declare functions "extern".
Location:
cpukit
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r3cada05b r26597fc1  
    112011-12-04      Ralf Corsépius <ralf.corsepius@rtems.org>
    22
     3        * libmisc/shell/cat_file.c: #include <rtems/shell.h>.
     4        * libmisc/shell/filemode.c: #include "internal.h".
     5        * libmisc/shell/shell.h: Declare functions "extern".
    36        * libmisc/shell/shell_cmdset.c: Remove superflous casts.
    47
  • cpukit/libmisc/shell/cat_file.c

    r3cada05b r26597fc1  
    1818
    1919#include <stdio.h>
     20#include <rtems/shell.h>
    2021
    2122int rtems_shell_cat_file(FILE * out,const char * name) {
  • cpukit/libmisc/shell/filemode.c

    r3cada05b r26597fc1  
    4141#include <sys/stat.h>
    4242#include <string.h>
     43
     44#include "internal.h"
    4345
    4446void
  • cpukit/libmisc/shell/shell.h

    r3cada05b r26597fc1  
    6161);
    6262
    63 bool rtems_shell_login_prompt(
     63extern bool rtems_shell_login_prompt(
    6464  FILE *in,
    6565  FILE *out,
     
    6868);
    6969
    70 bool rtems_shell_login_check(
     70extern bool rtems_shell_login_check(
    7171  const char *user,
    7272  const char *passphrase
     
    9696 * is extended, ie a special key.
    9797 */
    98 unsigned int rtems_shell_getchar(FILE *in);
    99 
    100 rtems_shell_cmd_t * rtems_shell_lookup_cmd(const char *cmd);
    101 
    102 rtems_shell_cmd_t *rtems_shell_add_cmd_struct(
     98extern unsigned int rtems_shell_getchar(FILE *in);
     99
     100extern rtems_shell_cmd_t * rtems_shell_lookup_cmd(const char *cmd);
     101
     102extern rtems_shell_cmd_t *rtems_shell_add_cmd_struct(
    103103  rtems_shell_cmd_t *shell_cmd
    104104);
     
    111111);
    112112
    113 rtems_shell_cmd_t * rtems_shell_alias_cmd(
     113extern rtems_shell_cmd_t * rtems_shell_alias_cmd(
    114114  const char *cmd,
    115115  const char *alias
    116116);
    117117
    118 int rtems_shell_make_args(
     118extern int rtems_shell_make_args(
    119119  char  *commandLine,
    120120  int   *argc_p,
     
    123123);
    124124
    125 int rtems_shell_cat_file(
     125extern int rtems_shell_cat_file(
    126126  FILE *out,
    127127  const char *name
    128128);
    129129
    130 void rtems_shell_write_file(
     130extern void rtems_shell_write_file(
    131131  const char *name,
    132132  const char *content
    133133);
    134134
    135 int rtems_shell_script_file(
     135extern int rtems_shell_script_file(
    136136  int    argc,
    137137  char **argv
     
    150150 *
    151151 */
    152 rtems_status_code rtems_shell_init(
     152extern rtems_status_code rtems_shell_init(
    153153  const char *task_name,
    154154  size_t task_stacksize,
     
    173173 * @param wait Wait for the script to finish.
    174174 */
    175 rtems_status_code rtems_shell_script(
     175extern rtems_status_code rtems_shell_script(
    176176  const char          *task_name,
    177177  size_t               task_stacksize,  /* 0 default*/
     
    251251 *        by the user.
    252252 */
    253 void rtems_shell_get_prompt(
     253extern void rtems_shell_get_prompt(
    254254  rtems_shell_env_t *shell_env,
    255255  char              *prompt,
     
    265265 * @param[in] options Special file system options.
    266266 */
    267 int rtems_shell_libc_mounter(
     267extern int rtems_shell_libc_mounter(
    268268  const char*                driver,
    269269  const char*                path,
     
    277277 * @param[in] fs The file system mount data.
    278278 */
    279 void rtems_shell_mount_add_fsys(rtems_shell_filesystems_t* fs);
     279extern void rtems_shell_mount_add_fsys(rtems_shell_filesystems_t* fs);
    280280
    281281/**
     
    284284 * @param[in] fs The file system mount data to remove.
    285285 */
    286 void rtems_shell_mount_del_fsys(rtems_shell_filesystems_t* fs);
     286extern void rtems_shell_mount_del_fsys(rtems_shell_filesystems_t* fs);
    287287
    288288typedef void (*rtems_shell_wait_for_input_notification)(
     
    299299 * @retval RTEMS_UNSATISFIED Cannot change or restore termios attributes.
    300300 */
    301 rtems_status_code rtems_shell_wait_for_input(
     301extern rtems_status_code rtems_shell_wait_for_input(
    302302  int fd,
    303303  int timeout_in_seconds,
Note: See TracChangeset for help on using the changeset viewer.