Lines Matching refs:lseek
415 if (lseek(log->fd, 0, SEEK_SET) < 0 || in log_head()
451 ret = lseek(log->fd, HEAD, SEEK_SET) < 0 || in log_mark()
476 if (back != 8 && (lseek(log->fd, log->last - len, SEEK_SET) < 0 || in log_last()
491 return lseek(log->fd, log->last - len, SEEK_SET) < 0 || in log_last()
493 lseek(log->fd, log->stored, SEEK_CUR) < 0 ? -1 : 0; in log_last()
553 (end = lseek(log->fd, 0, SEEK_CUR)) < 0 || ftruncate(log->fd, end)) in log_append()
644 if (lseek(log->fd, log->first - (log->back > 8 ? 2 : 1), in log_compress()
646 read(log->fd, buf, 1) != 1 || lseek(log->fd, -1, SEEK_CUR) < 0) { in log_compress()
677 if ((log->first = lseek(log->fd, -1, SEEK_CUR)) < 0 || in log_compress()
705 (end = lseek(log->fd, 0, SEEK_CUR)) < 0 || ftruncate(log->fd, end)) in log_compress()
836 if (lseek(log->fd, 0, SEEK_END) == 0) { in log_open()
935 if (lseek(log->fd, log->first - 1, SEEK_SET) < 0) in gzlog_compress()
947 if (lseek(log->fd, 0, SEEK_CUR) != log->last + 4 + log->stored) in gzlog_compress()