/systemd/src/core/ |
H A D | show-status.c | 52 struct iovec iovec[6] = {}; local 91 IOVEC_SET_STRING(iovec[n++], "\r" ANSI_ERASE_TO_END_OF_LINE); 96 IOVEC_SET_STRING(iovec[n++], "["); 97 IOVEC_SET_STRING(iovec[n++], status); 98 IOVEC_SET_STRING(iovec[n++], "] "); 100 IOVEC_SET_STRING(iovec[n++], status_indent); 103 IOVEC_SET_STRING(iovec[n++], s); 105 IOVEC_SET_STRING(iovec[n++], "\n"); 107 if (writev(fd, iovec, [all...] |
/systemd/src/journal/ |
H A D | journald-console.c | 58 struct iovec iovec[5]; local 78 IOVEC_SET_STRING(iovec[n++], tbuf); 91 IOVEC_SET_STRING(iovec[n++], identifier); 93 IOVEC_SET_STRING(iovec[n++], header_pid); 95 IOVEC_SET_STRING(iovec[n++], identifier); 96 IOVEC_SET_STRING(iovec[n++], ": "); 100 IOVEC_SET_STRING(iovec[n++], message); 101 IOVEC_SET_STRING(iovec[n++], "\n"); 111 if (writev(fd, iovec, [all...] |
H A D | journald-kmsg.c | 48 struct iovec iovec[5]; local 71 IOVEC_SET_STRING(iovec[n++], header_priority); 83 IOVEC_SET_STRING(iovec[n++], identifier); 85 IOVEC_SET_STRING(iovec[n++], header_pid); 87 IOVEC_SET_STRING(iovec[n++], identifier); 88 IOVEC_SET_STRING(iovec[n++], ": "); 92 IOVEC_SET_STRING(iovec[n++], message); 93 IOVEC_SET_STRING(iovec[n++], "\n"); 95 if (writev(s->dev_kmsg_fd, iovec, 113 struct iovec iovec[N_IOVEC_META_FIELDS + 7 + N_IOVEC_KERNEL_FIELDS + 2 + N_IOVEC_UDEV_FIELDS]; local [all...] |
H A D | journald-syslog.c | 45 static void forward_syslog_iovec(Server *s, const struct iovec *iovec, unsigned n_iovec, const struct ucred *ucred, const struct timeval *tv) { argument 52 .msg_iov = (struct iovec *) iovec, 65 assert(iovec); 120 struct iovec iovec; local 128 IOVEC_SET_STRING(iovec, buffer); 129 forward_syslog_iovec(s, &iovec, 1, ucred, tv); 133 struct iovec iove local 329 struct iovec iovec[N_IOVEC_META_FIELDS + 6]; local [all...] |
H A D | test-journal-send.c | 32 struct iovec graph1[] = { 35 struct iovec graph2[] = { 38 struct iovec message1[] = { 41 struct iovec message2[] = {
|
H A D | test-journal-stream.c | 102 struct iovec iovec[2]; local 115 iovec[0].iov_base = p; 116 iovec[0].iov_len = strlen(p); 120 iovec[1].iov_base = q; 121 iovec[1].iov_len = strlen(q); 124 assert_se(journal_file_append_entry(three, &ts, iovec, 2, NULL, NULL, NULL) == 0); 127 assert_se(journal_file_append_entry(two, &ts, iovec, 2, NULL, NULL, NULL) == 0); 129 assert_se(journal_file_append_entry(one, &ts, iovec, 2, NULL, NULL, NULL) == 0);
|
H A D | journal-send.c | 99 struct iovec iov[2]; 117 _printf_(1, 0) static int fill_iovec_sprintf(const char *format, va_list ap, int extra, struct iovec **_iov) { 120 struct iovec *iov = NULL; 126 iov = malloc0(n * sizeof(struct iovec)); 136 struct iovec *c; 142 c = realloc(iov, n * sizeof(struct iovec)); 182 struct iovec *iov = NULL; 204 _public_ int sd_journal_sendv(const struct iovec *iov, int n) { 208 struct iovec *w; 226 w = newa(struct iovec, 389 struct iovec iovec[3]; local [all...] |
H A D | test-journal-verify.c | 94 struct iovec iovec; local 102 iovec.iov_base = (void*) test; 103 iovec.iov_len = strlen(test); 105 assert_se(journal_file_append_entry(f, &ts, &iovec, 1, NULL, NULL, NULL) == 0);
|
H A D | test-journal.c | 34 struct iovec iovec; local 49 iovec.iov_base = (void*) test; 50 iovec.iov_len = strlen(test); 51 assert_se(journal_file_append_entry(f, &ts, &iovec, 1, NULL, NULL, NULL) == 0); 53 iovec.iov_base = (void*) test2; 54 iovec.iov_len = strlen(test2); 55 assert_se(journal_file_append_entry(f, &ts, &iovec, 1, NULL, NULL, NULL) == 0); 57 iovec.iov_base = (void*) test; 58 iovec [all...] |
H A D | journald-server.c | 522 static void write_to_journal(Server *s, uid_t uid, struct iovec *iovec, unsigned n, int priority) { argument 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); 572 dispatch_message_real( Server *s, struct iovec *iovec, unsigned n, unsigned m, const struct ucred *ucred, const struct timeval *tv, const char *label, size_t label_len, const char *unit_id, int priority, pid_t object_pid) argument 858 struct iovec iovec[N_IOVEC_META_FIELDS + 5 + N_IOVEC_PAYLOAD_FIELDS]; local 910 server_dispatch_message( Server *s, struct iovec *iovec, unsigned n, unsigned m, const struct ucred *ucred, const struct timeval *tv, const char *label, size_t label_len, const char *unit_id, int priority, pid_t object_pid) argument 1159 struct iovec iovec; local [all...] |
H A D | journald-native.c | 89 struct iovec *iovec = NULL; local 122 server_dispatch_message(s, iovec, n, m, ucred, tv, label, label_len, NULL, priority, object_pid); 143 if (!GREEDY_REALLOC(iovec, m, n + 2 + N_IOVEC_META_FIELDS + N_IOVEC_OBJECT_FIELDS)) { 159 iovec[n].iov_base = (char*) p; 160 iovec[n].iov_len = l; 161 entry_size += iovec[n].iov_len; 254 iovec[n].iov_base = k; 255 iovec[n].iov_len = (e - p) + 1 + l; 256 entry_size += iovec[ [all...] |
H A D | journald-audit.c | 32 int (*map)(const char *field, const char **p, struct iovec **iov, size_t *n_iov_allocated, unsigned *n_iov); 35 static int map_simple_field(const char *field, const char **p, struct iovec **iov, size_t *n_iov_allocated, unsigned *n_iov) { 74 static int map_string_field_internal(const char *field, const char **p, struct iovec **iov, size_t *n_iov_allocated, unsigned *n_iov, bool filter_printable) { 153 static int map_string_field(const char *field, const char **p, struct iovec **iov, size_t *n_iov_allocated, unsigned *n_iov) { 157 static int map_string_field_printable(const char *field, const char **p, struct iovec **iov, size_t *n_iov_allocated, unsigned *n_iov) { 161 static int map_generic_field(const char *prefix, const char **p, struct iovec **iov, size_t *n_iov_allocated, unsigned *n_iov) { 264 struct iovec **iov, 338 _cleanup_free_ struct iovec *iov = NULL; 380 iov = new(struct iovec, n_iov_allocated); 493 struct iovec iove local [all...] |
H A D | journald-stream.c | 229 struct iovec iovec[N_IOVEC_META_FIELDS + 5]; local 260 IOVEC_SET_STRING(iovec[n++], "_TRANSPORT=stdout"); 263 IOVEC_SET_STRING(iovec[n++], syslog_priority); 267 IOVEC_SET_STRING(iovec[n++], syslog_facility); 273 IOVEC_SET_STRING(iovec[n++], syslog_identifier); 278 IOVEC_SET_STRING(iovec[n++], message); 281 server_dispatch_message(s->server, iovec, n, ELEMENTSOF(iovec), &s->ucred, NULL, s->label, label_len, s->unit_id, priority, 0); 742 struct iovec iove local [all...] |
H A D | test-journal-interleaving.c | 67 struct iovec iovec[1]; local 80 iovec[0].iov_base = p; 81 iovec[0].iov_len = strlen(p); 82 assert_ret(journal_file_append_entry(f, &ts, iovec, 1, seqnum, NULL, NULL));
|
H A D | journald-server.h | 160 void server_dispatch_message(Server *s, struct iovec *iovec, unsigned n, unsigned m, const struct ucred *ucred, const struct timeval *tv, const char *label, size_t label_len, const char *unit_id, int priority, pid_t object_pid);
|
/systemd/src/coredump/ |
H A D | coredump.c | 591 struct iovec *iovec, 602 assert(iovec); 624 IOVEC_SET_STRING(iovec[n_iovec++], coredump_filename); 657 IOVEC_SET_STRING(iovec[n_iovec++], core_message); 668 iovec[n_iovec].iov_base = coredump_data; 669 iovec[n_iovec].iov_len = sz; 676 r = sd_journal_sendv(iovec, n_iovec); 683 static void map_context_fields(const struct iovec *iovec, cons argument 589 submit_coredump( const char *context[_CONTEXT_MAX], struct iovec *iovec, size_t n_iovec_allocated, size_t n_iovec, int input_fd) argument 720 struct iovec *iovec = NULL; local 833 send_iovec(const struct iovec iovec[], size_t n_iovec, int input_fd) argument 911 struct iovec iovec[25]; local [all...] |
/systemd/src/journal-remote/ |
H A D | journal-remote-write.c | 24 if (!GREEDY_REALLOC(iovw->iovec, iovw->size_bytes, iovw->count + 1)) 27 iovw->iovec[iovw->count++] = (struct iovec) {data, len}; 32 iovw->iovec = mfree(iovw->iovec); 40 n += iovw->iovec[i].iov_len; 49 iovw->iovec[i].iov_base = (char*) iovw->iovec[i].iov_base - old + new; 144 r = journal_file_append_entry(w->journal, ts, iovw->iovec, iovw->count, 160 r = journal_file_append_entry(w->journal, ts, iovw->iovec, iov [all...] |
H A D | journal-remote-write.h | 28 struct iovec *iovec; member in struct:iovec_wrapper
|
/systemd/src/basic/ |
H A D | log.c | 338 struct iovec iovec[6] = {}; local 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, 400 struct iovec iovec[5] = {}; local 462 struct iovec iovec[5] = {}; local 532 struct iovec iovec[4] = {}; local 806 log_format_iovec( struct iovec *iovec, unsigned iovec_len, unsigned *n, bool newline_separator, int error, const char *format, va_list ap) argument 882 struct iovec iovec[17] = {}; local [all...] |
H A D | io-util.h | 45 struct iovec *_i = &(i); \ 51 static inline size_t IOVEC_TOTAL_SIZE(const struct iovec *i, unsigned n) { 61 static inline size_t IOVEC_INCREMENT(struct iovec *i, unsigned n, size_t k) {
|
/systemd/src/bootchart/ |
H A D | bootchart.c | 262 struct iovec iovec[5]; local 270 IOVEC_SET_STRING(iovec[j++], bootchart_file); 271 IOVEC_SET_STRING(iovec[j++], "MESSAGE_ID=9f26aa562cf440c2b16c773d0479b518"); 272 IOVEC_SET_STRING(iovec[j++], "PRIORITY=7"); 277 IOVEC_SET_STRING(iovec[j++], bootchart_message); 293 iovec[j].iov_base = p; 294 iovec[j].iov_len = 10 + n; 297 r = sd_journal_sendv(iovec, j);
|
/systemd/src/systemd/ |
H A D | sd-journal.h | 41 int sd_journal_sendv(const struct iovec *iov, int n); 48 int sd_journal_sendv_with_location(const char *file, const char *line, const char *func, const struct iovec *iov, int n); 57 #define sd_journal_sendv(iovec, n) sd_journal_sendv_with_location("CODE_FILE=" __FILE__, "CODE_LINE=" _SD_STRINGIFY(__LINE__), __func__, iovec, n)
|
/systemd/src/libsystemd/sd-bus/ |
H A D | bus-socket.c | 47 static void iovec_advance(struct iovec iov[], unsigned *idx, size_t size) { 50 struct iovec *i = iov + *idx; 72 m->iovec[m->n_iovec].iov_base = (void*) p; 73 m->iovec[m->n_iovec].iov_len = sz; 90 assert(!m->iovec); 94 m->iovec = m->iovec_fixed; 96 m->iovec = new(struct iovec, n); 97 if (!m->iovec) { 134 struct iovec * [all...] |
H A D | bus-message.h | 127 struct iovec *iovec; member in struct:sd_bus_message 128 struct iovec iovec_fixed[2];
|
/systemd/src/libsystemd/sd-resolve/ |
H A D | sd-resolve.c | 246 struct iovec iov[2]; 270 iov[0] = (struct iovec) { .iov_base = &resp, .iov_len = sizeof(AddrInfoResponse) }; 271 iov[1] = (struct iovec) { .iov_base = &buffer, .iov_len = resp.header.length - sizeof(AddrInfoResponse) }; 300 struct iovec iov[3]; 312 iov[0] = (struct iovec) { .iov_base = &resp, .iov_len = sizeof(NameInfoResponse) }; 313 iov[1] = (struct iovec) { .iov_base = (void*) host, .iov_len = hl }; 314 iov[2] = (struct iovec) { .iov_base = (void*) serv, .iov_len = sl }; 943 struct iovec iov[3]; 975 iov[mh.msg_iovlen++] = (struct iovec) { .iov_base = &req, .iov_len = sizeof(AddrInfoRequest) }; 977 iov[mh.msg_iovlen++] = (struct iovec) { [all...] |