summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc/shell/login_prompt.c
diff options
context:
space:
mode:
authorThomas Doerfler <Thomas.Doerfler@embedded-brains.de>2009-04-14 08:50:03 +0000
committerThomas Doerfler <Thomas.Doerfler@embedded-brains.de>2009-04-14 08:50:03 +0000
commitcbd1e8799f8bcd3e083ba5a1affa8267461f256a (patch)
treec752009784973066cca83c8e10b1cc80bd77cee9 /cpukit/libmisc/shell/login_prompt.c
parentFixed return codes of open handler. (diff)
downloadrtems-cbd1e8799f8bcd3e083ba5a1affa8267461f256a.tar.bz2
adapt copyright statements
Diffstat (limited to 'cpukit/libmisc/shell/login_prompt.c')
-rw-r--r--cpukit/libmisc/shell/login_prompt.c55
1 files changed, 50 insertions, 5 deletions
diff --git a/cpukit/libmisc/shell/login_prompt.c b/cpukit/libmisc/shell/login_prompt.c
index fd347fb728..5701a579c2 100644
--- a/cpukit/libmisc/shell/login_prompt.c
+++ b/cpukit/libmisc/shell/login_prompt.c
@@ -1,13 +1,55 @@
/**
* @file
*
- * @author Sebastian Huber <sebastian.huber@embedded-brains.de>
- *
* @brief Shell login prompt functions.
*/
/*
- * Copyright (c) 2009
+ * Authorship
+ * ----------
+ * Parts of this software was created by
+ * Till Straumann <strauman@slac.stanford.edu>, 2003-2007
+ * Stanford Linear Accelerator Center, Stanford University.
+ *
+ * Acknowledgement of sponsorship
+ * ------------------------------
+ * Parts of this software was produced by
+ * the Stanford Linear Accelerator Center, Stanford University,
+ * under Contract DE-AC03-76SFO0515 with the Department of Energy.
+ *
+ * Government disclaimer of liability
+ * ----------------------------------
+ * Neither the United States nor the United States Department of Energy,
+ * nor any of their employees, makes any warranty, express or implied, or
+ * assumes any legal liability or responsibility for the accuracy,
+ * completeness, or usefulness of any data, apparatus, product, or process
+ * disclosed, or represents that its use would not infringe privately owned
+ * rights.
+ *
+ * Stanford disclaimer of liability
+ * --------------------------------
+ * Stanford University makes no representations or warranties, express or
+ * implied, nor assumes any liability for the use of this software.
+ *
+ * Stanford disclaimer of copyright
+ * --------------------------------
+ * Stanford University, owner of the copyright, hereby disclaims its
+ * copyright and all other rights in this software. Hence, anyone may
+ * freely use it for any purpose without restriction.
+ *
+ * Maintenance of notices
+ * ----------------------
+ * In the interest of clarity regarding the origin and status of this
+ * SLAC software, this and all the preceding Stanford University notices
+ * are to remain affixed to any copy or derivative of this software made
+ * or distributed by the recipient and are to be affixed to any copy of
+ * software made or distributed by the recipient that contains a copy or
+ * derivative of this software.
+ *
+ * ------------------ SLAC Software Notices, Set 4 OTT.002a, 2004 FEB 03
+ *
+ * Copyright (c) 2009 embedded brains GmbH and others.
+ *
* embedded brains GmbH
* Obere Lagerstr. 30
* D-82178 Puchheim
@@ -16,6 +58,9 @@
*
* Based on work from Chris Johns, Fernando Ruiz and Till Straumann.
*
+ * Derived from files "cpukit/libmisc/shell/shell.c" and
+ * "cpukit/telnetd/check_passwd.c".
+ *
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rtems.com/license/LICENSE.
@@ -26,7 +71,7 @@
#include <unistd.h>
#include <ctype.h>
-#include <rtems/login.h>
+#include <rtems/shell.h>
static int rtems_shell_discard( int c, FILE *stream)
{
@@ -110,7 +155,7 @@ bool rtems_shell_login_prompt(
FILE *in,
FILE *out,
const char *device,
- rtems_login_check check
+ rtems_shell_login_check_t check
)
{
int fd_in = fileno( in);