Lines Matching refs:BUF_SIZE
63 if ((buf = malloc(BUF_SIZE + 1)) == NULL) { in dialog_textbox()
68 if ((bytes_read = read(fd, buf, BUF_SIZE)) == -1) { in dialog_textbox()
145 read(fd, buf, BUF_SIZE)) == -1) { in dialog_textbox()
170 if (lseek(fd, -BUF_SIZE, SEEK_END) == -1) { in dialog_textbox()
176 read(fd, buf, BUF_SIZE)) == -1) { in dialog_textbox()
331 if (fpos < BUF_SIZE / 2 + bytes_read) { in back_lines()
341 if (lseek (fd, -(BUF_SIZE / 2 + bytes_read), SEEK_CUR) == -1) { in back_lines()
347 page = buf + BUF_SIZE / 2; in back_lines()
350 read(fd, buf, BUF_SIZE)) == -1) { in back_lines()
379 if (fpos < BUF_SIZE / 2 + bytes_read) { in back_lines()
389 if (lseek (fd, -(BUF_SIZE / 2 + bytes_read), SEEK_CUR) == -1) { in back_lines()
395 page = buf + BUF_SIZE / 2; in back_lines()
398 read(fd, buf, BUF_SIZE)) == -1) { in back_lines()
484 read(fd, buf, BUF_SIZE)) == -1) { in get_line()