Commit Graph

63 Commits

Author SHA1 Message Date
ache
14aed6ba2c Teach library about Home/End keys 2000-07-28 00:42:54 +00:00
ache
58cbd1f1a9 Fully preserve original tty settings outside of line edition mode. Old variant
preserve them only partially, so tty state becomes different after el_*
functions used.

PR:		20138
2000-07-28 00:07:40 +00:00
ache
792e42e270 Move terminal descriptor flush before stty to eliminate potential problems
whith characters conversion changed like \n -> \r\n and so on.
2000-07-27 23:58:35 +00:00
ache
8b6811d9df Fix temp. singnals blocking. Only one signal was blocked due to typo pasted
many times.
2000-07-26 23:46:28 +00:00
imp
7991116fc3 <blush> I tested the real code changes, but neglected to test the
insertion of $FreeBSD$.  I miffed it (pointy hat please).  Hopefully
no one will notice this short window where -current didn't compile.
2000-05-22 06:01:31 +00:00
imp
55727ce9fe Do not read editrc file from '.'. This can be as unsafe as having
. first in root's path.

While I'm here:
	o Add $FreeBSD$
	o Get errno from <errno.h>, but extern int errno.

Submitted by: Tim Vanderhoek
2000-05-22 05:55:22 +00:00
imp
df4cd41255 Make comment match code forgotten in last commit 2000-05-22 05:51:09 +00:00
imp
6a39058c79 Add $FreeBSD$ so I can commit:
Remove extern int errno;.  Instead include the ANSI <errno.h>.  No
functional changes, just a higher level of pedantry.
2000-05-22 05:49:31 +00:00
phantom
d5c9cf55bf Introduce .Lb macro to libedit manpage 2000-04-22 16:01:33 +00:00
marcel
e2a1f8fa67 Fix style bugs
Submitted by: bde
1999-10-03 10:41:40 +00:00
marcel
594e4a63a8 sigset_t change (part 5 of 5)
-----------------------------

Most of the userland changes are in libc. For both the alpha
and the i386 setjmp has been changed to accomodate for the
new sigset_t. Internally, libc is mostly rewritten to use the
new syscalls. The exception is in compat-43/sigcompat.c

The POSIX thread library has also been rewritten to use the
new sigset_t. Except, that it currently only handles NSIG
signals instead of the maximum _SIG_MAXSIG. This should not
be a problem because current applications don't use any
signals higher than NSIG.

There are version bumps for the following libraries:
  libdialog
  libreadline
  libc
  libc_r
  libedit
  libftpio
  libss

These libraries either a) have one of the modified structures
visible in the interface, or b) use sigset_t internally and
may cause breakage if new binaries are used against libraries
that don't have the sigset_t change. This not an immediate
issue, but will be as soon as applications start using the
new range to its fullest.

NOTE: libncurses already had an version bump and has not been
      given one now.

NOTE: doscmd is a real casualty and has been disconnected for
      the moment. Reconnection will eventually happen after
      doscmd has been fixed. I'm aware that being the last one
      to touch it, I'm automaticly promoted to being maintainer.
      According to good taste this means that I will receive a
      badge which either will be glued or mechanically stapled,
      drilled or otherwise violently forced onto me :-)

NOTE: pcvt/vttest cannot be compiled with -traditional. The
      change cause sys/types to be included along the way which
      contains the const and volatile modifiers. I don't consider
      this a solution, but more a workaround.
1999-09-29 15:18:46 +00:00
peter
e226894fa0 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
mdodd
40bd11e3bb Fix MLINKS.
Noticed by: Norman C. Rice <nrice@emu.sourcee.com>
1999-08-20 17:37:22 +00:00
mdodd
b7c3c4e3c5 Add 2 functions: el_data_set() and el_data_get() which do what you
would expect.  (Allow user data to be associated with an EditLine context).

As this changes no existing interfaces and doesn't alter any structs
visable to the user I've been told that its not necessary to bump
the version of the library.
1999-08-20 01:17:12 +00:00
nik
44f9c90d19 Add $Id$, to make it simpler for members of the translation teams to
track.

The $Id$ line is normally at the bottom of the main comment block in the
man page, separated from the rest of the manpage by an empty comment,
like so;

     .\"    $Id$
     .\"

