Lines Matching defs:rec
434 DWORD recno, logr_record_t *rec)
454 rec->Length1 = sizeof (logr_record_t);
455 rec->Reserved = LOGR_RECORD_SIGNATURE;
456 rec->RecordNumber = recno;
457 rec->TimeGenerated = le->le_timestamp.tv_sec;
458 rec->TimeWritten = le->le_timestamp.tv_sec;
459 logr_set_event_typeid(le->le_pri, &rec->EventType, &rec->EventID);
460 rec->NumStrings = 1;
461 rec->EventCategory = 0;
462 rec->ReservedFlags = 0;
463 rec->ClosingRecordNumber = 0;
464 rec->StringOffset = str_offs;
465 rec->UserSidLength = 0;
466 rec->UserSidOffset = 0;
467 rec->DataLength = 0;
468 rec->DataOffset = 0;
470 bzero(rec->info, LOGR_MAXENTRYLEN);
471 (void) memcpy(rec->info, wcs_srcname, srcname_len);
472 (void) memcpy(rec->info + srcname_len, wcs_hostname, hostname_len);
477 (void) smb_mbstowcs((smb_wchar_t *)(rec->info + sh_len),
480 rec->Length2 = sizeof (logr_record_t);
498 logr_record_t *rec;
567 rec = (logr_record_t *)buf;
568 logr_set_logrecord(ctx->lc_source_name, le, ent_no, rec);