From 81fe123040b53490b239b3d2abc8cc93d6d462ae Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Tue, 29 Jul 2003 06:38:40 +0000 Subject: 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). --- shell/cmdedit.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'shell/cmdedit.c') diff --git a/shell/cmdedit.c b/shell/cmdedit.c index 717067267..0ab195803 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 * * Used ideas: * Adam Rogoyski * Dave Cinege * Jakub Jelinek (c) 1995 - * Erik Andersen (Majorly adjusted for busybox) + * Erik Andersen (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'); -- cgit v1.2.3