Home | History | Annotate | Download | only in examples

Lines Matching refs:HEAD

316 #define HEAD sizeof(log_gzhead)     /* should be 16 */
318 /* initial gzip extra field content (52 == HEAD + EXTRA + 1) */
413 unsigned char buf[HEAD + EXTRA];
416 read(log->fd, buf, HEAD + EXTRA) != HEAD + EXTRA ||
417 memcmp(buf, log_gzhead, HEAD)) {
420 log->first = PULL8(buf + HEAD);
421 log->last = PULL8(buf + HEAD + 8);
422 log->ccrc = PULL4(buf + HEAD + 16);
423 log->clen = PULL4(buf + HEAD + 20);
424 log->tcrc = PULL4(buf + HEAD + 24);
425 log->tlen = PULL4(buf + HEAD + 28);
426 log->stored = PULL2(buf + HEAD + 32);
427 log->back = 3 + (buf[HEAD + 34] & 7);
428 op = (buf[HEAD + 34] >> 3) & 3;
451 ret = lseek(log->fd, HEAD, SEEK_SET) < 0 ||
836 if (write(log->fd, log_gzhead, HEAD) != HEAD ||