summaryrefslogtreecommitdiff
path: root/shell/cmdedit.c
diff options
context:
space:
mode:
authorEric Andersen2003-07-29 06:38:40 +0000
committerEric Andersen2003-07-29 06:38:40 +0000
commit81fe123040b53490b239b3d2abc8cc93d6d462ae (patch)
treec3f501afd6305ff9415e5a9ab5e371d7fc2db101 /shell/cmdedit.c
parent9cdef5d9286839a0b787c25f41633508f8623765 (diff)
downloadbusybox-81fe123040b53490b239b3d2abc8cc93d6d462ae.zip
busybox-81fe123040b53490b239b3d2abc8cc93d6d462ae.tar.gz
Vladimir N. Oleynik writes:
Last patch have synced form Manuel Nova III xxreadtoken() function, corrected (C) form dash debian/copyright, removed my small mistake with IFS_BROKEN (thanks by Herbert), and synced cmdedit.c from current CVS (removed libc5 support, your email correction, my (C) year corertion).
Diffstat (limited to 'shell/cmdedit.c')
-rw-r--r--shell/cmdedit.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/shell/cmdedit.c b/shell/cmdedit.c
index 7170672..0ab1958 100644
--- a/shell/cmdedit.c
+++ b/shell/cmdedit.c
@@ -2,14 +2,14 @@
/*
* Termios command line History and Editting.
*
- * Copyright (c) 1986-2001 may safely be consumed by a BSD or GPL license.
+ * Copyright (c) 1986-2003 may safely be consumed by a BSD or GPL license.
* Written by: Vladimir Oleynik <dzo@simtreas.ru>
*
* Used ideas:
* Adam Rogoyski <rogoyski@cs.utexas.edu>
* Dave Cinege <dcinege@psychosis.com>
* Jakub Jelinek (c) 1995
- * Erik Andersen <andersee@debian.org> (Majorly adjusted for busybox)
+ * Erik Andersen <andersen@codepoet.org> (Majorly adjusted for busybox)
*
* This code is 'as is' with no warranty.
*
@@ -163,11 +163,6 @@ static int my_gid;
#endif /* CONFIG_FEATURE_COMMAND_TAB_COMPLETION */
-/* It seems that libc5 doesn't know what a sighandler_t is... */
-#if (__GLIBC__ <= 2) && (__GLIBC_MINOR__ < 1)
-typedef void (*sighandler_t) (int);
-#endif
-
static void cmdedit_setwidth(int w, int redraw_flg);
static void win_changed(int nsig)
@@ -264,6 +259,7 @@ static inline void out1str(const char *s)
if ( s )
fputs(s, stdout);
}
+
static inline void beep(void)
{
putchar('\007');