Lines Matching refs:wrecd
408 struct wlog_rec_disk *wrecd; in wlog_rec_pack() local
410 wrecd = (struct wlog_rec_disk *)buf; in wlog_rec_pack()
412 wrecd->w_pid = (uint) wrec->w_pid; in wlog_rec_pack()
413 wrecd->w_offset = (uint) wrec->w_offset; in wlog_rec_pack()
414 wrecd->w_nbytes = (uint) wrec->w_nbytes; in wlog_rec_pack()
415 wrecd->w_oflags = (uint) wrec->w_oflags; in wlog_rec_pack()
416 wrecd->w_done = (uint) wrec->w_done; in wlog_rec_pack()
417 wrecd->w_async = (uint) wrec->w_async; in wlog_rec_pack()
419 wrecd->w_pathlen = (wrec->w_pathlen > 0) ? (uint) wrec->w_pathlen : 0; in wlog_rec_pack()
420 wrecd->w_hostlen = (wrec->w_hostlen > 0) ? (uint) wrec->w_hostlen : 0; in wlog_rec_pack()
421 wrecd->w_patternlen = in wlog_rec_pack()
432 host = file + wrecd->w_pathlen; in wlog_rec_pack()
433 pattern = host + wrecd->w_hostlen; in wlog_rec_pack()
435 if (wrecd->w_pathlen > 0) in wlog_rec_pack()
436 memcpy(file, wrec->w_path, wrecd->w_pathlen); in wlog_rec_pack()
438 if (wrecd->w_hostlen > 0) in wlog_rec_pack()
439 memcpy(host, wrec->w_host, wrecd->w_hostlen); in wlog_rec_pack()
441 if (wrecd->w_patternlen > 0) in wlog_rec_pack()
442 memcpy(pattern, wrec->w_pattern, wrecd->w_patternlen); in wlog_rec_pack()
445 wrecd->w_pathlen + wrecd->w_hostlen + in wlog_rec_pack()
446 wrecd->w_patternlen); in wlog_rec_pack()
455 struct wlog_rec_disk *wrecd; in wlog_rec_unpack() local
458 wrecd = (struct wlog_rec_disk *)buf; in wlog_rec_unpack()
460 wrec->w_pid = wrecd->w_pid; in wlog_rec_unpack()
461 wrec->w_offset = wrecd->w_offset; in wlog_rec_unpack()
462 wrec->w_nbytes = wrecd->w_nbytes; in wlog_rec_unpack()
463 wrec->w_oflags = wrecd->w_oflags; in wlog_rec_unpack()
464 wrec->w_hostlen = wrecd->w_hostlen; in wlog_rec_unpack()
465 wrec->w_pathlen = wrecd->w_pathlen; in wlog_rec_unpack()
466 wrec->w_patternlen = wrecd->w_patternlen; in wlog_rec_unpack()
467 wrec->w_done = wrecd->w_done; in wlog_rec_unpack()
468 wrec->w_async = wrecd->w_async; in wlog_rec_unpack()