Changeset cbd1e87 in rtems
- Timestamp:
- Apr 14, 2009, 8:50:03 AM (12 years ago)
- Branches:
- 4.10, 4.11, 5, master
- Children:
- 7dad664
- Parents:
- 1cb5aa14
- Location:
- cpukit
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/ChangeLog
r1cb5aa14 rcbd1e87 1 2009-04-03 Sebastian Huber <sebastian.huber@embedded-brains.de> 2 3 * libnetworking/lib/ftpfs.c: Fixed return codes of open handler. 4 Request reply after data write connection close. 5 1 6 2009-04-02 Ralf Corsépius <ralfcorsepius@rtems.org> 2 7 -
cpukit/libmisc/shell/login_check.c
r1cb5aa14 rcbd1e87 1 1 /** 2 2 * @file 3 *4 * @author Sebastian Huber <sebastian.huber@embedded-brains.de>5 3 * 6 4 * @brief Shell login check function. … … 8 6 9 7 /* 10 * Copyright (c) 2009 11 * Embedded Brains GmbH 8 * Copyright (c) 2009 embedded brains GmbH and others. 9 * 10 * embedded brains GmbH 12 11 * Obere Lagerstr. 30 13 12 * D-82178 Puchheim 14 13 * Germany 15 * rtems@embedded-brains.de14 * <rtems@embedded-brains.de> 16 15 * 17 * Based on work from Chris Johns, Fernando Ruiz and Till Straumann. 16 * Based on work from Chris Johns and Fernando Ruiz. 17 * 18 * Derived from file "cpukit/libmisc/shell/shell.c". 18 19 * 19 20 * The license and distribution terms for this file may be … … 26 27 #include <pwd.h> 27 28 28 #include <rtems/login.h>29 29 #include <rtems/shell.h> 30 30 #include <rtems/userenv.h> -
cpukit/libmisc/shell/login_prompt.c
r1cb5aa14 rcbd1e87 2 2 * @file 3 3 * 4 * @author Sebastian Huber <sebastian.huber@embedded-brains.de>5 *6 4 * @brief Shell login prompt functions. 7 5 */ 8 6 9 7 /* 10 * Copyright (c) 2009 8 * Authorship 9 * ---------- 10 * Parts of this software was created by 11 * Till Straumann <strauman@slac.stanford.edu>, 2003-2007 12 * Stanford Linear Accelerator Center, Stanford University. 13 * 14 * Acknowledgement of sponsorship 15 * ------------------------------ 16 * Parts of this software was produced by 17 * the Stanford Linear Accelerator Center, Stanford University, 18 * under Contract DE-AC03-76SFO0515 with the Department of Energy. 19 * 20 * Government disclaimer of liability 21 * ---------------------------------- 22 * Neither the United States nor the United States Department of Energy, 23 * nor any of their employees, makes any warranty, express or implied, or 24 * assumes any legal liability or responsibility for the accuracy, 25 * completeness, or usefulness of any data, apparatus, product, or process 26 * disclosed, or represents that its use would not infringe privately owned 27 * rights. 28 * 29 * Stanford disclaimer of liability 30 * -------------------------------- 31 * Stanford University makes no representations or warranties, express or 32 * implied, nor assumes any liability for the use of this software. 33 * 34 * Stanford disclaimer of copyright 35 * -------------------------------- 36 * Stanford University, owner of the copyright, hereby disclaims its 37 * copyright and all other rights in this software. Hence, anyone may 38 * freely use it for any purpose without restriction. 39 * 40 * Maintenance of notices 41 * ---------------------- 42 * In the interest of clarity regarding the origin and status of this 43 * SLAC software, this and all the preceding Stanford University notices 44 * are to remain affixed to any copy or derivative of this software made 45 * or distributed by the recipient and are to be affixed to any copy of 46 * software made or distributed by the recipient that contains a copy or 47 * derivative of this software. 48 * 49 * ------------------ SLAC Software Notices, Set 4 OTT.002a, 2004 FEB 03 50 * 51 * Copyright (c) 2009 embedded brains GmbH and others. 52 * 11 53 * embedded brains GmbH 12 54 * Obere Lagerstr. 30 … … 17 59 * Based on work from Chris Johns, Fernando Ruiz and Till Straumann. 18 60 * 61 * Derived from files "cpukit/libmisc/shell/shell.c" and 62 * "cpukit/telnetd/check_passwd.c". 63 * 19 64 * The license and distribution terms for this file may be 20 65 * found in the file LICENSE in this distribution or at … … 27 72 #include <ctype.h> 28 73 29 #include <rtems/ login.h>74 #include <rtems/shell.h> 30 75 31 76 static int rtems_shell_discard( int c, FILE *stream) … … 111 156 FILE *out, 112 157 const char *device, 113 rtems_ login_checkcheck158 rtems_shell_login_check_t check 114 159 ) 115 160 { -
cpukit/libmisc/shell/shell.c
r1cb5aa14 rcbd1e87 847 847 848 848 /* ----------------------------------------------- */ 849 static rtems_status_code 850 const char 851 size_t 852 rtems_task_priority 853 const char 854 bool 855 bool 856 const char 857 const char 858 bool 859 rtems_id 860 bool 861 rtems_ login_checklogin_check849 static rtems_status_code rtems_shell_run ( 850 const char *task_name, 851 size_t task_stacksize, 852 rtems_task_priority task_priority, 853 const char *devname, 854 bool forever, 855 bool wait, 856 const char *input, 857 const char *output, 858 bool output_append, 859 rtems_id wake_on_end, 860 bool echo, 861 rtems_shell_login_check_t login_check 862 862 ) 863 863 { … … 921 921 922 922 rtems_status_code rtems_shell_init( 923 const char 924 size_t 925 rtems_task_priority 926 const char 927 bool 928 bool 929 rtems_ login_checklogin_check923 const char *task_name, 924 size_t task_stacksize, 925 rtems_task_priority task_priority, 926 const char *devname, 927 bool forever, 928 bool wait, 929 rtems_shell_login_check_t login_check 930 930 ) 931 931 { -
cpukit/libmisc/shell/shell.h
r1cb5aa14 rcbd1e87 25 25 #include <rtems/fs.h> 26 26 #include <rtems/libio.h> 27 #include <rtems/login.h>28 27 29 28 #ifdef __cplusplus … … 56 55 #define RTEMS_SHELL_KEYS_F10 (17) 57 56 57 typedef bool (*rtems_shell_login_check_t)( 58 const char * /* user */, 59 const char * /* passphrase */ 60 ); 61 62 bool rtems_shell_login_prompt( 63 FILE *in, 64 FILE *out, 65 const char *device, 66 rtems_shell_login_check_t check 67 ); 68 69 bool rtems_shell_login_check( 70 const char *user, 71 const char *passphrase 72 ); 73 58 74 typedef int (*rtems_shell_command_t)(int argc, char **argv); 59 75 … … 134 150 */ 135 151 rtems_status_code rtems_shell_init( 136 const char 137 size_t task_stacksize, /* 0 default*/138 rtems_task_priority 139 const char 140 bool 141 bool 142 rtems_ login_checklogin_check152 const char *task_name, 153 size_t task_stacksize, 154 rtems_task_priority task_priority, 155 const char *devname, 156 bool forever, 157 bool wait, 158 rtems_shell_login_check_t login_check 143 159 ); 144 160 … … 173 189 int rtems_shell_str2int(const char * s); 174 190 175 typedef struct 176 rtems_name 177 const char 178 const char 191 typedef struct { 192 rtems_name magic; /* 'S','E','N','V': Shell Environment */ 193 const char *devname; 194 const char *taskname; 179 195 /* user extensions */ 180 bool 181 bool 182 int 183 bool 184 char cwd[256];185 const char 186 const char 187 bool 188 rtems_id 189 rtems_ login_checklogin_check;196 bool exit_shell; /* logout */ 197 bool forever; /* repeat login */ 198 int errorlevel; 199 bool echo; 200 char cwd [256]; 201 const char *input; 202 const char *output; 203 bool output_append; 204 rtems_id wake_on_end; 205 rtems_shell_login_check_t login_check; 190 206 } rtems_shell_env_t; 191 207 -
cpukit/telnetd/check_passwd.c
r1cb5aa14 rcbd1e87 45 45 * ------------------ SLAC Software Notices, Set 4 OTT.002a, 2004 FEB 03 46 46 * 47 * Copyright (c) 2009 47 * Copyright (c) 2009 embedded brains GmbH and others. 48 * 48 49 * embedded brains GmbH 49 50 * Obere Lagerstr. 30 … … 51 52 * Germany 52 53 * <rtems@embedded-brains.de> 53 *54 * Modified by Sebastian Huber <sebastian.huber@embedded-brains.de>.55 54 * 56 55 * The license and distribution terms for this file may be -
cpukit/telnetd/telnetd.c
r1cb5aa14 rcbd1e87 24 24 * program. 25 25 * 26 * Copyright (c) 2009 26 * Copyright (c) 2009 embedded brains GmbH and others. 27 * 27 28 * embedded brains GmbH 28 29 * Obere Lagerstr. 30 … … 30 31 * Germany 31 32 * <rtems@embedded-brains.de> 32 *33 * Modified by Sebastian Huber <sebastian.huber@embedded-brains.de>.34 33 * 35 34 * The license and distribution terms for this file may be -
cpukit/telnetd/telnetd.h
r1cb5aa14 rcbd1e87 4 4 * Reworked by Till Straumann and .h overhauled by Joel Sherrill. 5 5 * 6 * Copyright (c) 2009 6 * Copyright (c) 2009 embedded brains GmbH and others. 7 * 7 8 * embedded brains GmbH 8 9 * Obere Lagerstr. 30 … … 10 11 * Germany 11 12 * <rtems@embedded-brains.de> 12 *13 * Modified by Sebastian Huber <sebastian.huber@embedded-brains.de>.14 13 * 15 14 * The license and distribution terms for this file may be … … 24 23 25 24 #include <rtems.h> 26 #include <rtems/ login.h>25 #include <rtems/shell.h> 27 26 28 27 #ifdef __cplusplus … … 78 77 * Method used for login checks. Use @c NULL to disable a login check. 79 78 */ 80 rtems_ login_checklogin_check;79 rtems_shell_login_check_t login_check; 81 80 82 81 /**
Note: See TracChangeset
for help on using the changeset viewer.