/openbsd-current/bin/ksh/ |
H A D | history.c | 1 /* $OpenBSD: history.c,v 1.84 2019/10/27 15:02:19 jca Exp $ */ 4 * command history 9 * a) the original in-memory history mechanism 39 static char **histbase; /* actual start of the history[] allocation */ 40 static char **current; /* current position in history[] */ 41 static char *hname; /* current name of history file */ 43 static int ignoredups; /* ditch duplicated history lines? */ 64 bi_errorf("history function called recursively"); 69 bi_errorf("history functions not available"); 196 /* List history */ [all...] |
H A D | lex.h | 108 #define HISTORYSIZE 500 /* size of saved history */ 110 extern char **history; /* saved commands */ 111 extern char **histptr; /* last history item */ 112 extern uint32_t histsize; /* history size */
|
/openbsd-current/lib/libedit/TEST/ |
H A D | tc1.c | 129 hist = history_init(); /* Init the builtin history */ 131 history(hist, &ev, H_SETSIZE, 100); 142 /* Tell editline to use this history interface */ 143 el_set(el, EL_HIST, history, hist); 153 * of previous and next history. 203 * moved around in history. 205 if (history(hist, &ev, H_SET, lastevent) == -1) 207 history(hist, &ev, H_ADD , buf); 209 history(hist, &ev, H_ENTER, buf); 214 history(his [all...] |
/openbsd-current/lib/libedit/ |
H A D | readline.c | 153 * When the history cursor is on the newest element and next_history() 190 * generic function for moving around history 198 if (history(h, &ev, op) != 0) 234 static const char _dothistory[] = "/.history"; 316 history(h, &ev, H_SETSIZE, INT_MAX); /* unlimited */ 319 el_set(e, EL_HIST, history, h); 434 history(h, &ev, H_GETSIZE); 441 * history functions 446 * history expansion functions 522 if (history( [all...] |
H A D | histedit.h | 39 * histedit.h: Line editor and history interface. 187 typedef struct history History; 200 int history(History *, HistEvent *, int, ...);
|
H A D | hist.c | 66 * clean up history; 78 * Set new history interface 91 * Get a history line and update it in the buffer. 151 * process a history command 164 /* List history entries */ 178 return history(el->el_history.ref, &ev, H_SETSIZE, num); 181 return history(el->el_history.ref, &ev, H_SETUNIQUE, num); 187 * Enlarge history buffer to specified value. Called from el_enlargebufs().
|
H A D | history.c | 1 /* $OpenBSD: history.c,v 1.29 2023/03/08 04:43:05 guenther Exp $ */ 2 /* $NetBSD: history.c,v 1.37 2010/01/03 18:27:10 christos Exp $ */ 97 struct TYPE(history) { 98 void *h_ref; /* Argument for history fcns */ 99 int h_ent; /* Last entry point for history */ 107 history_vfun_t h_clear; /* Clear the history list */ 150 * Builtin- history implementation 214 STR("can't read history from file"), 215 STR("can't write history"), 217 STR("history siz [all...] |
/openbsd-current/gnu/llvm/lldb/source/Commands/ |
H A D | CommandObjectSession.cpp | 60 : CommandObjectParsed(interpreter, "session history", 61 "Dump the history of commands in this session.\n" 62 "Commands in the history list can be run again " 153 const CommandHistory &history(m_interpreter.GetCommandHistory()); 157 start_idx.second = history.GetSize() - count.second; 158 stop_idx.second = history.GetSize() - 1; 161 stop_idx.second = history.GetSize() - 1; 164 stop_idx.second = history.GetSize() - 1; 169 stop_idx.second = history.GetSize() - 1; 174 stop_idx.second = history [all...] |
/openbsd-current/usr.sbin/config/ |
H A D | ukc.c | 65 char history[1024], kversion[1024]; local 106 if (kvm_read(kd, knl[CA_HISTORY].n_value, history, 107 sizeof(history)) != sizeof(history)) 156 process_history(histlen, history);
|
/openbsd-current/gnu/lib/libreadline/examples/ |
H A D | readlinebuf.h | 36 #include <readline/history.h> 130 readlinebuf( const char* prompt = NULL, bool history = true ) 131 : prompt_( prompt ), history_( history ),
|
H A D | rltest.c | 10 reading lines of text with interactive input and history editing. 36 # include "history.h" 39 # include <readline/history.h>
|
H A D | histexamp.c | 4 reading lines of text with interactive input and history editing. 24 # include "history.h" 26 # include <readline/history.h> 41 printf ("history$ ");
|
H A D | rl.c | 11 reading lines of text with interactive input and history editing. 38 # include "history.h" 41 # include <readline/history.h>
|
H A D | rlcat.c | 10 reading lines of text with interactive input and history editing. 49 # include "history.h" 52 # include <readline/history.h>
|
/openbsd-current/gnu/llvm/lldb/utils/lui/ |
H A D | commandwin.py | 65 self.history = History() 94 self.history, 104 cmd = self.history.previous('') 109 self.history.add(cmd)
|
H A D | cui.py | 252 def __init__(self, win, history, enterCallback, tabCompleteCallback): 254 self.history = history 333 self.content = self.history.previous(self.content) 336 self.content = self.history.next()
|
/openbsd-current/gnu/llvm/llvm/lib/LineEditor/ |
H A D | LineEditor.cpp | 27 sys::path::append(Path, "." + ProgName + "-history"); 211 ::el_set(Data->EL, EL_HIST, history, Data->Hist); 224 ::history(Data->Hist, &HE, H_SETSIZE, 800); 225 ::history(Data->Hist, &HE, H_SETUNIQUE, 1); 240 ::history(Data->Hist, &HE, H_SAVE, HistoryPath.c_str()); 247 ::history(Data->Hist, &HE, H_LOAD, HistoryPath.c_str()); 267 ::history(Data->Hist, &HE, H_ENTER, Line);
|
/openbsd-current/gnu/usr.bin/perl/cpan/CPAN/lib/CPAN/ |
H A D | FTP.pm | 126 $fullstats->{history} ||= []; 127 push @debug, scalar @{$fullstats->{history}} if $sdebug; 129 push @{$fullstats->{history}}, $stats; 136 @{$fullstats->{history} || []} 139 @{$fullstats->{history}} > $ftpstats_size 140 || $time - $fullstats->{history}[0]{start} > 86400*$ftpstats_period 143 shift @{$fullstats->{history}} 145 push @debug, scalar @{$fullstats->{history}} if $sdebug; 147 push @debug, scalar localtime($fullstats->{history}[0]{start}) if $sdebug; 154 CPAN->debug(sprintf("DEBUG history [all...] |
/openbsd-current/sys/dev/pci/drm/i915/gt/ |
H A D | selftest_timeline.c | 68 struct intel_timeline **history; member in struct:mock_hwsp_freelist 81 tl = xchg(&state->history[idx], tl); 127 i915_prandom_shuffle(state->history, 128 sizeof(*state->history), 171 state.max = PAGE_SIZE / sizeof(*state.history); 173 state.history = kcalloc(state.max, sizeof(*state.history), GFP_KERNEL); 174 if (!state.history) { 191 kfree(state.history);
|
H A D | selftest_rps.c | 153 u8 history[64], i; local 158 memset(history, freq, sizeof(history)); 175 if (!memchr_inv(history, act, sizeof(history))) 178 history[i] = act; 179 i = (i + 1) % ARRAY_SIZE(history);
|
/openbsd-current/regress/lib/libedit/readline/ |
H A D | history.c | 1 /* $OpenBSD: history.c,v 1.7 2017/07/05 15:31:45 bluhm Exp $ */ 24 #include <readline/history.h> 115 * Move to the most recent end of the history. 259 /* Reduce the size of the history. */ 268 /* Fails if add doesn't increase history_base if the history is full. */
|
/openbsd-current/gnu/usr.bin/perl/dist/Term-ReadLine/lib/Term/ |
H A D | ReadLine.pm | 59 adds the line to the history of input, from where it can be used if 70 be included into history. C<undef> means do not include anything into 71 history. Returns the old value. 93 lines are put into history automatically (maybe subject to
|
/openbsd-current/gnu/usr.bin/perl/cpan/CPAN-Meta/lib/CPAN/Meta/ |
H A D | History.pm | 11 # ABSTRACT: history of CPAN Meta Spec changes 21 CPAN::Meta::History - history of CPAN Meta Spec changes 35 This document reconstructs the history of the CPAN Meta Spec based on
|
/openbsd-current/gnu/usr.bin/binutils-2.17/gas/config/ |
H A D | tc-mips.c | 607 instruction further if we're thinking about using history[0] to 609 static struct mips_cl_insn history[1 + MAX_NOPS]; variable in typeref:struct:mips_cl_insn 1357 /* Insert N copies of INSN into the history buffer, starting at 1368 for (i = ARRAY_SIZE (history); i-- > first;) 1370 history[i] = history[i - n]; 1372 history[i] = *insn; 1376 /* Emit a nop instruction, recording it in the history buffer. */ 2096 prev_pinfo = history[0].insn_mo->pinfo; 2107 if (reg == EXTRACT_OPERAND (RT, history[ 2352 nops_for_vr4130(const struct mips_cl_insn *history, const struct mips_cl_insn *insn) argument 2395 nops_for_insn(const struct mips_cl_insn *history, const struct mips_cl_insn *insn) argument 2424 nops_for_sequence(int num_insns, const struct mips_cl_insn *history, ...) argument 2446 nops_for_insn_or_target(const struct mips_cl_insn *history, const struct mips_cl_insn *insn) argument [all...] |
/openbsd-current/sbin/fsdb/ |
H A D | fsdb.c | 274 history(hist, &hev, H_SETSIZE, 100); /* 100 elt history buffer */ 279 el_set(elptr, EL_HIST, history, hist); 286 history(hist, &hev, H_ENTER, elline);
|