The NetBSD Project

CVS log for src/lib/libedit/history.c

[BACK] Up to [cvs.NetBSD.org] / src / lib / libedit

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.64: download - view: text, markup, annotated - select for diffs
Thu Jul 11 05:41:24 2024 UTC (6 months, 1 week ago) by kre
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +8 -5 lines
Don't fchmod(fileno(fp), ...) in history_save_fp().

There are two reasons for this, first, the permissions of the history
file should be able to be set by the user, not forced to 0600 every
time the history file is overwritten (or appended to).

And more importantly, the fp used for fileno(fp) might have come
from fmemopen() or funopen() (etc) - none of which put a file
descriptor in the "fd" field (ie: fileno(fp) == -1).

To compensate for that, when a history file is opened (in history_save())
set the default permissions then - if the file is actually created.
As fopen() cannot do that (it simply uses 0666&~umask) create the
(normal type) of fp using (approximately) fdopen(open(...), ...)
where the open supplies the 0600 default permissions that are
desired here (which might still be restricted even more by the
umask).   Callers using history(...,H_SAVE_FP,...) or
history(...,H_NSAVE_FP,...) now need to look after any permission
setting required themselves (but as the doc says absolutely
nothing about that, one way or the other, what happens in this
area has always been unspecified, and still is)

