Home | History | Annotate | Download | only in examples

Lines Matching full:write

94 /* write an unsigned long little-endian to byte buffer */
105 /* write an off_t little-endian to byte buffer */
158 /* if file is empty, write new gzip stream */
160 if (write(log->fd, empty_gz, sizeof(empty_gz)) != sizeof(empty_gz)) {
216 /* set up to write over empty last block */
225 /* write a block to a log object */
237 /* write stored blocks until all of the input is written */
242 if (write(log->fd, data, some) != some)
256 if (write(log->fd, temp, 5) != 5)
334 if (write(log->fd, out, len) != len) {
340 /* write last empty block, crc, and length */
346 if (write(log->fd, temp, 13) != 13)
356 if (write(log->fd, temp, 16) != 16)
383 if (write(log->fd, temp, 5) != 5)
388 /* write last block (empty) */
389 if (write(log->fd, "\001\000\000\377\377", 5) != 5)
392 /* write updated crc and uncompressed length */
395 if (write(log->fd, temp, 8) != 8)
401 if (write(log->fd, temp, 8) != 8)