summaryrefslogtreecommitdiff
path: root/net/tnftp/files/libedit/hist.h
diff options
context:
space:
mode:
authorlukem <lukem@pkgsrc.org>2005-05-11 08:11:55 +0000
committerlukem <lukem@pkgsrc.org>2005-05-11 08:11:55 +0000
commitdcfd5954766e4519b50e35f764cf6fc105e797d6 (patch)
treec5e9044ee6abd20c585f6225bc0772c2c3f40fee /net/tnftp/files/libedit/hist.h
parenta6bec2b30fb19dddd7fca1be45d1d6f6527d2d87 (diff)
downloadpkgsrc-dcfd5954766e4519b50e35f764cf6fc105e797d6.tar.gz
tnftp 20050511.
Notable changes: * Improve timeout handling during connection initiation * Prevent coredump with long command lines when editing is enabled.
Diffstat (limited to 'net/tnftp/files/libedit/hist.h')
-rw-r--r--net/tnftp/files/libedit/hist.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/net/tnftp/files/libedit/hist.h b/net/tnftp/files/libedit/hist.h
index efe3431ead2..3799ca1fb28 100644
--- a/net/tnftp/files/libedit/hist.h
+++ b/net/tnftp/files/libedit/hist.h
@@ -1,4 +1,5 @@
-/* $NetBSD: hist.h,v 1.1.1.1 2002/06/05 12:44:29 lukem Exp $ */
+/* NetBSD: hist.h,v 1.2 2005/05/11 01:17:39 lukem Exp */
+/* from NetBSD: hist.h,v 1.10 2003/08/07 16:44:31 agc Exp */
/*-
* Copyright (c) 1992, 1993
@@ -15,11 +16,7 @@
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by the University of
- * California, Berkeley and its contributors.
- * 4. Neither the name of the University nor the names of its contributors
+ * 3. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
@@ -66,7 +63,7 @@ typedef struct el_history_t {
#define HIST_FIRST(el) HIST_FUN(el, H_FIRST, NULL)
#define HIST_LAST(el) HIST_FUN(el, H_LAST, NULL)
#define HIST_PREV(el) HIST_FUN(el, H_PREV, NULL)
-#define HIST_EVENT(el, num) HIST_FUN(el, H_EVENT, num)
+#define HIST_SET(el, num) HIST_FUN(el, H_SET, num)
#define HIST_LOAD(el, fname) HIST_FUN(el, H_LOAD fname)
#define HIST_SAVE(el, fname) HIST_FUN(el, H_SAVE fname)
@@ -74,7 +71,7 @@ protected int hist_init(EditLine *);
protected void hist_end(EditLine *);
protected el_action_t hist_get(EditLine *);
protected int hist_set(EditLine *, hist_fun_t, ptr_t);
-protected int hist_list(EditLine *, int, const char **);
+protected int hist_command(EditLine *, int, const char **);
protected int hist_enlargebuf(EditLine *, size_t, size_t);
#endif /* _h_el_hist */