Lines Matching refs:reclen
196 int reclen; in wlog_record_write() local
207 reclen = wlog_rec_pack(wrec, wbuf, (offset < 0)); in wlog_record_write()
216 wbuf[reclen] = reclen / 256; in wlog_record_write()
217 wbuf[reclen + 1] = reclen % 256; in wlog_record_write()
218 reclen += 2; in wlog_record_write()
220 if (write(wfile->w_afd, wbuf, reclen) == -1) { in wlog_record_write()
223 wfile->w_file, wbuf, reclen, strerror(errno)); in wlog_record_write()
226 offset = lseek(wfile->w_afd, 0, SEEK_CUR) - reclen; in wlog_record_write()
241 if ((write(wfile->w_rfd, wbuf, reclen)) == -1) { in wlog_record_write()
244 wfile->w_file, wbuf, reclen, in wlog_record_write()
265 int fd, leftover, nbytes, offset, recnum, reclen, rval; in wlog_scan_backward() local
352 reclen = (*(cp - 2) * 256) + *(cp - 1); in wlog_scan_backward()
361 if (cp - bufstart < reclen + 2) { in wlog_scan_backward()
374 cp -= reclen + 2; in wlog_scan_backward()
375 memcpy(albuf, cp, reclen); in wlog_scan_backward()