Lines Matching defs:buf
93 static int wlog_rec_pack(struct wlog_rec *wrec, char *buf, int flag);
94 static int wlog_rec_unpack(struct wlog_rec *wrec, char *buf);
266 char buf[BSIZE * 32], *bufend, *cp, *bufstart;
290 bufend = buf + sizeof(buf);
291 bufstart = buf;
298 * remaining to fill buf, adjust bufstart.
301 if ((unsigned int)offset + leftover < sizeof(buf)) {
305 offset -= sizeof(buf) - leftover;
309 * Move to the proper file offset, and read into buf
337 * of buf and continue reading the file.
357 * the leftover bytes to the end of buf and continue
405 static int wlog_rec_pack(struct wlog_rec *wrec, char *buf, int flag)
410 wrecd = (struct wlog_rec_disk *)buf;
431 file = buf + sizeof(struct wlog_rec_disk);
452 static int wlog_rec_unpack(struct wlog_rec *wrec, char *buf)
458 wrecd = (struct wlog_rec_disk *)buf;
471 file = buf + sizeof(struct wlog_rec_disk);
476 host = buf + sizeof(struct wlog_rec_disk) + wrec->w_pathlen;
481 pattern = buf + sizeof(struct wlog_rec_disk) +