Lines Matching defs:iovec

338         struct iovec iovec[6] = {};
347 IOVEC_SET_STRING(iovec[n++], prefix);
354 IOVEC_SET_STRING(iovec[n++], location);
358 IOVEC_SET_STRING(iovec[n++], ANSI_HIGHLIGHT_RED);
359 IOVEC_SET_STRING(iovec[n++], buffer);
361 IOVEC_SET_STRING(iovec[n++], ANSI_NORMAL);
362 IOVEC_SET_STRING(iovec[n++], "\n");
364 if (writev(console_fd, iovec, n) < 0) {
378 if (writev(console_fd, iovec, n) < 0)
400 struct iovec iovec[5] = {};
402 .msg_iov = iovec,
403 .msg_iovlen = ELEMENTSOF(iovec),
423 IOVEC_SET_STRING(iovec[0], header_priority);
424 IOVEC_SET_STRING(iovec[1], header_time);
425 IOVEC_SET_STRING(iovec[2], program_invocation_short_name);
426 IOVEC_SET_STRING(iovec[3], header_pid);
427 IOVEC_SET_STRING(iovec[4], buffer);
431 iovec[4].iov_len++;
441 (size_t) n >= IOVEC_TOTAL_SIZE(iovec, ELEMENTSOF(iovec)))
444 IOVEC_INCREMENT(iovec, ELEMENTSOF(iovec), n);
462 struct iovec iovec[5] = {};
470 IOVEC_SET_STRING(iovec[0], header_priority);
471 IOVEC_SET_STRING(iovec[1], program_invocation_short_name);
472 IOVEC_SET_STRING(iovec[2], header_pid);
473 IOVEC_SET_STRING(iovec[3], buffer);
474 IOVEC_SET_STRING(iovec[4], "\n");
476 if (writev(kmsg_fd, iovec, ELEMENTSOF(iovec)) < 0)
532 struct iovec iovec[4] = {};
540 IOVEC_SET_STRING(iovec[0], header);
541 IOVEC_SET_STRING(iovec[1], "MESSAGE=");
542 IOVEC_SET_STRING(iovec[2], buffer);
543 IOVEC_SET_STRING(iovec[3], "\n");
545 mh.msg_iov = iovec;
546 mh.msg_iovlen = ELEMENTSOF(iovec);
807 struct iovec *iovec,
839 IOVEC_SET_STRING(iovec[(*n)++], m);
842 iovec[*n].iov_base = (char*) &nl;
843 iovec[*n].iov_len = 1;
882 struct iovec iovec[17] = {};
886 .msg_iov = iovec,
892 IOVEC_SET_STRING(iovec[n++], header);
895 r = log_format_iovec(iovec, ELEMENTSOF(iovec), &n, true, error, format, ap);
905 free(iovec[i].iov_base);