Lines Matching refs:write
11 strategy is to write the short strings in an uncompressed form to the end of
174 - Update the crc and length with the new data, and write the gzip trailer.
175 - Write over the extra field (with a single write operation) with the new
183 - Read all of the uncompressed data in the stored blocks in foo.gz and write
184 it to foo.add. Also write foo.temp with the last 32K of that data to
191 - Compress the data with the dictionary in foo.dict, and write to the
231 #include <unistd.h> /* lseek, read, write, close, unlink, sleep, */
291 int fd; /* file descriptor for .gz file, opened read/write */
436 point in the process. Return -1 if the write to foo.gz failed. */
452 write(log->fd, ext, EXTRA) != EXTRA ? -1 : 0;
458 boundary, setting the last block bit if last is true, and then write the
461 there is a read or write failure on the foo.gz file */
487 /* write the modified stored block header and lengths, move the file
492 write(log->fd, buf + 2 - len, len + 4) != len + 4 ||
521 if (write(log->fd, data, put) != put)
548 /* write the new crc and length trailer, and truncate just in case (could
552 if (write(log->fd, buf, 8) != 8 ||
556 /* write the extra field, marking the log file as done, delete .add file */
642 /* prime deflate with last bits of previous block, position write
643 pointer to write those bits and overwrite what follows */
663 if (got && write(log->fd, buf, got) != got) {
704 if (log_last(log, 1) || write(log->fd, buf, 8) != 8 ||
808 files. If foo.gz does not exist or is empty, then write the initial header,
839 if (write(log->fd, log_gzhead, HEAD) != HEAD ||
840 write(log->fd, log_gzext, EXTRA) != EXTRA ||
841 write(log->fd, log_gzbody, BODY) != BODY) {
953 /* write the uncompressed data to the .add file */
958 ret = (size_t)write(fd, data, len) != len;
963 /* write the dictionary for the next compress to the .temp file */
969 ret = (size_t)write(fd, (char *)data + len - next, next) != next;
1014 /* create and write .add file */
1019 ret = (size_t)write(fd, data, len) != len;