Lines Matching defs:iovec

522 static void write_to_journal(Server *s, uid_t uid, struct iovec *iovec, unsigned n, int priority) {
528 assert(iovec);
546 r = journal_file_append_entry(f, NULL, iovec, n, &s->seqnum, NULL, NULL);
553 log_error_errno(r, "Failed to write entry (%d items, %zu bytes), ignoring: %m", n, IOVEC_TOTAL_SIZE(iovec, n));
565 r = journal_file_append_entry(f, NULL, iovec, n, &s->seqnum, NULL, NULL);
567 log_error_errno(r, "Failed to write entry (%d items, %zu bytes) despite vacuuming, ignoring: %m", n, IOVEC_TOTAL_SIZE(iovec, n));
574 struct iovec *iovec, unsigned n, unsigned m,
608 assert(iovec);
616 IOVEC_SET_STRING(iovec[n++], pid);
619 IOVEC_SET_STRING(iovec[n++], uid);
622 IOVEC_SET_STRING(iovec[n++], gid);
628 IOVEC_SET_STRING(iovec[n++], x);
635 IOVEC_SET_STRING(iovec[n++], x);
642 IOVEC_SET_STRING(iovec[n++], x);
649 IOVEC_SET_STRING(iovec[n++], x);
656 IOVEC_SET_STRING(iovec[n++], audit_session);
662 IOVEC_SET_STRING(iovec[n++], audit_loginuid);
671 IOVEC_SET_STRING(iovec[n++], x);
677 IOVEC_SET_STRING(iovec[n++], session);
684 IOVEC_SET_STRING(iovec[n++], owner_uid);
690 IOVEC_SET_STRING(iovec[n++], x);
693 IOVEC_SET_STRING(iovec[n++], x);
699 IOVEC_SET_STRING(iovec[n++], x);
702 IOVEC_SET_STRING(iovec[n++], x);
708 IOVEC_SET_STRING(iovec[n++], x);
714 IOVEC_SET_STRING(iovec[n++], x);
723 IOVEC_SET_STRING(iovec[n++], x);
731 IOVEC_SET_STRING(iovec[n++], x);
743 IOVEC_SET_STRING(iovec[n++], o_uid);
749 IOVEC_SET_STRING(iovec[n++], o_gid);
756 IOVEC_SET_STRING(iovec[n++], x);
763 IOVEC_SET_STRING(iovec[n++], x);
770 IOVEC_SET_STRING(iovec[n++], x);
777 IOVEC_SET_STRING(iovec[n++], o_audit_session);
783 IOVEC_SET_STRING(iovec[n++], o_audit_loginuid);
790 IOVEC_SET_STRING(iovec[n++], x);
796 IOVEC_SET_STRING(iovec[n++], x);
801 IOVEC_SET_STRING(iovec[n++], o_owner_uid);
807 IOVEC_SET_STRING(iovec[n++], x);
813 IOVEC_SET_STRING(iovec[n++], x);
823 IOVEC_SET_STRING(iovec[n++], source_time);
830 IOVEC_SET_STRING(iovec[n++], s->boot_id_field);
833 IOVEC_SET_STRING(iovec[n++], s->machine_id_field);
836 IOVEC_SET_STRING(iovec[n++], s->hostname_field);
853 write_to_journal(s, journal_uid, iovec, n, priority);
858 struct iovec iovec[N_IOVEC_META_FIELDS + 5 + N_IOVEC_PAYLOAD_FIELDS];
868 IOVEC_SET_STRING(iovec[n++], "SYSLOG_FACILITY=3");
869 IOVEC_SET_STRING(iovec[n++], "SYSLOG_IDENTIFIER=systemd-journald");
871 IOVEC_SET_STRING(iovec[n++], "_TRANSPORT=driver");
873 IOVEC_SET_STRING(iovec[n++], "PRIORITY=6");
877 IOVEC_SET_STRING(iovec[n++], mid);
883 r = log_format_iovec(iovec, ELEMENTSOF(iovec), &n, false, 0, format, ap);
892 dispatch_message_real(s, iovec, n, ELEMENTSOF(iovec), &ucred, NULL, NULL, 0, NULL, LOG_INFO, 0);
895 free(iovec[m++].iov_base);
904 IOVEC_SET_STRING(iovec[n++], "PRIORITY=4");
905 IOVEC_SET_STRING(iovec[n++], buf);
906 dispatch_message_real(s, iovec, n, ELEMENTSOF(iovec), &ucred, NULL, NULL, 0, NULL, LOG_INFO, 0);
912 struct iovec *iovec, unsigned n, unsigned m,
926 assert(iovec || n == 0);
974 dispatch_message_real(s, iovec, n, m, ucred, tv, label, label_len, unit_id, priority, object_pid);
1159 struct iovec iovec;
1183 .msg_iov = &iovec,
1212 iovec.iov_base = s->buffer;
1213 iovec.iov_len = s->buffer_size - 1; /* Leave room for trailing NUL we add later */