Lines Matching refs:param

267 	struct logr_EventLogClose *param = arg;  in logr_s_EventLogClose()  local
268 ndr_hdid_t *id = (ndr_hdid_t *)&param->handle; in logr_s_EventLogClose()
272 bzero(&param->result_handle, sizeof (logr_handle_t)); in logr_s_EventLogClose()
273 param->status = NT_SC_ERROR(NT_STATUS_INVALID_HANDLE); in logr_s_EventLogClose()
279 bzero(&param->result_handle, sizeof (logr_handle_t)); in logr_s_EventLogClose()
280 param->status = NT_STATUS_SUCCESS; in logr_s_EventLogClose()
294 struct logr_EventLogOpen *param = arg; in logr_s_EventLogOpen() local
300 bzero(&param->handle, sizeof (logr_handle_t)); in logr_s_EventLogOpen()
301 param->status = NT_SC_ERROR(NT_STATUS_ACCESS_DENIED); in logr_s_EventLogOpen()
305 if (param->log_name.length != 0) in logr_s_EventLogOpen()
306 log_name = (char *)param->log_name.str; in logr_s_EventLogOpen()
309 bzero(&param->handle, sizeof (logr_handle_t)); in logr_s_EventLogOpen()
310 param->status = NT_SC_ERROR(NT_STATUS_ACCESS_DENIED); in logr_s_EventLogOpen()
317 bcopy(id, &param->handle, sizeof (logr_handle_t)); in logr_s_EventLogOpen()
318 param->status = NT_STATUS_SUCCESS; in logr_s_EventLogOpen()
320 bzero(&param->handle, sizeof (logr_handle_t)); in logr_s_EventLogOpen()
321 param->status = NT_SC_ERROR(NT_STATUS_ACCESS_DENIED); in logr_s_EventLogOpen()
337 struct logr_EventLogQueryCount *param = arg; in logr_s_EventLogQueryCount() local
338 ndr_hdid_t *id = (ndr_hdid_t *)&param->handle; in logr_s_EventLogQueryCount()
344 param->status = NT_SC_ERROR(NT_STATUS_INVALID_HANDLE); in logr_s_EventLogQueryCount()
351 param->rec_num = data->rd_tot_recnum; in logr_s_EventLogQueryCount()
352 param->status = NT_STATUS_SUCCESS; in logr_s_EventLogQueryCount()
364 struct logr_EventLogGetOldestRec *param = arg; in logr_s_EventLogGetOldestRec() local
365 ndr_hdid_t *id = (ndr_hdid_t *)&param->handle; in logr_s_EventLogGetOldestRec()
371 param->status = NT_SC_ERROR(NT_STATUS_INVALID_HANDLE); in logr_s_EventLogGetOldestRec()
378 param->oldest_rec = data->rd_log->li_idx - data->rd_tot_recnum + 1; in logr_s_EventLogGetOldestRec()
380 param->status = NT_STATUS_SUCCESS; in logr_s_EventLogGetOldestRec()
493 struct logr_EventLogRead *param = arg; in logr_s_EventLogRead() local
494 ndr_hdid_t *id = (ndr_hdid_t *)&param->handle; in logr_s_EventLogRead()
505 param->status = NT_SC_ERROR(NT_STATUS_INVALID_HANDLE); in logr_s_EventLogRead()
512 param->status = NT_SC_ERROR(NT_STATUS_NO_MEMORY); in logr_s_EventLogRead()
516 dir = (param->read_flags & EVENTLOG_FORWARDS_READ) ? in logr_s_EventLogRead()
519 if (param->read_flags & EVENTLOG_SEEK_READ) in logr_s_EventLogRead()
520 rdata->rd_last_sentrec = param->rec_offset; in logr_s_EventLogRead()
539 ent_per_req = param->nbytes_to_read / sizeof (logr_record_t); in logr_s_EventLogRead()
549 param->buf = NDR_STRDUP(mxa, ""); in logr_s_EventLogRead()
550 param->sent_size = 0; in logr_s_EventLogRead()
551 param->status = NT_SC_ERROR(NT_STATUS_END_OF_FILE); in logr_s_EventLogRead()
555 param->buf = NDR_MALLOC(mxa, param->nbytes_to_read); in logr_s_EventLogRead()
556 buf = (BYTE *)param->buf; in logr_s_EventLogRead()
576 param->sent_size = sizeof (logr_record_t) * ent_remain; in logr_s_EventLogRead()
577 param->status = NT_STATUS_SUCCESS; in logr_s_EventLogRead()