Home | History | Annotate | Download | only in csh
History log of /src/bin/csh/file.c
RevisionDateAuthorComments
 1.34  24-Apr-2024  nia csh: replace malloc(x * y) and realloc(x * y) with reallocarray
 1.33  29-Sep-2020  msaitoh s/occurence/occurrence/
 1.32  05-Jan-2019  christos Welcome to the 21th century csh: retire "ptr_t" now that we have "void *"
 1.31  05-Jan-2019  maya Remove Free, s/xfree/free/.

Standard C says that free should be a no-op for a NULL pointer, so
we don't need an extra function to do this.

While here, add an XXX about a wrong sounding comment
 1.30  16-Jul-2013  christos branches: 1.30.26; 1.30.28;
WARNS=6 [-Wconversion]
 1.29  24-Sep-2011  christos branches: 1.29.2; 1.29.8;
csh has no business using TTYHOG
 1.28  14-Feb-2009  lukem fix -Wsign-compare issues
 1.27  16-Jul-2007  christos branches: 1.27.20;
no need to have cshbool; just make them int
 1.26  16-Jul-2007  christos PR/36650: Michael van Elst: Get rid of bool, because csh uses bool as a small
int.
 1.25  16-Jul-2007  dogcow Rename bool -> cshbool; despite the name, bool actually holds values other
than 0 or 1. Fixes PR/36650.
 1.24  24-Apr-2006  snj It's "its."
 1.23  07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22249, verified by myself.
 1.22  08-Feb-2003  christos remove maxitems limit (from Todd Miller)
 1.21  16-Jan-2003  kleink Rename `sigset' locals to avoid symbol shadowing warning.
 1.20  12-Aug-2002  itojun calloc() arg mistake. it's (nelem, size). from openbsd
 1.19  25-May-2002  wiz __STDC__ is always defined on NetBSD.
 1.18  14-Sep-2001  wiz ANSIfication and KNF improvements by Petri Koistinen in bin/13689,
with some fixes by me.
 1.17  31-May-2000  christos decouple us from stdio's BUFSIZ and boost BUFSIZE to 4K
 1.16  23-Mar-1999  itohy branches: 1.16.8;
cleanup
 1.15  26-Dec-1998  itohy Fixed ancient bug in csh(1) "filec" implementation.
We need not wait for a while any longer after pressing ESC or ^D.

Problem description:
If a user types characters during performing completion (ESC)
or listings (^D), the chars are inserted at weird position of
the command line.
This makes the command line unusable and irritates the user.
I noticed this on 386BSD(98), probably six years ago.

This change fixes the bug by implementing salvage of the characters.
The salvaged chars are added at the end of the command line.
An extra ioctl(FIONREAD) is required to work-around a glitch on
kernel tty driver.
 1.14  28-Jul-1998  mycroft Delint (partially).
 1.13  04-Jul-1997  christos Rename err.h to errnum.h to avoid collision with err.h
Fix compiler warnings.
 1.12  13-Jan-1997  tls kill register
 1.11  08-Nov-1996  christos Fix bug reported by Chris Torek: use TCSADRAIN instead of TCSANOW, to avoid
dropping characters.
 1.10  21-Mar-1995  mycroft Use POSIX signals.
 1.9  21-Mar-1995  cgd convert to new RCS id conventions.
 1.8  21-Sep-1994  mycroft Merge 4.4-Lite version.
 1.7  28-Apr-1994  pk Use TCSADRAIN to avoid loosing chars on slow lines.
 1.6  09-Mar-1994  cgd tchars needn't be static any more
 1.5  07-Mar-1994  cgd i'm surprised this ever worked right before...
 1.4  01-Aug-1993  mycroft Add RCS identifiers.
 1.3  23-Mar-1993  cgd changed "Id" to "Header" for rcsids
 1.2  22-Mar-1993  cgd added rcs ids to all files
 1.1  21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2  20-Sep-1994  mycroft Import original 4.4-Lite version.
 1.1.1.1  21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.16.8.1  22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.27.20.1  13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.29.8.1  19-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.29.2.1  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.30.28.3  21-Apr-2020  martin Ooops, restore accidently removed files from merge mishap
 1.30.28.2  21-Apr-2020  martin Sync with HEAD
 1.30.28.1  10-Jun-2019  christos Sync with HEAD
 1.30.26.1  18-Jan-2019  pgoyette Synch with HEAD

RSS XML Feed