One "feature" of the fchmod() method is lost here - apart from forcing
the 0600 permissions (which isn't really desirable) that fchmod()
would also have failed if the current (effective) uid is not the owner of
the history file (or root).    If that is required, a test for it could
be added later - the effect would be as it has always been, the file
named must have been writable (or its directory writable if the file
did not exist) the open would occur (potentially truncating the file)
after which the fchmod() would be attempted, possibly failing, and if
so, never writing anything.   Any new uid test would work the same way.

OK christos@

Revision 1.59.4.2: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:03:12 2020 UTC (4 years, 9 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.59.4.1: preferred, colored; branchpoint 1.59: preferred, colored; next MAIN 1.60: preferred, colored
Changes since revision 1.59.4.1: +8 -6 lines
Mostly merge changes from HEAD upto 20200411

Revision 1.63: download - view: text, markup, annotated - select for diffs
Tue Oct 8 19:17:57 2019 UTC (5 years, 3 months ago) by christos
Branches: MAIN
CVS tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, netbsd-10-base, netbsd-10-1-RELEASE, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +8 -6 lines
Change strncpy to either memcpy (when we know the len), or strlcpy (when
we used to NUL terminate explicitly.

Revision 1.59.4.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:05:23 2019 UTC (5 years, 7 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +7 -3 lines
Sync with HEAD

Revision 1.59.2.1: download - view: text, markup, annotated - select for diffs
Sun Sep 30 01:45:33 2018 UTC (6 years, 3 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.59: preferred, colored; next MAIN 1.60: preferred, colored
Changes since revision 1.59: +7 -3 lines
Ssync with HEAD

Revision 1.62: download - view: text, markup, annotated - select for diffs
Thu Sep 13 09:03:40 2018 UTC (6 years, 4 months ago) by kre
Branches: MAIN
CVS tags: phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, netbsd-9-base, netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +3 -3 lines

Fix editing mistake, remove ) from func call that is now gone.

Revision 1.61: download - view: text, markup, annotated - select for diffs
Thu Sep 13 01:26:33 2018 UTC (6 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +3 -3 lines
more efficient to use decode_result :-) Pointed out by kre@

Revision 1.60: download - view: text, markup, annotated - select for diffs
Wed Sep 12 22:10:35 2018 UTC (6 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +6 -2 lines
PR/53597: Yasuhiro Horimoto: Avoid segmentation fault in bad history file.

Revision 1.59: download - view: text, markup, annotated - select for diffs
Sat Dec 23 18:25:03 2017 UTC (7 years, 1 month ago) by uwe
Branches: MAIN
CVS tags: phil-wifi-base, pgoyette-compat-base, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: phil-wifi, pgoyette-compat
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +6 -4 lines
The order in which the arguments to a function are evaluated is
undefined, so don't use va_arg() twice.

PR lib/52849

Revision 1.58: download - view: text, markup, annotated - select for diffs
Fri Sep 1 10:19:10 2017 UTC (7 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +25 -10 lines
PR/51517: Jay West: Tty settings not restored on exit
PR/51518: Jay West: prompt is interleaved with client output

Both these issues are caused by rl_restore_handler not DTRT; fix
it so that it kills the internal libedit state completely. This is
inefficient, but it works.

Also fix:
1. add append_history()/H_NSAVE_FP
2. call the rl_startup_hook before printing the first prompt as documented.
   callint it from rl_initialize breaks python, because the callback ends
   up being invoked before the readline module is installed, and we end up
   dereferencing a NULL pointer.
3. add el_resize_terminal.

With those changes, s/lreadline/ledit/g in python works.

Revision 1.57: download - view: text, markup, annotated - select for diffs
Mon Apr 11 18:56:31 2016 UTC (8 years, 9 months ago) by christos
Branches: MAIN
CVS tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +62 -61 lines
Get rid of private/public; keep protected (Ingo Schwarze)

Revision 1.56: download - view: text, markup, annotated - select for diffs
Mon Apr 11 16:06:52 2016 UTC (8 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +5 -3 lines
chartype cleanups from Ingo Schwarze:

 - The file tokenizer.c no longer uses chartype.h,
   so don't include the header.

 - The dummy definitions of ct_{de,en}code_string() for the
   NARROWCHAR case are only used in history.c, so move them there.

 - Now the whole content of chartype.h is for the wide character
   case only.  So remove the NARROWCHAR ifdef and include the
   header only in the wide character case.

 - In chartype.h, move ct_encode_char() below the comment explaining it.

 - No more need for underscores before ct_{de,en}code_string().

 - Make the conversion buffer resize functions private.
   They are only called from the decoding and encoding functions
   inside chartype.c, and no need can possibly arise to call them
   from anywhere else.

Revision 1.55: download - view: text, markup, annotated - select for diffs
Mon Apr 11 00:50:13 2016 UTC (8 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +4 -2 lines
Char -> wchar_t from Ingo Schwarze.

Revision 1.54: download - view: text, markup, annotated - select for diffs
Mon Apr 11 00:22:48 2016 UTC (8 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +34 -2 lines
more macro WIDECHAR undoing from Ingo Schwarze.

Revision 1.53: download - view: text, markup, annotated - select for diffs
Wed Mar 23 22:27:48 2016 UTC (8 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +4 -4 lines
Start removing the WIDECHAR ifdefs; building without it has stopped working
anyway. (Ingo Schwarze)

Revision 1.52: download - view: text, markup, annotated - select for diffs
Wed Feb 17 19:47:49 2016 UTC (8 years, 11 months ago) by christos
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +6 -6 lines
whitespace and header sorting changes (Ingo Schwarze). No functional changes.

Revision 1.51: download - view: text, markup, annotated - select for diffs
Mon Feb 15 21:35:52 2016 UTC (8 years, 11 months ago) by christos
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +2 -4 lines
Don't free getline memory (Ingo Schwarze).

Revision 1.50: download - view: text, markup, annotated - select for diffs
Mon Feb 15 15:53:45 2016 UTC (8 years, 11 months ago) by christos
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +14 -8 lines
Use getline for better portability.

Revision 1.49: download - view: text, markup, annotated - select for diffs
Mon Feb 15 15:30:50 2016 UTC (8 years, 11 months ago) by christos
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +4 -4 lines
Change the test for the size of encoded buffer to include the NULL, from
OpenBSD; no functional change.

Revision 1.48: download - view: text, markup, annotated - select for diffs
Mon Feb 15 15:26:48 2016 UTC (8 years, 11 months ago) by christos
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +7 -12 lines
Use fparseln to avoid newline hacks.

Revision 1.46.6.1: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:02:17 2014 UTC (10 years, 5 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.46: preferred, colored; next MAIN 1.47: preferred, colored
Changes since revision 1.46: +30 -9 lines
Rebase to HEAD as of a few days ago.

Revision 1.46.16.1: download - view: text, markup, annotated - select for diffs
Sun Aug 10 06:51:57 2014 UTC (10 years, 5 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.46: preferred, colored; next MAIN 1.47: preferred, colored
Changes since revision 1.46: +30 -9 lines
Rebase.

Revision 1.45.2.2: download - view: text, markup, annotated - select for diffs
Thu May 22 11:36:55 2014 UTC (10 years, 8 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.45.2.1: preferred, colored; branchpoint 1.45: preferred, colored; next MAIN 1.46: preferred, colored
Changes since revision 1.45.2.1: +30 -9 lines
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")

Revision 1.47: download - view: text, markup, annotated - select for diffs
Sun May 11 01:05:17 2014 UTC (10 years, 8 months ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +30 -9 lines
Add a history function that takes a FILE pointer; needed for Capsicum.
From Eitan Adler

Revision 1.45.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:05:27 2012 UTC (12 years, 9 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +4 -3 lines
sync with head

Revision 1.46: download - view: text, markup, annotated - select for diffs
Fri Nov 18 20:39:18 2011 UTC (13 years, 2 months ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, agc-symver-base, agc-symver
Branch point for: tls-maxphys, tls-earlyentropy
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +4 -3 lines
Add coverity annotations about unreachable code (Kamil Dudka)

Revision 1.45: download - view: text, markup, annotated - select for diffs
Fri Jul 29 23:44:44 2011 UTC (13 years, 5 months ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base
Branch point for: yamt-pagecache
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +4 -4 lines
pass -Wconversion

Revision 1.44: download - view: text, markup, annotated - select for diffs
Fri Jul 29 20:58:07 2011 UTC (13 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +2 -6 lines
- fix unused params
- unconditionalize vis.h

Revision 1.43: download - view: text, markup, annotated - select for diffs
Fri Jul 29 15:16:33 2011 UTC (13 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +60 -60 lines
KNF return (\1); -> return \1;

Revision 1.42: download - view: text, markup, annotated - select for diffs
Thu Jul 28 20:50:55 2011 UTC (13 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +45 -45 lines
kill ptr_t and ioctl_t, add  * sizeof(*foo) to all allocations.

Revision 1.41: download - view: text, markup, annotated - select for diffs
Thu Jul 28 00:43:33 2011 UTC (13 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +3 -3 lines
include vis.h from dot.

Revision 1.40: download - view: text, markup, annotated - select for diffs
Wed Jul 27 13:18:20 2011 UTC (13 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +4 -3 lines
fix narrow compilation

Revision 1.39: download - view: text, markup, annotated - select for diffs
Wed Jul 27 02:23:29 2011 UTC (13 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +21 -17 lines
- don't leave cursor dangling on memory failure or after clearing the list
- compute the string length to be strvis'ed after the string is encoded

Revision 1.38: download - view: text, markup, annotated - select for diffs
Sun Jan 16 03:05:51 2011 UTC (14 years ago) by christos
Branches: MAIN
CVS tags: cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +3 -3 lines
off by one in fetching history data. From: Gerry Swislow

Revision 1.37: download - view: text, markup, annotated - select for diffs
Sun Jan 3 18:27:10 2010 UTC (15 years ago) by christos
Branches: MAIN
CVS tags: matt-mips64-premerge-20101231
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +3 -3 lines
rename historyw -> history_w for consistency.
add wide tst code and make it the default.

Revision 1.36: download - view: text, markup, annotated - select for diffs
Wed Dec 30 23:54:52 2009 UTC (15 years ago) by christos
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +7 -7 lines
Fix wide build, test it, but don't turn it on yet.

Revision 1.35: download - view: text, markup, annotated - select for diffs
Wed Dec 30 22:37:40 2009 UTC (15 years ago) by christos
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +128 -120 lines
Wide character support (UTF-8) from Johny Mattsson; currently disabled.

Revision 1.34: download - view: text, markup, annotated - select for diffs
Mon Sep 7 21:24:33 2009 UTC (15 years, 4 months ago) by christos
Branches: MAIN
CVS tags: matt-premerge-20091211
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +103 -4 lines
apply apple patches from:
http://opensource.apple.com/source/libedit/libedit-11/patches/

Revision 1.33: download - view: text, markup, annotated - select for diffs
Fri Feb 6 14:40:32 2009 UTC (15 years, 11 months ago) by sketch
Branches: MAIN
CVS tags: jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +4 -4 lines
Plug memory leak, from MySQL.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Thu Sep 28 13:52:51 2006 UTC (18 years, 3 months ago) by christos
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, mjf-devfs2-base, mjf-devfs2, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +3 -2 lines
Fix memory leak found by valgrind (Julien Torres)

Revision 1.31: download - view: text, markup, annotated - select for diffs
Mon Aug 1 14:34:06 2005 UTC (19 years, 5 months ago) by christos
Branches: MAIN
CVS tags: abandoned-netbsd-4-base, abandoned-netbsd-4
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +3 -2 lines
Don't forget to initialize h_del; from  Julien Torres.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Thu Jul 14 15:00:58 2005 UTC (19 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +38 -7 lines
PR/30747: David N. Williams: libedit is missing remove_history()
Added, please test.

Revision 1.29: download - view: text, markup, annotated - select for diffs
Wed Jul 6 21:13:02 2005 UTC (19 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +3 -2 lines
Fix memory leaks found by valgrind. From Julien Torres

Revision 1.28: download - view: text, markup, annotated - select for diffs
Sat Nov 27 18:31:45 2004 UTC (20 years, 1 month ago) by christos
Branches: MAIN
CVS tags: netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +12 -14 lines
PR/26785: Jess Thrysoee: libedit - H_NEXT and H_PREV shifts cursor on failure

Revision 1.27: download - view: text, markup, annotated - select for diffs
Tue Aug 24 12:41:06 2004 UTC (20 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +4 -4 lines
make sure that we round up to 1K.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Fri Aug 20 12:54:05 2004 UTC (20 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +3 -3 lines
PR/26725: Sergey S. Kostyliov: Typo in libedit, possible buffer overflow in src/lib/libedit/history.c:history_save()

Revision 1.25: download - view: text, markup, annotated - select for diffs
Sat Oct 18 23:48:42 2003 UTC (21 years, 3 months ago) by christos
Branches: MAIN
CVS tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +4 -3 lines
change allocation policy in el_push to allocate the string itself.
fix issues with strdup.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Thu Aug 7 16:44:31 2003 UTC (21 years, 5 months ago) by agc
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +3 -7 lines
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Thu Jun 19 15:55:06 2003 UTC (21 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +5 -4 lines
From michael@moria.de:
- use __attribute__((__unused__)) in arguments where appropriate.
- some int -> size_t and char * to const char * conversions.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Tue Jan 21 18:40:24 2003 UTC (22 years ago) by christos
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +68 -16 lines
Add a uniquefier for the history function.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Sun Oct 27 20:24:28 2002 UTC (22 years, 3 months ago) by christos
Branches: MAIN
CVS tags: fvdl_fs64_base
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +57 -23 lines
don't crash in memory shortage conditions.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Sun Oct 13 17:15:53 2002 UTC (22 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +3 -3 lines
write the vis(3) converted string into the file, not the original one.
Noted by Tim Robbins. Hi luke!

Revision 1.19: download - view: text, markup, annotated - select for diffs
Mon Mar 18 16:00:54 2002 UTC (22 years, 10 months ago) by christos
Branches: MAIN
CVS tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +19 -12 lines
- constify; passes all gcc and lint strict checks.
- add config.h [Jason Evans], to create a portable version of libedit that
  can be easily compiled on other OS's.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Sat Sep 29 17:52:10 2001 UTC (23 years, 3 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +3 -3 lines
history_def_enter: fix off-by-one mistake in delete condition (the behaviour
to keep at least one entry on the history list is retained)
This fixes lib/9704 by Phil Nelson.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Tue Mar 20 00:08:31 2001 UTC (23 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +4 -2 lines
chmod the history file to 600 so that only the owner can read it.
[inspired by the openbsd fix to readline]

Revision 1.16: download - view: text, markup, annotated - select for diffs
Mon Sep 4 22:06:30 2000 UTC (24 years, 4 months ago) by lukem
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +571 -643 lines
convert to new style guide, which includes:
- ansi prototypes & features (such as stdargs)
- 8 space indents

Revision 1.15: download - view: text, markup, annotated - select for diffs
Tue Aug 29 07:04:32 2000 UTC (24 years, 4 months ago) by lukem
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +3 -3 lines
history_def_set has a `const int' as a third arg, not an `int'.
picked up by the ultrix compiler, reported by simonb@ ...

Revision 1.14: download - view: text, markup, annotated - select for diffs
Fri Jul 2 15:21:25 1999 UTC (25 years, 6 months ago) by simonb
Branches: MAIN
CVS tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5, minoura-xpg4dl-base, minoura-xpg4dl, comdex-fall-1999-base, comdex-fall-1999
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +9 -9 lines
More trailing white space.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Sat Mar 6 00:17:25 1999 UTC (25 years, 10 months ago) by mycroft
Branches: MAIN
CVS tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +3 -3 lines
Add missing , in he_errlist[] initializer.  Yay lint.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Fri Feb 5 20:52:23 1999 UTC (25 years, 11 months ago) by christos
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +43 -16 lines
Encode the history lines using strvis() before saving it. Fixes gdb history
problem with missing newlines.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Sat Dec 12 19:52:51 1998 UTC (26 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +7 -2 lines
- missing error message from array could cause core dump
- delint

Revision 1.10: download - view: text, markup, annotated - select for diffs
Thu Dec 3 17:51:16 1998 UTC (26 years, 1 month ago) by cgd
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +3 -3 lines
per e-mail with christos: history_next_event() should return -1, not NULL,
in case of error, just like history_prev_event() does.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Wed May 20 01:37:54 1998 UTC (26 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +14 -4 lines
Add H_APPEND to simplify the interface.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Wed May 20 01:02:38 1998 UTC (26 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +86 -37 lines
Add a function to be able to set the cursor to a given event number.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Tue Oct 14 15:05:54 1997 UTC (27 years, 3 months ago) by christos
Branches: MAIN
CVS tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +301 -151 lines
PR/4257: Jaromir Dolecek: history() has no generic error handling and isn't
reentrant. This changes the interface of the history function, so we need
a major number bump.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Sun Jul 6 18:25:27 1997 UTC (27 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +6 -1 lines
Fix compiler warnings.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Fri Apr 11 17:52:46 1997 UTC (27 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +4 -4 lines
Portability fixes:
__const		-> const
BADSIG		-> SIG_ERR
int flags	-> u_int flags
#if __STDC__	-> #ifdef __STDC__

Revision 1.4: download - view: text, markup, annotated - select for diffs
Thu Jan 23 14:02:45 1997 UTC (28 years ago) by mrg
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +3 -3 lines
- convert unsafe strcpy(), strcat() and sprintf() to the `n' versions.
- some KNF.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Sat Jan 11 06:47:57 1997 UTC (28 years ago) by lukem
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +2 -0 lines
RCSid police
editline first appeared in 4.4BSD not NetBSD1.0

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sun Oct 15 19:42:10 1995 UTC (29 years, 3 months ago) by christos
Branches: MAIN
CVS tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +127 -39 lines
Added history load and save to file functions.

Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Fri May 6 06:01:44 1994 UTC (30 years, 8 months ago) by cgd
Branches: CSRG
CVS tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1, netbsd-1-0-base, netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0, netbsd-1-0, lite-2, lite-1
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +0 -0 lines
libedit!

Revision 1.1: download - view: text, markup, annotated - select for diffs
Fri May 6 06:01:43 1994 UTC (30 years, 8 months ago) by cgd
Branches: MAIN
Initial revision

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>