Changeset cbd1e87 in rtems


Ignore:
Timestamp:
Apr 14, 2009, 8:50:03 AM (11 years ago)
Author:
Thomas Doerfler <Thomas.Doerfler@…>
Branches:
4.10, 4.11, master
Children:
7dad664
Parents:
1cb5aa14
Message:

adapt copyright statements

Location:
cpukit
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r1cb5aa14 rcbd1e87  
     12009-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
    162009-04-02      Ralf Corsépius <ralfcorsepius@rtems.org>
    27
  • cpukit/libmisc/shell/login_check.c

    r1cb5aa14 rcbd1e87  
    11/**
    22 * @file
    3  *
    4  * @author Sebastian Huber <sebastian.huber@embedded-brains.de>
    53 *
    64 * @brief Shell login check function.
     
    86
    97/*
    10  * Copyright (c) 2009
    11  * Embedded Brains GmbH
     8 * Copyright (c) 2009 embedded brains GmbH and others.
     9 *
     10 * embedded brains GmbH
    1211 * Obere Lagerstr. 30
    1312 * D-82178 Puchheim
    1413 * Germany
    15  * rtems@embedded-brains.de
     14 * <rtems@embedded-brains.de>
    1615 *
    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".
    1819 *
    1920 * The license and distribution terms for this file may be
     
    2627#include <pwd.h>
    2728
    28 #include <rtems/login.h>
    2929#include <rtems/shell.h>
    3030#include <rtems/userenv.h>
  • cpukit/libmisc/shell/login_prompt.c

    r1cb5aa14 rcbd1e87  
    22 * @file
    33 *
    4  * @author Sebastian Huber <sebastian.huber@embedded-brains.de>
    5  *
    64 * @brief Shell login prompt functions.
    75 */
    86
    97/*
    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 *
    1153 * embedded brains GmbH
    1254 * Obere Lagerstr. 30
     
    1759 * Based on work from Chris Johns, Fernando Ruiz and Till Straumann.
    1860 *
     61 * Derived from files "cpukit/libmisc/shell/shell.c" and
     62 * "cpukit/telnetd/check_passwd.c".
     63 *
    1964 * The license and distribution terms for this file may be
    2065 * found in the file LICENSE in this distribution or at
     
    2772#include <ctype.h>
    2873
    29 #include <rtems/login.h>
     74#include <rtems/shell.h>
    3075
    3176static int rtems_shell_discard( int c, FILE *stream)
     
    111156  FILE *out,
    112157  const char *device,
    113   rtems_login_check check
     158  rtems_shell_login_check_t check
    114159)
    115160{
  • cpukit/libmisc/shell/shell.c

    r1cb5aa14 rcbd1e87  
    847847
    848848/* ----------------------------------------------- */
    849 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_login_check    login_check
     849static 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
    862862)
    863863{
     
    921921
    922922rtems_status_code rtems_shell_init(
    923   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_login_check    login_check
     923  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
    930930)
    931931{
  • cpukit/libmisc/shell/shell.h

    r1cb5aa14 rcbd1e87  
    2525#include <rtems/fs.h>
    2626#include <rtems/libio.h>
    27 #include <rtems/login.h>
    2827
    2928#ifdef __cplusplus
     
    5655#define RTEMS_SHELL_KEYS_F10         (17)
    5756
     57typedef bool (*rtems_shell_login_check_t)(
     58  const char * /* user */,
     59  const char * /* passphrase */
     60);
     61
     62bool rtems_shell_login_prompt(
     63  FILE *in,
     64  FILE *out,
     65  const char *device,
     66  rtems_shell_login_check_t check
     67);
     68
     69bool rtems_shell_login_check(
     70  const char *user,
     71  const char *passphrase
     72);
     73
    5874typedef int (*rtems_shell_command_t)(int argc, char **argv);
    5975
     
    134150 */
    135151rtems_status_code rtems_shell_init(
    136   const char          *task_name,
    137   size_t               task_stacksize,  /* 0 default*/
    138   rtems_task_priority  task_priority,
    139   const char          *devname,
    140   bool                 forever,
    141   bool                 wait,
    142   rtems_login_check    login_check
     152  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
    143159);
    144160
     
    173189int rtems_shell_str2int(const char * s);
    174190
    175 typedef struct  {
    176   rtems_name         magic; /* 'S','E','N','V': Shell Environment */
    177   const char        *devname;
    178   const char        *taskname;
     191typedef struct {
     192  rtems_name magic; /* 'S','E','N','V': Shell Environment */
     193  const char *devname;
     194  const char *taskname;
    179195  /* user extensions */
    180   bool               exit_shell; /* logout */
    181   bool               forever; /* repeat login */
    182   int                errorlevel;
    183   bool               echo;
    184   char               cwd[256];
    185   const char        *input;
    186   const char        *output;
    187   bool               output_append;
    188   rtems_id           wake_on_end;
    189   rtems_login_check login_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;
    190206} rtems_shell_env_t;
    191207
  • cpukit/telnetd/check_passwd.c

    r1cb5aa14 rcbd1e87  
    4545 * ------------------ SLAC Software Notices, Set 4 OTT.002a, 2004 FEB 03
    4646 *
    47  * Copyright (c) 2009
     47 * Copyright (c) 2009 embedded brains GmbH and others.
     48 *
    4849 * embedded brains GmbH
    4950 * Obere Lagerstr. 30
     
    5152 * Germany
    5253 * <rtems@embedded-brains.de>
    53  *
    54  * Modified by Sebastian Huber <sebastian.huber@embedded-brains.de>.
    5554 *
    5655 * The license and distribution terms for this file may be
  • cpukit/telnetd/telnetd.c

    r1cb5aa14 rcbd1e87  
    2424 *    program.
    2525 *
    26  * Copyright (c) 2009
     26 * Copyright (c) 2009 embedded brains GmbH and others.
     27 *
    2728 * embedded brains GmbH
    2829 * Obere Lagerstr. 30
     
    3031 * Germany
    3132 * <rtems@embedded-brains.de>
    32  *
    33  * Modified by Sebastian Huber <sebastian.huber@embedded-brains.de>.
    3433 *
    3534 * The license and distribution terms for this file may be
  • cpukit/telnetd/telnetd.h

    r1cb5aa14 rcbd1e87  
    44 *  Reworked by Till Straumann and .h overhauled by Joel Sherrill.
    55 *
    6  * Copyright (c) 2009
     6 * Copyright (c) 2009 embedded brains GmbH and others.
     7 *
    78 * embedded brains GmbH
    89 * Obere Lagerstr. 30
     
    1011 * Germany
    1112 * <rtems@embedded-brains.de>
    12  *
    13  * Modified by Sebastian Huber <sebastian.huber@embedded-brains.de>.
    1413 *
    1514 * The license and distribution terms for this file may be
     
    2423
    2524#include <rtems.h>
    26 #include <rtems/login.h>
     25#include <rtems/shell.h>
    2726
    2827#ifdef __cplusplus
     
    7877   * Method used for login checks.  Use @c NULL to disable a login check.
    7978   */
    80   rtems_login_check login_check;
     79  rtems_shell_login_check_t login_check;
    8180
    8281  /**
Note: See TracChangeset for help on using the changeset viewer.