Home
last modified time | relevance | path

Searched refs:fp (Results 1 – 8 of 8) sorted by relevance

/libedit-20250104-3.1/src/
Del.c379 FILE *fp; in el_wset() local
383 fp = va_arg(ap, FILE *); in el_wset()
388 el->el_infile = fp; in el_wset()
392 el->el_outfile = fp; in el_wset()
396 el->el_errfile = fp; in el_wset()
553 FILE *fp; in el_source() local
561 fp = NULL; in el_source()
585 if (fp == NULL) in el_source()
586 fp = fopen(fname, "r"); in el_source()
587 if (fp == NULL) { in el_source()
[all …]
Dgetline.c48 getdelim(char **buf, size_t *bufsiz, int delimiter, FILE *fp) in getdelim() argument
60 int c = fgetc(fp); in getdelim()
62 if (feof(fp)) { in getdelim()
91 getline(char **buf, size_t *bufsiz, FILE *fp) in getline() argument
93 return getdelim(buf, bufsiz, '\n', fp); in getline()
Dhist.h69 #define HIST_SAVE_FP(el, fp) HIST_FUN(el, H_SAVE_FP, fp) argument
70 #define HIST_NSAVE_FP(el, n, fp) HIST_FUN(el, H_NSAVE_FP, n, fp) argument
Dreadline.c1290 FILE *fp, *tp; in history_truncate_file() local
1317 if (ferror(fp)) { in history_truncate_file()
1327 if (ferror(fp)) { in history_truncate_file()
1399 if (ferror(fp)) in history_truncate_file()
1408 fflush(fp); in history_truncate_file()
1409 if((off = ftello(fp)) > 0) in history_truncate_file()
1410 (void)ftruncate(fileno(fp), off); in history_truncate_file()
1416 fclose(fp); in history_truncate_file()
1465 FILE *fp; in append_history() local
1477 fclose(fp); in append_history()
[all …]
Dkeymacro.c583 el_bindings_t *fp; in keymacro_kprint() local
597 for (fp = el->el_map.help; fp->name; fp++) in keymacro_kprint()
598 if (val->cmd == fp->func) { in keymacro_kprint()
599 wcstombs(unparsbuf, fp->name, sizeof(unparsbuf)); in keymacro_kprint()
606 if (fp->name == NULL) in keymacro_kprint()
Dhistory.c776 FILE *fp; in history_load() local
789 if ((fp = fopen(fname, "r")) == NULL) in history_load()
794 if ((sz = getline(&line, &llen, fp)) == -1) in history_load()
829 (void) fclose(fp); in history_load()
838 history_save_fp(TYPE(History) *h, size_t nelem, FILE *fp) in history_save_fp() argument
849 if (ftell(fp) == 0 && fputs(hist_cookie, fp) == EOF) in history_save_fp()
878 (void) fprintf(fp, "%s\n", ptr); in history_save_fp()
893 FILE *fp; in history_save() local
900 if ((fp = fdopen(i, "w")) == NULL) in history_save()
903 i = history_save_fp(h, (size_t)-1, fp); in history_save()
[all …]
Deln.c251 FILE *fp = va_arg(ap, FILE *); in el_set() local
252 ret = el_wset(el, op, what, fp); in el_set()
Dsys.h96 ssize_t getline(char **line, size_t *len, FILE *fp);