343460 |
25-Jan-2019 |
jilles |
MFC r343105: libedit: Avoid out of bounds read in 'bind' command
This is CVS revision 1.31 from NetBSD lib/libedit/chartype.c: Make sure that argv is NULL terminated since functions like tty_stty rely on it to be so (Gerry Swinslow)
This broke when the wide-character support was enabled in libedit. The conversion from multibyte to wide-character did not supply the apparently expected terminating NULL in the new argv array.
PR: 233343 |
343091 |
16-Jan-2019 |
bapt |
MFC r340933:
libedit: improve multibyte support
Until this commit libedit only supported UTF-8 for multibyte charset Improve it to support other multibyte charsets
Tested with eucJP and SJIS charsets. Note that this change as been review and committed in upstream libedit as well via christos@NetBSD
Submitted by: naito.yuichiro _at_ gmail.com Reviewed by: bapt, pfg, yuripv, 0mp Differential Revision: https://reviews.freebsd.org/D17903 |
331160 |
19-Mar-2018 |
eadler |
MFC r317570:
editline.3: Add missing argument to H_SET description
The H_SET operation of the history() function takes an int argument which is the position of the item to which the cursor should be moved to. |
330446 |
05-Mar-2018 |
eadler |
MFC r327231,r327232:
kernel: Fix several typos and minor errors lib: Fix several typos and minor errors
- duplicate words - typos - references to old versions of FreeBSD |
328884 |
05-Feb-2018 |
pfg |
MFC r328567: libedit: sort the Makefile in line with NetBSD's version.
NetBSD's libedit has been been cleaned-up considerably so the non-widecharacter version is no longer an option. Re-sorting the Makefile should make it easier for some brave soul trying to update it.
No functional change intended. |
325391 |
04-Nov-2017 |
pfg |
MFC r323547, r323598: libedit: add missing bracket.
We never hit this because we always build with widechar support. Raise the warning level to 3. |
313981 |
20-Feb-2017 |
pfg |
MFC r312997, r313002: Re-import libedit 2016-02-27 and update libedit with changes from NetBSD's 2016-03-21.
Obtained from: NetBSD |
309843 |
11-Dec-2016 |
marcel |
MFC r305855, r306297, r306300, r306312-r306313
When MAKEOBJDIRPREFIX points to a case-insensitive file system, the build can break when different source files create the same object files (case-insensitivity speaking). This is the case for object files compiled with -fpic and shared libraries. The former uses an extension of ".So", and the latter an extension ".so". Rename shared object files from *.So to *.pico to match what NetBSD does.
Also: o Compile _Exit.c as C99_Exit.c, as it conflicts with _exit.s o Add entry to UPDATING o Document .pico extension |
302408 |
08-Jul-2016 |
gjb |
Copy head@r302406 to stable/11 as part of the 11.0-RELEASE cycle. Prune svn:mergeinfo from the new branch, as nothing has been merged here.
Additional commits post-branch will follow.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
298896 |
01-May-2016 |
pfg |
lib: minor spelling fixes in comments.
No functional change.
|
298107 |
16-Apr-2016 |
gjb |
Merge the projects/release-pkg branch to head.
This allows packaging the base system with pkg(8), including but not limited to providing the ability to provide upstream binary update possibilities for non-tier-1 architectures.
This merge is a requirement of the 11.0-RELEASE, and as such, thank you to everyone that has tested the project branch.
Documentation in build(7) etc. is still somewhat sparse, but updates to those parts will follow.
Sponsored by: The FreeBSD Foundation
|
298096 |
16-Apr-2016 |
gjb |
Prune bogus svn:mergeinfo from directores on which it should not ever be present.
Sponsored by: The FreeBSD Foundation
|
297757 |
09-Apr-2016 |
pfg |
libedit: replace 0 with NULL for pointers.
Found with devel/coccinelle.
Reviewed by: Christos Zoulas
|
296435 |
06-Mar-2016 |
pfg |
Revert r296175 Undo update of libedit 2016-02-27
Something in libedit appears to be causing breakage in lldb38. The changes are not generally huge but they are suficient to to justify reverting for now.
Reported by: novel, bapt
|
296417 |
05-Mar-2016 |
dim |
Upgrade our copies of clang, llvm, lldb and compiler-rt to 3.8.0 release.
Please note that from 3.5.0 onwards, clang, llvm and lldb require C++11 support to build; see UPDATING for more information.
Release notes for llvm and clang will soon be available here: <http://llvm.org/releases/3.8.0/docs/ReleaseNotes.html> <http://llvm.org/releases/3.8.0/tools/clang/docs/ReleaseNotes.html>
Thanks to Ed Maste, Roman Divacky, Davide Italiano and Antoine Brodin for their help.
Relnotes: yes
|
296175 |
29-Feb-2016 |
pfg |
MFV r296159 Sync our libedit with NetBSD's libedit 2016-02-27.
Obtained from: NetBSD
|
295989 |
24-Feb-2016 |
bdrewery |
DIRDEPS_BUILD: Regenerate without local dependencies.
These are no longer needed after the recent 'beforebuild: depend' changes and hooking DIRDEPS_BUILD into a subset of FAST_DEPEND which supports skipping 'make depend'.
Sponsored by: EMC / Isilon Storage Division
|
295369 |
07-Feb-2016 |
pfg |
MFV r295360 Sync our libedit with NetBSD's libedit 2016-01-16
Obtained from: NetBSD
|
291307 |
25-Nov-2015 |
bdrewery |
META MODE: Prefer INSTALL=tools/install.sh to lessen the need for xinstall.host.
This both avoids some dependencies on xinstall.host and allows bootstrapping on older releases to work due to lack of at least 'install -l' support.
Sponsored by: EMC / Isilon Storage Division
|
290398 |
05-Nov-2015 |
brooks |
Revert r290298. Per discussion on tech-userlevel@netbsd.org this change was incorrect.
|
290298 |
02-Nov-2015 |
brooks |
The ops EL_SIGNAL, EL_EDITMODE, EL_UNBUFFERED, and EL_PREP_TERM all take an int, not an int*.
Sponsored by: DARPA, AFRL Discovered with: CHERI Differential Revision: https://reviews.freebsd.org/D4071
|
290065 |
27-Oct-2015 |
jilles |
libedit: Use correct buffer lengths in vi mode v command.
Libedit's vi mode provides a v command to edit the current line in vi(1) (hard-coded to vi, in fact).
When Unicode/wide character mode was added, this command started truncating and/or corrupting the edited text.
This commit fixes v if the text fits into the buffer. If the text is longer, it is truncated.
PR: 203743 Obtained from: NetBSD (originally submitted by me)
|
284421 |
15-Jun-2015 |
bapt |
Revert r284417 it is not necessary anymore
|
284417 |
15-Jun-2015 |
bapt |
Enforce overwritting SHLIBDIR
Since METAMODE has been added, sys.mk loads bsd.mkopt.mk which ends load loading bsd.own.mk which then defines SHLIBDIR before all the Makefile.inc everywhere.
This makes /lib being populated again.
Reported by: many
|
284345 |
13-Jun-2015 |
sjg |
Add META_MODE support.
Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree.
Still need to add real targets under targets/ to build packages.
Differential Revision: D2796 Reviewed by: brooks imp
|
284108 |
07-Jun-2015 |
bapt |
Sync with NetBSD:
- fix types of rl_completion_entry_function and rl_add_defun - call update pos before completion to refresh the screen From Thomas Eriksson
Adjust API to a more modern readline (Ryo Onodera)
remove duplicate declaration
|
283084 |
18-May-2015 |
bapt |
Synchronize libedit with NetBSD
It incorporates and fixes our patches to get el_gets return the proper count of characters in unicode mode.
|
281995 |
26-Apr-2015 |
bapt |
Do not modify locales
|
278422 |
08-Feb-2015 |
bapt |
revert r278414
Reported by: bz
|
278414 |
08-Feb-2015 |
bapt |
Reapply r255891
|
276882 |
09-Jan-2015 |
bapt |
Remove junk added during testing phase
|
276881 |
09-Jan-2015 |
bapt |
Synchronize libedit with NetBSD and activate UTF-8 support [1]
Differences with NetBSD Reapply our local patches on top of it Fix Unicode environement detection Fix reading a line in unicode environment. It allows /bin/sh to works in UTF-8 envs
Differential Revision: https://reviews.freebsd.org/D1455 Reviewed by: jilles, pfg Obtained from: NetBSD [1] MFC after: 1 month Relnotes: yes
|
275024 |
25-Nov-2014 |
bapt |
Convert libraries to use LIBADD While here reduce a bit overlinking
|
269016 |
23-Jul-2014 |
pfg |
Fix mismatch.
MFC after: 3 days
|
268804 |
17-Jul-2014 |
brooks |
Replace all uses of libncurses and libtermcap with their wide character variants. This allows usable file system images (i.e. those with both a shell and an editor) to be created with only one copy of the curses library.
Exp-run: antoine PR: 189842 Discussed with: bapt Sponsored by: DARPA, AFRL
|
268502 |
10-Jul-2014 |
pfg |
Sync some (mostly cosmetical) changes from NetBSD
Makefile,v 1.37 tc1.c v 1.3 Rename TEST/test.c tc1.c
common.c,v 1.23 pass lint on _LP64.
emacs.c,v 1.22 pass lint on _LP64.
filecomplete.h,v 1.8 mv NetBSD ID back from 1.9 as we don't have the widecharacter support.
prompt.c,v 1.14 prompt.h,v 1.9 term.h,v 1.20 read.h,v 1.6 Update NetBSD version strings
sys.h,v 1.12 Misc sun stuff.
tty.c 1.31 handle EINTR in the termios operations Allow a single process to control multiple ttys (for pthreads using _REENTRANT) using multiple EditLine objects. pass lint on _LP64. Don't depend on side effects inside an assert
MFC after: 1 week Obtained from: NetBSD
|
265863 |
11-May-2014 |
eadler |
libedit: add H_SAVE_FP which saves history to a file pointer.
H_SAVE_FP is similar to H_SAVE but operates on a FILE* instead of a filename. This is useful when operating in capability mode.
Reviewed by: christos@NetBSD.org, pfg
|
263289 |
18-Mar-2014 |
emaste |
Update NetBSD Foundation copyrights to 2-clause BSD
The NetBSD Foundation states "Third parties are encouraged to change the license on any files which have a 4-clause license contributed to the NetBSD Foundation to a 2-clause license."
This change removes clauses 3 and 4 from copyright / license blocks that list The NetBSD Foundation as the only copyright holder.
Sponsored by: The FreeBSD Foundation
|
255891 |
26-Sep-2013 |
delphij |
Import NetBSD readline.c,v 1.104: do not crash with add_history(NULL).
MFC after: 3 days Approved by: re (gjb)
|
247713 |
03-Mar-2013 |
jilles |
libedit: Revert r247683 to fix buildworld.
I think r247683 is wrong because libedit.so actually uses symbols from libcurses.so. Since it breaks the build, revert it now.
|
247683 |
03-Mar-2013 |
pfg |
libedit does not need to be linked with ncurses
libedit uses the terminfo headers but doesn't really need to be linked with ncurses.
Discussed with: christos@NetBSD MFC after; 3 days
|
245325 |
12-Jan-2013 |
joel |
Add FILES section.
Submitted by: jmc@OpenBSD
|
245324 |
12-Jan-2013 |
joel |
editrc only read from $HOME.
Submitted by: LEVAI Daniel (via jmc@OpenBSD)
|
244941 |
01-Jan-2013 |
pfg |
libedit: bind the correct command when using "bind -k".
"ed-argument-digit" (i. e. command 0) was incorrectly used instead. This bug comes from the original sources imported in 1994 and has been confirmed in upstream NetBSD.
Reported by: Yamagi Burmeister Submitted by: Christoph Mallon MFC after: 3 days
|
240982 |
27-Sep-2012 |
kevlo |
Initialize the num variable to avoid uninitialized data. This fixes the bug introduced by r238378.
Reviewed by: pfg
|
238810 |
26-Jul-2012 |
pfg |
Drop non-portable libedit's el_data_set() and el_data_get() for private data.
We can set/get private data with the documented el_get() and el_set() so there's no need for our local extensions, which never received much use anyway.
While here, also re-arrange the call to term_init_arrow. This was left over from r89735 but is not required anymore.
This changes reduce differences against NetBSD's libedit.
MFC after: 2 months
|
238624 |
19-Jul-2012 |
pfg |
Merge more cosmetical changes from NetBSD's libedit.
makelist: change tr '[a-z]' '[A-Z]' to tr '[:lower:]' '[:upper:]' so that POSIX systems work proerly regardsless of environment variable settings.
tokenizer.c: pass lint on _LP64
Obtained from: NetBSD MFC after: 2 weeks
|
238378 |
11-Jul-2012 |
pfg |
Re-merge a couple of changes from NetBSD's libedit.
bin/sh has been taught about el_gets setting the count to -1 on error, so now we can partially revert r238173 to reduce differences with NetBSD's implementation.
Unfortunately NetBSD's libedit handling of EINTR (Revision 1.44 in read.c + SIGWINCH fixes) still causes trouble in bin/sh and other utilities and has to be avoided.
MFC after: 1 month
|
238178 |
06-Jul-2012 |
pfg |
Merge a small update from NetBSD.
Feb 15 21:55:23 2009 - chared.c chared.h pass lint on _LP64.
MFC after: 1 week
|
238173 |
06-Jul-2012 |
pfg |
Fix issue resizing bin/sh
This partially reverts some changes from r237448 that are causing breakage when resizing under bin/sh .
Reverted changes from NetBSD are:
Mar 10 20:46:15 2009 - editline.3 read.c make el_gets set the count to -1 on error to distinguish between EOF and error.
Feb 19 15:20:22 2009 - read.c sig.c sig.h reset and redraw on sigcont. From Anon Ymous.
Feb 15 21:24:13 2009 don't restart on EINTR, instead return NULL immediately. From Anon Ymous
PR: 169603 Reported by: Peter Jeremy, David Shao MFC after: 3 days
|
237525 |
24-Jun-2012 |
joel |
Fix mandoc "Oc breaks Op" warning.
|
237448 |
22-Jun-2012 |
pfg |
Merge changes from upstream libedit.
Our libedit has been diverging from the mainstream version maintained in NetBSD. As a consequence it has been difficult to do an appropriate MFV and we have been bringing only partial updates.
Here we update most of the files to at least match the version available in NetBSD's snapshot of 20091228. This version was chosen because it still doesn't include wide character support (UTF-8), which involves many changes and new files.
From NetBSD's logs:
Dec 15 22:13:33 2006 - editline.3 el.c el.h histedit.h add EL_GETFP, and EL_SETFP.
Apr 5 15:53:28 2008 - editline.3 el.c histedit.h readline.c add EL_REFRESH for the benefit of readline
Sep 10 15:45:37 2008 - common.c el.c read.c refresh.c sig.c term.c term.h tty.c Allow a single process to control multiple ttys (for pthreads using _REENTRANT) using multiple EditLine objects.
Jan 18 12:17:24 2009 - el.c read.c readline.c fix -Wsign-compare issues
Feb 6 14:40:32 2009 - history.c Plug memory leak, from MySQL.
Feb 5 19:15:44 2009 - histedit.h read.c match documentation in el_push
Feb 6 13:14:37 2009 - vi.c Portability fix.
Feb 12 13:39:49 2009 - readline.c term.c More fixes for existing portability stuff.
Feb 15 21:24:13 2009 - el.h read.c don't restart on EINTR, instead return NULL immediately. From Anon Ymous
Feb 15 21:25:01 2009 - sig.c sig.h in order for read() to return EINTR we need to use sigaction, not signal, otherwise SA_RESTART is set.
Feb 15 21:55:23 2009 - chared.c chared.h common.c emacs.c filecomplete.c filecomplete.h key.c key.h read.c readline.c refresh.c search.c term.c tokenizer.c tty.c vi.c pass lint on _LP64.
Feb 17 21:34:26 2009 - el.c histedit.h prompt.c prompt.h allow for a prompt argument.
Feb 18 15:04:40 2009 - sig.c SA_RESTART for all signals but SIGINT. From Anon Ymous.
Feb 19 15:20:22 2009 - read.c sig.c sig.h reset and redraw on sigcont. From Anon Ymous.
Feb 21 23:31:56 2009 - key.c key.h readline.c vi.c more size_t stuff.
Mar 10 20:46:15 2009 - editline.3 read.c make el_gets set the count to -1 on error to distinguish between EOF and error.
Mar 31 17:38:27 2009 - editline.3 el.c histedit.h prompt.c prompt.h refresh.c term.c term.h Implement literal prompt sequences. Now someone can implement RL_PROMPT_START_LITERAL/RL_PROMPT_END_LITERAL :-)
Mar 31 21:33:17 2009 - term.c cast to size_t to avoid sign / unsigned comparison warning.
Apr 23 02:03 2009 - term.c Apply patch (requested by msaitoh in ticket #2007): Coverity CID 1668: Plug memory leak when malloc() failed.:55 2009
May 11 18:33:30 2009 - editline.3 el.c histedit.h restore binary compatibility by providing new prompt functions that take an extra literal character.
May 19 21:45:14 2009 - refresh.c always scroll when we advance past bottom. From Caleb Welton cwelton at greenplum dot com.
Jul 17 12:27:57 2009 - term.c - off by one in the term.h case. - make code more similar to tcsh (if we want to handle wide chars, this is needed; for now it is a no-op)
Jul 22 15:56:29 2009 - el.c Move filename to the scope it is being used. From Michael Cook mcook at bbn dot com
Jul 22 15:57:00 2009 - read.c Always initialize nread since it is an out param. From Michael Cook mcook at bbn dot com
Jul 22 18:25:26 2009 - el.c Only need path if we have issetugid... From Anon Ymous
Jul 25 21:19:23 2009 - el.c Ignore comment lines in .editrc from Jess Thrysoee
Sep 7 21:24:33 2009 histedit.h history.c readline.c apply apple patches from: http://opensource.apple.com/source/libedit/libedit-11/patches/
Dec 28 21:52:43 2009 - refresh.c Fix bug where tab completion on the second or > line that caused listing ended up corrupting the display by an extra space in the beginning. Reported by Mac Chan.
Dec 28 22:15:36 2009 - refresh.c term.c reduce diff with tcsh
Obtained from: NetBSD Tested by: bapt, jilles and current@ MFC after: 1 week
|
234690 |
26-Apr-2012 |
obrien |
Correct r228114 and use the same implementation for tilde.h as for history.h
|
228473 |
13-Dec-2011 |
ed |
Don't use __P().
The rest of the file doesn't use it either and according to style(9), it should not be used.
|
228116 |
29-Nov-2011 |
fjoe |
Use INCSLINKS so that "make installincludes" installs links during buildworld.
|
228114 |
29-Nov-2011 |
fjoe |
- Hide _rl_qsort_string_compare() that should be private to libreadline() implementation. - Add symlink /usr/include/edit/readline/tilde.h -> readline.h
All this makes it possible to build and link gdb with -ledit.
|
220624 |
14-Apr-2011 |
obrien |
Add $FreeBSD$'s.
|
220370 |
05-Apr-2011 |
obrien |
* Add the readline(3) API to libedit. The libedit versions of {readline,history}.h are in /usr/include/edit so as to not conflict with the GNU libreadline versions. To use the libedit readline(3) one should add "-I/usr/include/edit" to their Makefile (spelled "-I${DESTDIR}/${INCLUDEDIR}/edit" within the FreeBSD source tree).
* Enable its use in the BSD licensed utilities that support readline(3).
* To make it easier to sync libedit development with NetBSD, histedit.h is moved into libedit's directory as history shows shown we keep merging it into that location.
Obtained from: NetBSD Sponsored by: Juniper Networks
|
212235 |
05-Sep-2010 |
jilles |
libedit: Try to map <Delete> to ed-delete-next-char.
This adds a new "arrow" key "delete" corresponding to the kD termcap value. It only works if that is a sequence such as "\033[3~"; if it is "\177", the em-delete-prev-char or ed-delete-prev-char from the single-character mappings remains. It turns out that most terminals (xterm and alikes, syscons in xterm mode) produce "\033[3~" by default so <Delete> has the expected effect.
This also means that things need to be considerably misconfigured for <Backspace> to perform a <Delete> action.
|
212191 |
03-Sep-2010 |
jilles |
libedit: Do not move the cursor for ed-delete-next-char in emacs mode.
This makes ed-delete-next-char suitable for mapping to the <Delete> key.
Behaviour in vi mode is unchanged (for 'x').
|
211397 |
16-Aug-2010 |
joel |
Fix typos, spelling, formatting and mdoc mistakes found by Nobuyuki while translating these manual pages. Minor corrections by me.
Submitted by: Nobuyuki Koganemaru <n-kogane@syd.odn.ne.jp>
|
209224 |
15-Jun-2010 |
jilles |
libedit: Reduce surprising behaviour with filename completion some more: * Quote '*', '?' and '['. While it may be more useful to expand them to matching pathnames, this at least matches with the completion we do. * '@' is a regular character for filenames. Some other shells do @<hostname> completion but we do not. * Prefix names starting with '-' and '+' with './' so they are not seen as options.
|
209219 |
15-Jun-2010 |
jilles |
libedit: Allow simple quoting in filename completion.
The completer recognizes characters escaped with backslashes as being literal parts of a word, and adds backslashes to avoid almost all misinterpretation. In particular, filenames containing spaces can be completed correctly.
For bug compatibility with the NetBSD version, the improved completion function has a new name, _el_fn_sh_complete, and _el_fn_complete is unchanged.
Submitted by: Guy Yur
|
209217 |
15-Jun-2010 |
jilles |
libedit: Fix a bug that could make completion listings incomplete.
The element matches[0] is the common prefix and is not counted in len, so subtracting 1 is not needed. A counter for the number of matches per line was incremented twice.
Submitted by: Guy Yur
|
209136 |
13-Jun-2010 |
jilles |
libedit: Add basic filename completion code from NetBSD.
This will be used to provide filename completion in sh(1).
Changes from the NetBSD code: * wide character support disabled, as in the rest of libedit * config.h and related portability stuff reduced/disabled, as in the rest of libedit
Submitted by: Guy Yur Obtained from: NetBSD
|
206622 |
14-Apr-2010 |
uqs |
mdoc: order prologue macros consistently by Dd/Dt/Os
Although groff_mdoc(7) gives another impression, this is the ordering most widely used and also required by mdocml/mandoc.
Reviewed by: ru Approved by: philip, ed (mentors)
|
204555 |
02-Mar-2010 |
joel |
The NetBSD Foundation has granted permission to remove clause 3 and 4 from their software.
Obtained from: NetBSD
|
201381 |
02-Jan-2010 |
ed |
Build lib/ with WARNS=6 by default.
Similar to libexec/, do the same with lib/. Make WARNS=6 the norm and lower it when needed.
I'm setting WARNS?=0 for secure/. It seems secure/ includes the Makefile.inc provided by lib/. I'm not going to touch that directory. Most of the code there is contributed anyway.
|
195767 |
19-Jul-2009 |
kensmith |
Bump the version of all non-symbol-versioned shared libraries in preparation for 8.0-RELEASE. Add the previous version of those libraries to ObsoleteFiles.inc and bump __FreeBSD_Version.
Reviewed by: kib Approved by: re (rwatson)
|
170511 |
10-Jun-2007 |
stefanf |
Merge NetBSD changes, among them:
el.c 1.44, el.h 1.17, editline.3 1.53, histedit.h 1.31: # add EL_GETFP, and EL_SETFP.
el.c 1.42, term.c 1.46, term.h 1.18, editline.3 1.52, histedit.h 1.29: # - Add more readline functions, enough for gdb-6.5 # - Make el_get varyadic, and implement EL_GETTC. # - XXX: the EL_SETTC api will change in the future.
Note: The latter change breaks the ABI of the el_get() function.
Approved by: re (kensmith)
|
169807 |
21-May-2007 |
deischen |
Bump library versions in preparation for 7.0.
Ok'd by: kan
|
167464 |
11-Mar-2007 |
stefanf |
Merge the following changes from NetBSD:
history.c 1.32: # Fix memory leak found by valgrind (Julien Torres) map.c 1.24: # fix debugging printf format. read.c 1.40: # Fix bug with multiple pending el_pushes. Reported by Julien Torres. tty.c 1.24: # Coverity CID 1216: Prevent negative index use.
MFC after: 3 weeks
|
167457 |
11-Mar-2007 |
stefanf |
Merge the following changes from NetBSD:
chared.h 1.17, common.c 1.19, emacs.c 1.21, key.c 1.18, key.h 1.9, map.c 1.23, term.c 1.42, term.h 1.17, vi.c 1.25: # Print the actual eofc, instead of ^D\b\b. # Change internal character decoding to prevent buffer oveflows. key.c 1.19, key.h 1.10: # move declaration to header file. term.c 1.43: # Coverity CID 806: Prevent NULL deref term.c 1.44: # Coverity CID 1668: Plug memory leak. term.c 1.45: # Fix compilation.
MFC after: 3 weeks
|
167444 |
11-Mar-2007 |
stefanf |
Merge changes to the NetBSD copyright (advertising clause removal).
|
153079 |
04-Dec-2005 |
stefanf |
Merge NetBSD's revision 1.27. This bug can be observed eg. when browsing through the history in sh.
| Refresh bug reported by Julien Torres: | | going from: | activate -verbose | to: | reset -activation | results in: | reset -activationverbose" | instead of: | reset -activation | | This is because we choose to insert "reset -" before the current line, | and the delete "e -" and insert "ion" in the appropriate place. The | cleareol code did not handle this case properly; we now cleareol to | the maximum number of characters of the first difference, the second | difference and the difference in line length.
|
152759 |
24-Nov-2005 |
ru |
Fix prototype.
|
152551 |
17-Nov-2005 |
ru |
-mdoc sweep.
|
151493 |
20-Oct-2005 |
stefanf |
Add el_get to the NAME section.
Obtained from: OpenBSD (via NetBSD)
|
150947 |
04-Oct-2005 |
stefanf |
Merge makelist rev 1.10 and map.c rev 1.22 from NetBSD. They just patch the bug fixed in the last commit to map.c in a different way. Follow NetBSD to facilitate future merges.
|
150946 |
04-Oct-2005 |
stefanf |
Merge NetBSD's rev. 1.49:
Fix double if (from Alexey E. Suslikov via jmc@openbsd). While here, re-word both H_[GS]ETUNIQUE descriptions so they make more sense. Bump date.
|
150945 |
04-Oct-2005 |
stefanf |
Merge NetBSD's rev. 1.41:
PR/31012: Barry Naujok: libedit el_get with EL_EDITOR op does not work Fixed as suggested.
|
148924 |
10-Aug-2005 |
stefanf |
Move <sys/cdefs.h> up to reduce diff to NetBSD.
|
148923 |
10-Aug-2005 |
stefanf |
Submitted to and merged from NetBSD (rev. 1.23 and 1.24): - Don't delete the current line when typing `yy'. - Don't use a possibly stale pointer in cv_paste(). -
|
148900 |
09-Aug-2005 |
stefanf |
NetBSD merged our typo fixes, update $NetBSD$.
|
148899 |
09-Aug-2005 |
stefanf |
Merge a change I missed in the last commit.
|
148897 |
09-Aug-2005 |
stefanf |
Merge NetBSD's 1.25 which fixes a small bug introduced in 1.24.
|
148859 |
08-Aug-2005 |
stefanf |
Include <term.h> before #undef'ing key_clear.
|
148848 |
08-Aug-2005 |
stefanf |
Fix a few typos.
|
148847 |
08-Aug-2005 |
stefanf |
Don't forget to copy the sentinel into the `help' array. It's expected to be there.
Submitted by: Björn König PR: 82381
|
148834 |
07-Aug-2005 |
stefanf |
Sync libedit with recent NetBSD developments. Including improvements to the vi-mode, removal of clause 3, cleanups and the export of the tokenization functions.
Not included: config.h, filecomplete.{c,h}
|
148814 |
07-Aug-2005 |
stefanf |
Revert the replacement of realloc() with reallocf() (el.h:1.2, map.c:1.5 and tokenizer.c:1.3). Contrary to the commit log there were no memory leaks, but the change introduced a bug because the free'd pointer was not zeroed and calling the appropriate _end() function would call free() a second time.
|
148297 |
22-Jul-2005 |
kensmith |
Bump the shared library version number of all libraries that have not been bumped since RELENG_5.
Reviewed by: ru Approved by: re (not needed for commit check but in principle...)
|
141851 |
13-Feb-2005 |
ru |
Expand contractions.
|
141846 |
13-Feb-2005 |
ru |
Expand *n't contractions.
|
119893 |
08-Sep-2003 |
ru |
mdoc(7): Use the new feature of the .In macro.
|
119071 |
18-Aug-2003 |
obrien |
style.Makefile(5)
|
119017 |
17-Aug-2003 |
gordon |
Stage 3 of dynamic root support. Make all the libraries needed to run binaries in /bin and /sbin installed in /lib. Only the versioned files reside in /lib, the .so symlink continues to live /usr/lib so the toolchain doesn't need to be modified.
|
118449 |
04-Aug-2003 |
ache |
LANG->LC_ALL
Pointed by: ru
|
118430 |
04-Aug-2003 |
ache |
Fix problem differently, use LANG=C tr 'a-z' 'A-Z' for hypotetical case that script may generate non-ascii characters
|
118427 |
04-Aug-2003 |
ache |
Fix double-wrong tr usage: tr '[a-z]' '[A-Z]'
First of all, it should be written as: tr 'a-z' 'A-Z' ranges not encolosed in [] according to POSIX, so [] just included in the replacement. Second, it should be written: tr '[:lower:]' '[:upper:]' since a-z and A-Z may have different length in some locales.
|
110443 |
06-Feb-2003 |
charnier |
The .Fn function
|
108533 |
01-Jan-2003 |
schweikh |
Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup, especially in troff files.
|
108470 |
30-Dec-2002 |
schweikh |
Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/ Add FreeBSD Id tag where missing.
|
108317 |
27-Dec-2002 |
schweikh |
english(4) police.
|
105095 |
14-Oct-2002 |
tjr |
Write the strvis()'d string out to the history file in history_save(), not the original string. Fixes the bug where every second line of a history file was empty.
|
105032 |
13-Oct-2002 |
tjr |
FreeBSD's libedit does not include NetBSD's readline emulation code. Remove references to it from the Authors and History sections.
|
104073 |
28-Sep-2002 |
peter |
Zap now-unused SHLIB_MINOR
|
98293 |
16-Jun-2002 |
mdodd |
Restore local bits lost in recent merge from NetBSD.
|
95258 |
22-Apr-2002 |
des |
Usage style sweep: spell "usage" with a small 'u'. Also change one case of blatant __progname abuse (several more remain) This commit does not touch anything in src/{contrib,crypto,gnu}/.
|
94278 |
09-Apr-2002 |
ru |
-ltermcap is spelled -lncurses nowadays.
|
92917 |
21-Mar-2002 |
obrien |
Remove __P() usage.
|
89735 |
24-Jan-2002 |
obrien |
Fix problem where with PicoBSD the shell coredumps if it does not find an entry for its terminal type in /etc/termcap.
Submitted by: bde
|
86736 |
21-Nov-2001 |
ru |
mdoc(7) police: markup nit in the actual rev. 1.13 changes.
|
86735 |
21-Nov-2001 |
ru |
mdoc(7) police: restore all FreeBSD fixes to this file that got clobbered by previous commit.
|
84335 |
01-Oct-2001 |
obrien |
Clean this up after the NetBSD syncing.
|
84334 |
01-Oct-2001 |
obrien |
Fix ID's after a total boch CVS merge due to multiple people making commits to these files. As I sing to CVS: Have I told you lately that I hate your guts? Have I told you all SCM's are above you? You fill my heart with pain, take away all my merging joy, grow my troubles that's what you do."
|
84327 |
01-Oct-2001 |
obrien |
Our histedit.h lives in src/include.
|
84304 |
01-Oct-2001 |
ru |
Re-applied some of rev. 1.11 and 1.13 fixes that were lost in the last commit. Fixed some more.
|
84260 |
01-Oct-2001 |
obrien |
+ Sync with NetBSD, bringing in feature enhancements. + Convert to ANSI-C function definitions + style(9)
Submitted by: kris
|
84201 |
30-Sep-2001 |
dillon |
Add __FBSDID()s to libedit
|
81449 |
10-Aug-2001 |
ru |
mdoc(7) police: protect trailing full stops of abbreviations with a trailing zero-width space: `e.g.\&'.
|
81251 |
07-Aug-2001 |
ru |
mdoc(7) police:
Avoid using parenthesis enclosure macros (.Pq and .Po/.Pc) with plain text. Not only this slows down the mdoc(7) processing significantly, but it also has an undesired (in this case) effect of disabling hyphenation within the entire enclosed block.
|
79754 |
15-Jul-2001 |
dd |
Remove whitespace at EOL.
|
79531 |
10-Jul-2001 |
ru |
mdoc(7) police: removed HISTORY info from the .Os call.
|
75440 |
12-Apr-2001 |
ache |
Back out history.3 link removing - conflict fixed in libreadline instead
|
75438 |
12-Apr-2001 |
ache |
Comment out one of many editline.3 MLINKS conflicting with libreadline (history.3)
|
74870 |
27-Mar-2001 |
ru |
MAN[1-9] -> MAN.
|
71895 |
01-Feb-2001 |
ru |
mdoc(7) police: split punctuation characters + misc fixes.
|
71097 |
16-Jan-2001 |
ru |
Prepare for mdoc(7)NG.
|
69204 |
26-Nov-2000 |
kris |
Constify
|
69026 |
22-Nov-2000 |
ru |
log
|
66562 |
02-Oct-2000 |
brian |
Include fcntl.h
PR: 21697 Submitted by: Barak Enat <barak_enat@yahoo.com>
|
63948 |
28-Jul-2000 |
ache |
Teach library about Home/End keys
|
63947 |
28-Jul-2000 |
ache |
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
|
63946 |
27-Jul-2000 |
ache |
Move terminal descriptor flush before stty to eliminate potential problems whith characters conversion changed like \n -> \r\n and so on.
|
63900 |
26-Jul-2000 |
ache |
Fix temp. singnals blocking. Only one signal was blocked due to typo pasted many times.
|
60773 |
22-May-2000 |
imp |
<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.
|
60772 |
22-May-2000 |
imp |
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
|
60771 |
22-May-2000 |
imp |
Make comment match code forgotten in last commit
|
60770 |
22-May-2000 |
imp |
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.
|
59508 |
22-Apr-2000 |
phantom |
Introduce .Lb macro to libedit manpage
|
51904 |
03-Oct-1999 |
marcel |
Fix style bugs
Submitted by: bde
|
51794 |
29-Sep-1999 |
marcel |
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.
|
50476 |
28-Aug-1999 |
peter |
$Id$ -> $FreeBSD$
|
50088 |
20-Aug-1999 |
mdodd |
Fix MLINKS.
Noticed by: Norman C. Rice <nrice@emu.sourcee.com>
|
50070 |
20-Aug-1999 |
mdodd |
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.
|
48794 |
12-Jul-1999 |
nik |
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
|
42450 |
09-Jan-1999 |
jdp |
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.
|
41421 |
30-Nov-1998 |
dfr |
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>
|
39327 |
16-Sep-1998 |
imp |
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...
|
37303 |
30-Jun-1998 |
bde |
Fixed print format errors.
|
37199 |
27-Jun-1998 |
brian |
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
|
36853 |
10-Jun-1998 |
phk |
Spelling fixes.
PR: 6903 Reviewed by: phk Submitted by: Josh Gilliam <josh@quick.net>
|
36692 |
06-Jun-1998 |
jkoshy |
Spelling corrections.
PR: 6868 Submitted by: Josh Gilliam <josh@quick.net>
|
36407 |
27-May-1998 |
jkh |
Don't use absolute path. Submitted by: jhay
|
34669 |
19-Mar-1998 |
charnier |
.Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq
|
32697 |
22-Jan-1998 |
helbig |
Don't swap carriage return and new line in quoted mode (after ^V).
|
32566 |
16-Jan-1998 |
bde |
Fixed wrong prototype for history(). Don't (mis)use .Fd outside of the synopsis.
|
29988 |
29-Sep-1997 |
wosch |
Sort cross refereces in section SEE ALSO.
|
27727 |
28-Jul-1997 |
msmith |
Improve dependancy behaviour a little more.
This is still pretty disgusting.
Submitted by: bde
|
27717 |
27-Jul-1997 |
msmith |
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.
|
27631 |
23-Jul-1997 |
msmith |
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)
|
27428 |
15-Jul-1997 |
jdp |
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.
|
27397 |
14-Jul-1997 |
msmith |
Fix vi-mode searching broken with the NetBSD changes update. PR: bin/4064 Submitted by: Wolfgang Helbig <helbig@MX.BA-Stuttgart.De>
|
27182 |
03-Jul-1997 |
bde |
Kill histedit.h again. Importing Lite2 brought it back for some reason (although it hasn't changed).
|
27181 |
03-Jul-1997 |
bde |
This commit was generated by cvs2svn to compensate for changes in r27180, which included commits to RCS files with non-trunk default branches.
|
26982 |
27-Jun-1997 |
ache |
ctype: portability, sign extension and cleanup fixes
|
26981 |
27-Jun-1997 |
ache |
Move editrc.5 from MAN3 to MAN5
|
26933 |
25-Jun-1997 |
msmith |
Pull histedit.h out, it lives in /usr/src/include, not here.
|
26927 |
25-Jun-1997 |
msmith |
Add extra test functionality.
Obtained from: NetBSD
|
26926 |
25-Jun-1997 |
msmith |
Update libedit with changes from NetBSD. Includes history load/save, some buffer overflow guards and some stylistic cleanups. Also adds manpages.
Obtained from: NetBSD
|
24156 |
23-Mar-1997 |
imp |
Fix a minor buffer overflow.
Obtained from: BSDi by way of Keith Bostic
|
17929 |
30-Aug-1996 |
peter |
Add missing DPADD, remove duplicate -ltermcap
|
17524 |
11-Aug-1996 |
ache |
8bit cleaness (ctype) fixes
|
17141 |
12-Jul-1996 |
jkh |
General -Wall warning cleanup, part I. Submitted-By: Kent Vander Velden <graphix@iastate.edu>
|
13123 |
30-Dec-1995 |
peter |
This commit was generated by cvs2svn to compensate for changes in r13122, which included commits to RCS files with non-trunk default branches.
|
12565 |
02-Dec-1995 |
peter |
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>
|
11678 |
22-Oct-1995 |
bde |
Update to 4.4lite2 (initialize arrow key data completely).
|
10482 |
30-Aug-1995 |
ache |
Change my parse fix from 'return argc' to 'return 0'. Pointed by: davidg
|
9914 |
04-Aug-1995 |
ache |
Fix sh coredump in vi mode with empty colon command
|
9901 |
04-Aug-1995 |
ache |
Simplify baud printing code
|
9898 |
04-Aug-1995 |
ache |
Nuke local termcap.h and use system one
|
8870 |
30-May-1995 |
rgrimes |
Remove trailing whitespace.
|
3527 |
12-Oct-1994 |
ache |
Add LDADD+= -ltermcap
|
3298 |
02-Oct-1994 |
ache |
Little regex code cleaness, idea from jgreco@ns.sol.net
|
3288 |
02-Oct-1994 |
ache |
Fix bug with 8-bit chars sign extention (ctype not works)
|
3285 |
02-Oct-1994 |
ache |
Rewritten using POSIX regex Add 57600 and 115200 speeds Correct termcap path
|
2678 |
11-Sep-1994 |
rgrimes |
Change all references to LIBTERM and -ltermlib to LIBTERMCAP and -ltermcap
|
2622 |
09-Sep-1994 |
csgr |
In emacs editing mode, sh treated ^D at the end of a line as EOF. (Apparently by Christos Zoulas.) Liberated from: NetBSD
|
2375 |
28-Aug-1994 |
bde |
Add dependencies on libraries to DPADD. Someday this should be done automagically. -lfoo has to be right to work, but ${LIBFO0} is too easy to forget or misspell; nothing checks it and it should be different for shared libraries.
|
1963 |
08-Aug-1994 |
jkh |
Make this work even if make depend is not run. Reviewed by: Submitted by: jkh
|
1840 |
04-Aug-1994 |
wollman |
histedit.h is now installed from include.
|
1574 |
27-May-1994 |
rgrimes |
This commit was generated by cvs2svn to compensate for changes in r1573, which included commits to RCS files with non-trunk default branches.
|