Lines Matching refs:output_fd
34 static int output_fd;
47 off_t hdr_pos = lseek(output_fd, 0, SEEK_CUR);
59 if (write(output_fd, &size, hdr_sz) != hdr_sz)
67 if (write(output_fd, buf, r) != r)
77 if (hdr_sz && pwrite(output_fd, sizep, hdr_sz, hdr_pos) < 0) {
104 if (write(output_fd, "header_page", 12) != 12) {
128 if (write(output_fd, "header_event", 13) != 13) {
192 if (write(output_fd, &count, 4) != 4) {
285 if (write(output_fd, &count, 4) != 4) {
305 if (write(output_fd, dent->d_name, size) != size ||
331 return write(output_fd, &size, 4) != 4 ? -EIO : 0;
351 if (write(output_fd, &size, 4) != 4)
379 if (write(output_fd, &size, 8) != 8)
563 if (write(output_fd, buf, 10) != 10)
567 if (write(output_fd, VERSION, size) != size)
576 if (write(output_fd, buf, 1) != 1)
581 if (write(output_fd, buf, 1) != 1)
585 if (write(output_fd, &page_size, 4) != 4)
598 output_fd = fd;
633 output_fd = temp_fd;
662 tdata->size = lseek(output_fd, 0, SEEK_CUR);
663 close(output_fd);
664 output_fd = fd;