If the immediately preceding comment is a @(#) format ID marker than the
the $Id$ will line up underneath it with no intervening blank lines.
Otherwise, an additional blank line is inserted.

Approved by:            bde
1999-07-12 20:50:10 +00:00
jdp
cdc7b4adbe Switch to using ".So" as the extension for PIC object files rather
than ".so".  The old extension conflicted with well-established
naming conventions for dynamically loadable modules.

The "clean" targets continue to remove ".so" files too, to deal with
old systems.
1999-01-09 21:51:00 +00:00
dfr
009e526b6c On the alpha, sizeof(char*) != sizeof(int) which was assumed in
term_init().  This is the cause of /usr/bin/ftp faulting on the alpha.

Submitted by: Hidetoshi Shimokawa <simokawa@sat.t.u-tokyo.ac.jp>
1998-11-30 10:12:03 +00:00
imp
c6419dc030 Replace memory leaking instances of realloc with non-leaking reallocf.
In some cases replace if (a == null) a = malloc(x); else a =
realloc(a, x); with simple reallocf(a, x).  Per ANSI-C, this is
guaranteed to be the same thing.

I've been running these on my system here w/o ill effects for some
time.  However, the CTM-express is at part 6 of 34 for the CAM
changes, so I've not been able to do a build world with the CAM in the
tree with these changes.  Shouldn't impact anything, but...
1998-09-16 04:17:47 +00:00
bde
cc4ea0741b Fixed print format errors. 1998-06-30 18:03:05 +00:00
brian
2c032044ee Fixes assorted problems with the history edit functions in libedit. This
affects sh, ftp (and others?).

Submitted by: Max Euston <meuston@jmrodgers.com>
PR:           6516
1998-06-27 16:10:40 +00:00
phk
306618399a Spelling fixes.
PR:		6903
Reviewed by:	phk
Submitted by:	Josh Gilliam <josh@quick.net>
1998-06-10 12:34:27 +00:00
jkoshy
93bb25d88b Spelling corrections.
PR: 6868
Submitted by: Josh Gilliam <josh@quick.net>
1998-06-06 05:50:53 +00:00
jkh
a1c6b2cb02 Don't use absolute path.
Submitted by:	jhay
1998-05-27 07:39:05 +00:00
charnier
46f7bb5b5b .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq 1998-03-19 07:34:22 +00:00
helbig
6dbdb23803 Don't swap carriage return and new line in quoted mode (after ^V). 1998-01-22 07:37:10 +00:00
bde
e0900ea8b7 Fixed wrong prototype for history().
Don't (mis)use .Fd outside of the synopsis.
1998-01-16 14:33:47 +00:00
wosch
b215fc2e1e Sort cross refereces in section SEE ALSO. 1997-09-29 19:11:55 +00:00
msmith
39dde0bc00 Improve dependancy behaviour a little more.
This is still pretty disgusting.

Submitted by:	bde
1997-07-28 03:33:04 +00:00
msmith
e816ad497b List help.h a a dependancy for editline.c
Use 'beforedepend' instead of '.depend' to hang automatically-generated
headers off.

XXX the latter is bogus without a 'beforeall' target and explicit ordering
of dependancy generation for targets.
1997-07-27 10:47:49 +00:00
msmith
2322ea6f43 Reorder decomposition of the filename argument for the '-h' flag to
avoid misprocessing in the case where the filename argument contains
more than one period.

Submitted by:	micke@dynas.se (Mikael Hybsch)
1997-07-23 18:23:42 +00:00
jdp
7d0bef9462 Kill this file really dead. The default branch was cleared, even
though the file was still on the vendor branch.  I don't know why.
It doesn't look like the cvs-add-on-a-branch bug that we already
know about.
1997-07-15 16:45:50 +00:00
msmith
9733365a76 Fix vi-mode searching broken with the NetBSD changes update.
PR:		bin/4064
Submitted by:	Wolfgang Helbig <helbig@MX.BA-Stuttgart.De>
1997-07-14 13:21:08 +00:00
bde
1fc2a57bac Kill histedit.h again. Importing Lite2 brought it back for some reason
(although it hasn't changed).
1997-07-03 04:15:01 +00:00
bde
a9581f1d11 This commit was generated by cvs2svn to compensate for changes in r27180,
which included commits to RCS files with non-trunk default branches.
1997-07-03 03:28:27 +00:00
bde
e4673e648e Import Lite2's src/lib, except for non-i386 machine-dependent directories,
libc/db, libc/gen/crypt.* and libtelnet.  All affected files except 3
unimportant ones have already left the vendor branch.
1997-07-03 03:28:27 +00:00
ache
e1db55b993 ctype: portability, sign extension and cleanup fixes 1997-06-27 11:50:56 +00:00
ache
fe55eb2812 Move editrc.5 from MAN3 to MAN5 1997-06-27 11:16:28 +00:00
msmith
d13bc3d755 Pull histedit.h out, it lives in /usr/src/include, not here. 1997-06-25 09:49:06 +00:00
msmith
304a3cf717 Add extra test functionality.
Obtained from:	NetBSD
1997-06-25 08:14:45 +00:00
msmith
4c86e5edb8 Update libedit with changes from NetBSD. Includes history load/save,
some buffer overflow guards and some stylistic cleanups.
Also adds manpages.

Obtained from:	NetBSD
1997-06-25 08:14:24 +00:00
imp
8ce67e9fb5 Fix a minor buffer overflow.
Obtained from: BSDi by way of Keith Bostic
1997-03-23 23:17:22 +00:00
peter
d109d6bb1a Add missing DPADD, remove duplicate -ltermcap 1996-08-30 01:50:07 +00:00
ache
700d7fa2cf 8bit cleaness (ctype) fixes 1996-08-11 19:20:30 +00:00
jkh
a3b50e31fd General -Wall warning cleanup, part I.
Submitted-By: Kent Vander Velden <graphix@iastate.edu>
1996-07-12 18:57:58 +00:00
peter
ad125bf277 recording cvs-1.6 file death 1995-12-30 19:02:48 +00:00
peter
6470cdf2a0 This commit was generated by cvs2svn to compensate for changes in r13122,
which included commits to RCS files with non-trunk default branches.
1995-12-30 19:02:48 +00:00
peter
2821a942d0 Fix PR#858, /bin/sh corruption caused by non-zeroed malloc() in libedit
in particular circumstances. (malloc() does not zero memory, but usually
does by coincidenct that sbrk() returns zeroed pages)

Submitted-by: John Hood <cgull@smoke.marlboro.vt.us>
1995-12-02 09:43:43 +00:00
bde
d64f252d20 Update to 4.4lite2 (initialize arrow key data completely). 1995-10-22 18:49:04 +00:00
ache
1bd26073c1 Change my parse fix from 'return argc' to 'return 0'.
Pointed by: davidg
1995-08-30 17:59:59 +00:00
ache
5f9fe00f71 Fix sh coredump in vi mode with empty colon command 1995-08-04 19:42:23 +00:00