Lines Matching defs:offset

48  *     serial number.  Unused index entries have an "offset"
184 * XXXRTH Should offset be 8 bytes?
190 unsigned char offset[4]; /*%< Offset from beginning of file. */
245 isc_offset_t offset;
248 #define POS_VALID(pos) ((pos).offset != 0)
249 #define POS_INVALIDATE(pos) ((pos).offset = 0, (pos).serial = 0)
292 #define JOURNAL_EMPTY(h) ((h)->begin.offset == (h)->end.offset)
308 isc_offset_t offset; /*%< Current file offset */
344 cooked->offset = decode_uint32(raw->offset);
350 encode_uint32(cooked->offset, raw->offset);
384 journal_seek(dns_journal_t *j, isc_uint32_t offset) {
387 result = isc_stdio_seek(j->fp, (off_t)offset, SEEK_SET);
394 j->offset = offset;
411 j->offset += (isc_offset_t)nbytes;
426 j->offset += (isc_offset_t)nbytes;
646 j->index[i].offset = decode_uint32(p);
651 j->offset = -1; /* Invalid, must seek explicitly. */
800 result = journal_seek(j, pos->offset);
826 * Check for offset wraparound.
828 if ((isc_offset_t)(pos->offset + sizeof(journal_rawxhdr_t) + xhdr.size)
829 < pos->offset) {
831 "%s: offset too large", j->filename);
835 pos->offset += sizeof(journal_rawxhdr_t) + xhdr.size;
969 isc_uint32_t offset;
978 * Find the file offset where the new transaction should
982 offset = sizeof(journal_rawheader_t) +
985 offset = j->header.end.offset;
987 j->x.pos[0].offset = offset;
988 j->x.pos[1].offset = offset; /* Initial value, will be incremented. */
991 CHECK(journal_seek(j, offset));
1000 j->x.pos[1].offset = j->offset;
1076 j->x.pos[1].offset += used.length;
1170 isc_offset_t offset;
1171 offset = (j->x.pos[1].offset - j->x.pos[0].offset) -
1176 CHECK(journal_seek(j, j->x.pos[0].offset));
1177 CHECK(journal_write_xhdr(j, offset, j->x.pos[0].serial,
1637 CHECK(journal_seek(j, j->it.bpos.offset));
1660 INSIST(j->offset <= j->it.epos.offset);
1661 if (j->offset == j->it.epos.offset)
2148 if ((isc_uint32_t) j1->header.end.offset < target_size) {
2168 ((isc_uint32_t)(j1->header.end.offset - j1->index[i].offset)
2170 j1->index[i].offset > best_guess.offset)
2181 ((isc_uint32_t)(j1->header.end.offset - current_pos.offset)
2183 current_pos.offset > best_guess.offset)
2198 copy_length = j1->header.end.offset - best_guess.offset;
2213 CHECK(journal_seek(j1, best_guess.offset));
2228 j2->header.begin.offset = indexend;
2230 j2->header.end.offset = indexend + copy_length;
2257 indexend = j2->header.end.offset;
2325 encode_uint32(j->index[i].offset, p);