Lines Matching refs:iovec
250 struct iovec iovec[6] = {}; in write_to_console() local
259 IOVEC_SET_STRING(iovec[n++], prefix); in write_to_console()
267 IOVEC_SET_STRING(iovec[n++], location); in write_to_console()
271 IOVEC_SET_STRING(iovec[n++], ANSI_HIGHLIGHT_RED_ON); in write_to_console()
272 IOVEC_SET_STRING(iovec[n++], buffer); in write_to_console()
274 IOVEC_SET_STRING(iovec[n++], ANSI_HIGHLIGHT_OFF); in write_to_console()
275 IOVEC_SET_STRING(iovec[n++], "\n"); in write_to_console()
277 if (writev(console_fd, iovec, n) < 0) { in write_to_console()
291 if (writev(console_fd, iovec, n) < 0) in write_to_console()
311 struct iovec iovec[5] = {}; in write_to_syslog() local
313 .msg_iov = iovec, in write_to_syslog()
314 .msg_iovlen = ELEMENTSOF(iovec), in write_to_syslog()
336 IOVEC_SET_STRING(iovec[0], header_priority); in write_to_syslog()
337 IOVEC_SET_STRING(iovec[1], header_time); in write_to_syslog()
338 IOVEC_SET_STRING(iovec[2], program_invocation_short_name); in write_to_syslog()
339 IOVEC_SET_STRING(iovec[3], header_pid); in write_to_syslog()
340 IOVEC_SET_STRING(iovec[4], buffer); in write_to_syslog()
344 iovec[4].iov_len++; in write_to_syslog()
354 (size_t) n >= IOVEC_TOTAL_SIZE(iovec, ELEMENTSOF(iovec))) in write_to_syslog()
357 IOVEC_INCREMENT(iovec, ELEMENTSOF(iovec), n); in write_to_syslog()
374 struct iovec iovec[5] = {}; in write_to_kmsg() local
385 IOVEC_SET_STRING(iovec[0], header_priority); in write_to_kmsg()
386 IOVEC_SET_STRING(iovec[1], program_invocation_short_name); in write_to_kmsg()
387 IOVEC_SET_STRING(iovec[2], header_pid); in write_to_kmsg()
388 IOVEC_SET_STRING(iovec[3], buffer); in write_to_kmsg()
389 IOVEC_SET_STRING(iovec[4], "\n"); in write_to_kmsg()
391 if (writev(kmsg_fd, iovec, ELEMENTSOF(iovec)) < 0) in write_to_kmsg()