• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/contrib/libedit/

Lines Matching refs:history

231 	len = strlen(p->pw_dir) + sizeof("/.history");
235 (void)snprintf(path, len, "%s/.history", p->pw_dir);
310 history(h, &ev, H_SETSIZE, INT_MAX); /* unlimited */
313 el_set(e, EL_HIST, history, h);
465 history(h, &ev, H_GETSIZE);
474 * history functions
479 * history expansion functions
556 if (history(h, &ev, H_FIRST) != 0)
613 if (history(h, &ev, H_CURR) != 0) {
632 history(h, &ev, H_FIRST);
648 if (history(h, &ev, H_CURR) != 0)
654 (void)history(h, &ev, H_SET, num);
660 * the real function doing history expansion - takes as argument command
914 * csh-style history expansion
1161 * limit size of history record to ``max'' events
1172 if (history(h, &ev, H_SETSIZE, max) == 0) {
1187 * "unlimit" size of history - set the limit to maximum allowed int value
1195 history(h, &ev, H_SETSIZE, INT_MAX);
1349 * read history from a file given
1361 if (history(h, &ev, H_LOAD, filename) == -1)
1363 if (history(h, &ev, H_GETSIZE) == 0)
1372 * write history to a file given
1383 return history(h, &ev, H_SAVE, filename) == -1 ?
1401 if (history(h, &ev, H_NSAVE_FP, (size_t)n, fp) == -1) {
1411 * returns history ``num''th event
1429 if (history(h, &ev, H_CURR) != 0)
1434 * use H_DELDATA to set to nth history (without delete) by passing
1437 if (history(h, &ev, H_DELDATA, num - history_base, (void **)-1) != 0)
1441 if (history(h, &ev, H_CURR) != 0)
1443 if (history(h, &ev, H_NEXT_EVDATA, ev.num, &she.data) != 0)
1448 (void)history(h, &ev, H_SET, curr_num);
1454 (void)history(h, &ev, H_SET, curr_num);
1460 * add the line to history table
1470 if (history(h, &ev, H_ENTER, line) == -1)
1473 (void)history(h, &ev, H_GETSIZE);
1485 * remove the specified entry from the history list and return it.
1499 if (history(h, &ev, H_DELDATA, num, &he->data) != 0) {
1505 if (history(h, &ev, H_GETSIZE) == 0)
1526 if (history(h, &ev, H_CURR) != 0)
1531 if (history(h, &ev, H_LAST) != 0)
1538 if (history(h, &ev, H_NEXT_EVDATA, num, &he->data))
1545 if (history(h, &ev, H_REPLACE, line, data))
1549 if (history(h, &ev, H_SET, curr_num))
1559 * clear the history list - delete all entries
1569 (void)history(h, &ev, H_CLEAR);
1575 * returns offset of the current history event
1593 if (history(h, &ev, H_LAST) != 0)
1613 } while (history(h, &ev, H_PREV) == 0);
1619 * returns current history event or NULL if there is no such event
1626 if (history(h, &ev, H_PREV_EVENT, history_offset + 1) != 0)
1636 * returns total number of bytes history events' data are using
1645 if (history(h, &ev, H_CURR) != 0)
1649 (void)history(h, &ev, H_FIRST);
1653 while (history(h, &ev, H_NEXT) == 0);
1656 history(h, &ev, H_PREV_EVENT, curr_num);
1663 * sets the position in the history list to ``pos''
1677 * returns previous event in history and shifts pointer accordingly
1688 if (history(h, &ev, H_LAST) != 0)
1697 * returns next event in history and shifts pointer accordingly
1707 if (history(h, &ev, H_LAST) != 0)
1716 * searches for first history event containing the str
1725 if (history(h, &ev, H_CURR) != 0)
1732 if (history(h, &ev, direction < 0 ? H_NEXT:H_PREV) != 0)
1735 (void)history(h, &ev, H_SET, curr_num);
1741 * searches for first history event beginning with str
1748 return (history(h, &ev, direction < 0 ?
1754 * search for event in history containing str, starting at offset
1768 if (history(h, &ev, H_CURR) != 0)
1772 if (!history_set_pos(off) || history(h, &ev, H_CURR) != 0)
1778 if (history(h, &ev, (pos < 0) ? H_PREV : H_NEXT) != 0)
1783 (void)history(h, &ev,