Lines Matching refs:fpos
39 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()
372 if ((fpos = lseek(fd, 0, SEEK_CUR)) == -1) { in back_lines()
377 if (fpos > bytes_read) { in back_lines()
379 if (fpos < BUF_SIZE / 2 + bytes_read) { in back_lines()
387 page = buf + fpos - bytes_read; in back_lines()
467 int i = 0, fpos; in get_line() local
474 if ((fpos = lseek(fd, 0, SEEK_CUR)) == -1) { in get_line()
480 if (fpos < file_size) { /* Not end of file yet */ in get_line()
518 int fpos, percent; in print_position() local
520 if ((fpos = lseek(fd, 0, SEEK_CUR)) == -1) { in print_position()
528 100 : ((fpos - bytes_read + page - buf) * 100) / file_size; in print_position()