RECORD_LEN
uint8_t record[RECORD_LEN];
st = write(fd, record, RECORD_LEN);
if (st != RECORD_LEN) /* Unexpected for a regular file */
record_offset = table_offset + ind * RECORD_LEN;
avail_offset = record_offset + RECORD_LEN;
*offset += *nrecords * RECORD_LEN;
*offset += *nrecords * RECORD_LEN;
if (*nrecords > MAX_SIZE / RECORD_LEN)
if (*offset > MAX_SIZE - (*nrecords * RECORD_LEN))
uint8_t buf[RECORD_LEN * 2];
st = read(fd, buf, RECORD_LEN * 2);
if (st >= RECORD_LEN) {
if (st == RECORD_LEN * 2) {
memcpy(tag2_out, buf + RECORD_LEN, TAG_LEN);
*timestamp2_out = load_32_be(buf + RECORD_LEN + TAG_LEN);
assert(statbuf.st_size <= (FIRST_TABLE_RECORDS + 1) * RECORD_LEN);