summaryrefslogtreecommitdiffstats
path: root/lib/libedit (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Second step in synching with NetBSD:schwarze2016-01-299-212/+213
| | | | | | | | | | | * Rename some types from *key*_t to *keymacro*_t. * Rename struct editline member el_key to el_keymacro. * Rename some functions in keymacro.c from key*() to keymacro*(). This removes the conflict of key_clear(), key_end(), and key_print() with macros in <term.h>. No functional change. This makes keymacro.h identical to the NetBSD version. It reduces the remaining diff from +2640 -1998 to +2446 -1805. OK czarkoff@
* Start synching with NetBSD:schwarze2016-01-296-17/+17
| | | | | | | | | | Rename the files key.[hc] to keymacro.[hc] and term.[hc] to terminal.[hc]. The change makes sense because "term.h" conflicts with <term.h> and the functions key_clear(), key_end(), and key_print() in "key.h" conflict with macros in <term.h>. No content change yet, no binary change in *.o after "strip -d". This reduces the remaining diff from +4634 -3992 to +2640 -1998. OK czarkoff@, and mmcc@ agrees with the direction.
* Zap extraneous SYNOPSIS sections.zhuk2016-01-081-4/+2
| | | | | | The gettytab(5) and termcap(5) get FILES, others don't need anything. With input from & okay schwarze@
* in the SYNOPSIS, make void function arguments explicitschwarze2015-09-141-4/+4
|
* missing commas at the end of .Nm lines in the NAME sectionschwarze2015-09-101-3/+3
|
* gcc 2.x is deadguenther2015-04-041-2/+2
| | | | ok millert@
* remove the first comma from constructs like ", and," and ", or,": you can usejmc2015-03-131-3/+3
| | | | | "and" and "or" to join sentence clauses, and you can use commas, but both hinders reading;
* SIZE_MAX is standard, we should be using it in preference to themillert2015-02-061-2/+3
| | | | obsolete SIZE_T_MAX. OK miod@ beck@
* Move to the <limits.h> universe.deraadt2015-01-161-3/+3
| | | | review by millert, binary checking process with doug, concept with guenther
* libedit claims compatibility with readline 4.2, so provide a stub forreyk2015-01-133-3/+11
| | | | | | | rl_set_keyboard_input_timeout() that was added in this version. Also crank the minor version. OK krw@ yasuoka@ deraadt@
* merge improvements from NetBSD; ok jmc@ nicm@schwarze2014-12-152-14/+24
|
* markup fixes from Kaspars at Bankovskis dot net;schwarze2014-12-122-11/+19
| | | | | some of this is already contained upstream in NetBSD, the rest will be sent there
* Remove non-exposed malloc/realloc/free wrappers, and then substitutederaadt2014-10-1717-196/+181
| | | | | reallocarray() where it helps. ok doug
* use reallocarray()deraadt2014-10-151-5/+6
|
* Userland reallocarray() audit.doug2014-10-111-3/+4
| | | | | | | Avoid potential integer overflow in the size argument of malloc() and realloc() by using reallocarray() to avoid unchecked multiplication. ok deraadt@
* Userland reallocarray() audit.doug2014-10-111-3/+3
| | | | | | | Avoid potential integer overflow in the size argument of malloc() and realloc() by using reallocarray() to avoid unchecked multiplication. ok deraadt@
* USE_SHLIBDIR is archaicderaadt2014-10-091-2/+1
|
* Merge the fixes from the upstream. Factor out some common code inyasuoka2014-05-202-133/+99
| | | | | | tty.c and fix EL_SETTY to work. ok nicm
* The argv[] used for el_set() EL_BIND, EL_SETTY, etc should be terminatednicm2014-05-201-5/+5
| | | | | | | by NULL. Fix from NetBSD via yasuoka@ but changed by me not to walk off the end of array with >20 arguments. ok yasuoka
* Add a H_SAVE_FP operation to history() which lets the history be savednicm2014-05-195-13/+41
| | | | | | to an open file pointer. From NetBSD via Eitan Adler. ok millert
* Retain local changes from rev 1.13.tobias2014-01-192-25/+50
| | | | ok deraadt@
* Switch time_t, ino_t, clock_t, and struct kevent's ident and dataguenther2013-08-131-2/+2
| | | | | | | | | | | | | | | | | | | | members to 64bit types. Assign new syscall numbers for (almost all) the syscalls that involve the affected types, including anything with time_t, timeval, itimerval, timespec, rusage, dirent, stat, or kevent arguments. Add a d_off member to struct dirent and replace getdirentries() with getdents(), thus immensely simplifying and accelerating telldir/seekdir. Build perl with -DBIG_TIME. Bump the major on every single base library: the compat bits included here are only good enough to make the transition; the T32 compat option will be burned as soon as we've reached the new world are are happy with the snapshots for all architectures. DANGER: ABI incompatibility. Updating to this kernel requires extra work or you won't be able to login: install a snapshot instead. Much assistance in fixing userland issues from deraadt@ and tedu@ and build assistance from todd@ and otto@
* Link sqlite3(1) against libedit and add an empty history.h header formpi2013-07-011-0/+5
| | | | | | compatibility with GNU realine. ok mikeb@, sthen@, espie@
* Sync with upstream. Fix buffer growing and memory allocation for wideyasuoka2013-05-221-18/+13
| | | | | | chars. Handle return of mbstowcs(). ok nickm
* editline.3: editrc only read from $HOME; from LEVAI Danieljmc2013-01-102-6/+11
| | | | | | editrc.5: add FILES for ~/.editrc patches passed onto net/free
* remove lint leftovers; ok guenther@okan2012-09-041-2/+1
|
* remove leftover NOLINT, WANTLINT, LINTFLAGS, LOBJ vars and lint targets.okan2012-08-021-2/+1
| | | | ok guenther@
* Don't segfault when trying to bind to an invalid command. While here,pascal2011-11-272-6/+7
| | | | | | kill a C++-style comment. ok nicm@
* Calculate the size for the wchar_t argv correctly, fixes memorynicm2011-11-171-8/+9
| | | | | | | | corruption reported by LEVAI Daniel <leva at ecentrum dot hu>. Also rename "bytes" to "wlen" since bytes is not accurate, suggested by stsp@. ok stsp oga
* Reintroduce lost local diff; detective work by matthew@; ok okan@ oga@otto2011-07-131-5/+16
| | | | all hail the more strict malloc S flag!
* el_set EL_BIND or EL_SETTC must have argument lists ending with NULL.nicm2011-07-081-5/+5
| | | | ok tedu
* Enable wide character functions in libedit (not the other libe*t).nicm2011-07-073-14/+79
| | | | ok stsp deraadt
* sync with upstream, retaining local modifications.okan2011-07-0717-230/+280
| | | | ok nicm@
* No need for files generated by depend.okan2011-06-258-520/+0
| | | | ok nicm@
* lots of back things happening in this signal handler, but at leastderaadt2011-06-031-2/+3
| | | | | start to clean up the simple stuff ok nicm
* Make wcwidth() callers cope with -1 return value. Doesn't affect the build yet.stsp2011-04-042-4/+8
| | | | ok nicm
* netbsd -r1.75: Fix argument for EL_EDITOR; from Jess Thrysoeejmc2011-03-021-3/+3
| | | | ok nicm
* Don't leak the fd returned by mkstemp in vi_histedit error paths.nicm2010-10-231-2/+7
| | | | From zinovik.
* observe the following spelling:jmc2010-09-101-3/+3
| | | | | | | | | - wide character (noun) - wide-character (adjective) this is the "fix of least resistance", and appears to be in line with posix style; a tiny fix still needed for curses, but i'll mail that upstream;
* there's no tcsh page in base, so don;t bother xr'ing it;jmc2010-06-301-6/+3
|
* tweak previous;jmc2010-06-301-4/+2
|
* Update libedit to bring it into sync with the latest version from NetBSD.nicm2010-06-3056-2365/+5824
| | | | ok deraadt
* Document return values, based on a diff from Ross Richardson.nicm2010-05-141-3/+8
| | | | ok jmc
* another Os out of order;jmc2010-05-091-2/+2
|
* Document that el_init can return NULL on failure, PR 6374 from rueda atnicm2010-05-091-3/+5
| | | | | | devio.us. ok jmc
* ellipses are not optional arguments; while here, fix a double .Ar/.Arsobrado2010-01-251-3/+3
| | | | | | in the roff source. ok jmc@
* fix double full stop, find out by jmc@ when looking into another issue.sobrado2010-01-251-3/+3
|
* Fix two memory leaks, one found by parfait, one by myself.jacekm2009-12-111-14/+35
| | | | ok deraadt@
* a few leftovers from yesterday's SCCS/RCS-ID removal;schwarze2009-10-281-2/+1
| | | | | survived a full make build on i386; "sure" deraadt@
* rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt2009-10-2720-163/+20
| | | | | | | unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms