Lines Matching defs:ctx

469  * was queued.  ctx.out.sf_sequence, if not -1, is the sequence number
479 parse_context_t ctx;
526 (void) memcpy(&ctx, &initial_ctx, sizeof (parse_context_t));
527 ctx.id = sequence;
528 ctx.adr.adr_stream = (char *)input;
529 ctx.adr.adr_now = (char *)input;
532 while ((ctx.adr.adr_now - ctx.adr.adr_stream) < in_len) {
533 assert(last_adr != ctx.adr.adr_now);
535 last_adr = ctx.adr.adr_now;
536 if ((parse_rc = parse_token(&ctx)) != 0) {
541 if (cacheauevent(&event, ctx.out.sf_eventid) < 0)
543 "%hu", ctx.out.sf_eventid);
552 if (ctx.out.sf_sequence != -1)
554 " (seq=%u) ", ctx.out.sf_sequence);
571 if (tossit(ctx.out.sf_eventid, ctx.out.sf_pass)) {
573 if (ctx.out.sf_sequence != -1)
577 ctx.out.sf_eventid, ctx.out.sf_sequence,
582 ctx.out.sf_eventid, sequence);
593 if (ctx.out.sf_uauthlen > 0) {
594 free(ctx.out.sf_uauth);
595 ctx.out.sf_uauth = NULL;
596 ctx.out.sf_uauthlen = 0;
598 if (ctx.out.sf_pathlen > 0) {
599 free(ctx.out.sf_path);
600 ctx.out.sf_path = NULL;
601 ctx.out.sf_pathlen = 0;
603 if (ctx.out.sf_atpathlen > 0) {
604 free(ctx.out.sf_atpath);
605 ctx.out.sf_atpath = NULL;
606 ctx.out.sf_atpathlen = 0;
608 if (ctx.out.sf_textlen > 0) {
609 free(ctx.out.sf_text);
610 ctx.out.sf_text = NULL;
611 ctx.out.sf_textlen = 0;
613 if (ctx.out.sf_zonelen > 0) {
614 free(ctx.out.sf_zonename);
615 ctx.out.sf_zonename = NULL;
616 ctx.out.sf_zonelen = 0;
624 if (ctx.out.sf_eventid != 0) {
627 if (cacheauevent(&event, ctx.out.sf_eventid) < 0)
629 ctx.out.sf_eventid);
635 if (ctx.out.sf_pass != 0) {
636 if (ctx.out.sf_pass < 0)
643 if (ctx.out.sf_asid != 0) {
645 ctx.out.sf_asid);
649 if (ctx.out.sf_auid != (uid_t)-2) {
650 used = getuname(ctx.out.sf_auid, -2, bp, remaining,
655 if (ctx.out.sf_euid != (uid_t)-2) {
657 used = getuname(ctx.out.sf_euid, ctx.out.sf_egid, bp,
662 if (ctx.out.sf_zonename != NULL) {
665 ctx.out.sf_zonename, ctx.out.sf_zonelen);
666 free(ctx.out.sf_zonename);
670 if (ctx.out.sf_tid.at_type != 0) {
672 used = gethname(&(ctx.out.sf_tid), bp, remaining,
677 if (ctx.out.sf_pauid != (uid_t)-2) {
679 used = getuname(ctx.out.sf_pauid, -2, bp, remaining,
684 if (ctx.out.sf_peuid != (uid_t)-2) {
685 used = getuname(ctx.out.sf_peuid, -2, bp, remaining,
699 if (ctx.out.sf_sequence != -1) {
702 ctx.out.sf_sequence, sequence);
704 ctx.out.sf_sequence, sequence);
716 if (ctx.out.sf_path != NULL) {
718 ctx.out.sf_path, ctx.out.sf_pathlen);
719 free(ctx.out.sf_path);
723 if (ctx.out.sf_atpath != NULL) {
726 ctx.out.sf_atpath, ctx.out.sf_atpathlen);
727 free(ctx.out.sf_atpath);
731 if (ctx.out.sf_uauth != NULL) {
733 ctx.out.sf_uauth, ctx.out.sf_uauthlen);
734 free(ctx.out.sf_path);
738 if (ctx.out.sf_text != NULL) {
741 ctx.out.sf_text, ctx.out.sf_textlen);
742 free(ctx.out.sf_text);