Home
last modified time | relevance | path

Searched refs:fpos (Results 1 – 2 of 2) sorted by relevance

/busybox-1.35.0/scripts/kconfig/lxdialog/
Dtextbox.c39 int i, x, y, cur_x, cur_y, fpos, key = 0; in dialog_textbox() local
132 if ((fpos = lseek(fd, 0, SEEK_CUR)) == -1) { in dialog_textbox()
137 if (fpos > bytes_read) { /* Yes, we have to read it in */ in dialog_textbox()
164 if ((fpos = lseek(fd, 0, SEEK_CUR)) == -1) { in dialog_textbox()
169 if (fpos < file_size) { /* Yes, we have to read it in */ in dialog_textbox()
308 int i, fpos; in back_lines() local
318 if ((fpos = lseek(fd, 0, SEEK_CUR)) == -1) { in back_lines()
324 if (fpos > bytes_read) { /* Not beginning of file yet */ in back_lines()
331 if (fpos < BUF_SIZE / 2 + bytes_read) { in back_lines()
339 page = buf + fpos - bytes_read; in back_lines()
[all …]
/busybox-1.35.0/miscutils/
Dless.c925 int fpos = cur_fline; in buffer_fill_and_print() local
929 while (fpos && LINENO(flines[fpos]) == LINENO(flines[fpos-1])) in buffer_fill_and_print()
930 fpos--; in buffer_fill_and_print()
934 while (i <= max_displayed_line && fpos <= max_fline) { in buffer_fill_and_print()
935 int lineno = LINENO(flines[fpos]); in buffer_fill_and_print()
936 buffer[i] = flines[fpos]; in buffer_fill_and_print()
939 fpos++; in buffer_fill_and_print()
940 } while ((fpos <= max_fline) in buffer_fill_and_print()
942 && lineno == LINENO(flines[fpos]) in buffer_fill_and_print()