Home
last modified time | relevance | path

Searched refs:iov_base (Results 1 – 25 of 33) sorted by relevance

12

/systemd-251/src/libsystemd/sd-journal/
Djournal-send.c196 free(iov[j].iov_base); in fill_iovec_sprintf()
221 free(iov[j].iov_base); in sd_journal_send()
256 if (_unlikely_(!iov[i].iov_base || iov[i].iov_len <= 1)) in sd_journal_sendv()
259 c = memchr(iov[i].iov_base, '=', iov[i].iov_len); in sd_journal_sendv()
260 if (_unlikely_(!c || c == iov[i].iov_base)) in sd_journal_sendv()
264 (c == (char *) iov[i].iov_base + 17 && in sd_journal_sendv()
265 startswith(iov[i].iov_base, "SYSLOG_IDENTIFIER")); in sd_journal_sendv()
267 nl = memchr(iov[i].iov_base, '\n', iov[i].iov_len); in sd_journal_sendv()
277 w[j++] = IOVEC_MAKE(iov[i].iov_base, c - (char*) iov[i].iov_base); in sd_journal_sendv()
280 l[i] = htole64(iov[i].iov_len - (c - (char*) iov[i].iov_base) - 1); in sd_journal_sendv()
[all …]
/systemd-251/coccinelle/
Diovec-make.cocci5 - x[y].iov_base = p;
12 - x.iov_base = p;
18 - x->iov_base = p;
29 - x = (struct iovec) { .iov_base = y, .iov_len = z };
/systemd-251/src/basic/
Dio-util.h50 i[j].iov_base = (uint8_t*) i[j].iov_base + sub; in IOVEC_INCREMENT()
77 #define IOVEC_INIT(base, len) { .iov_base = (base), .iov_len = (len) }
Dio-util.c286 free(iovw->iovec[i].iov_base); in iovw_free_contents()
338 iovw->iovec[i].iov_base = (char *)iovw->iovec[i].iov_base - old + new; in iovw_rebase()
Dlog.c992 free(iovec[i].iov_base); in log_struct_internal()
1079 … if (memory_startswith(input_iovec[i].iov_base, input_iovec[i].iov_len, "MESSAGE=")) { in log_struct_iovec_internal()
1082 m = strndupa_safe((char*) input_iovec[i].iov_base + STRLEN("MESSAGE="), in log_struct_iovec_internal()
/systemd-251/src/libsystemd-network/
Dfuzz-ndisc-rs.c25 int icmp6_receive(int fd, void *iov_base, size_t iov_len, in icmp6_receive() argument
27 assert_se(read(fd, iov_base, iov_len) == (ssize_t) iov_len); in icmp6_receive()
Dtest-ndisc-rs.c181 int icmp6_receive(int fd, void *iov_base, size_t iov_len, in icmp6_receive() argument
183 assert_se(read (fd, iov_base, iov_len) == (ssize_t)iov_len); in icmp6_receive()
Dtest-ndisc-ra.c227 int icmp6_receive(int fd, void *iov_base, size_t iov_len, in icmp6_receive() argument
229 assert_se(read (fd, iov_base, iov_len) == (ssize_t)iov_len); in icmp6_receive()
Dicmp6-util.c126 .iov_base = &rs, in icmp6_send_router_solicitation()
/systemd-251/src/coredump/
Dcoredump.c933 assert(((char*) iovec->iov_base)[iovec->iov_len] == 0); in save_context()
935 p = startswith(iovec->iov_base, meta_field_names[i]); in save_context()
989 iovec.iov_base = malloc(l + 1); in process_socket()
990 if (!iovec.iov_base) { in process_socket()
999 free(iovec.iov_base); in process_socket()
1009 free(iovec.iov_base); in process_socket()
1026 ((char*) iovec.iov_base)[n] = 0; in process_socket()
1029 r = iovw_put(&iovw, iovec.iov_base, iovec.iov_len); in process_socket()
1380 iovw_put(iovw, iovec->iov_base, iovec->iov_len); in process_backtrace()
/systemd-251/src/journal/
Djournald-native.c283 if (iovec[j].iov_base < buffer || in server_process_entry()
284 (const char*) iovec[j].iov_base >= p + *remaining) in server_process_entry()
285 free(iovec[j].iov_base); in server_process_entry()
Djournald-audit.c410 free(iovec[z].iov_base); in process_audit_string()
481 .iov_base = &request, in enable_audit()
Djournald-kmsg.c307 free(iovec[j].iov_base); in dev_kmsg_record()
Djournald-stream.c949 .iov_base = (char*) "FDSTORE=1", in stdout_stream_send_notify()
/systemd-251/src/test/
Dtest-load-fragment.c481 assert_se(strneq(c.log_extra_fields[0].iov_base, "FOO=BAR", c.log_extra_fields[0].iov_len)); in TEST()
482 …assert_se(strneq(c.log_extra_fields[1].iov_base, "QOOF=quux ' ' ", c.log_extra_fields[1].iov_len)… in TEST()
490 assert_se(strneq(c.log_extra_fields[0].iov_base, "FOO=BAR", c.log_extra_fields[0].iov_len)); in TEST()
491 …assert_se(strneq(c.log_extra_fields[1].iov_base, "QOOF=quux ' ' ", c.log_extra_fields[1].iov_len)… in TEST()
492 … assert_se(strneq(c.log_extra_fields[2].iov_base, "FOO2=BAR2", c.log_extra_fields[2].iov_len)); in TEST()
493 … assert_se(strneq(c.log_extra_fields[3].iov_base, "QOOF2=quux", c.log_extra_fields[3].iov_len)); in TEST()
Dtest-journal-importer.c16 assert_se(memcmp(content, iovec->iov_base, iovec->iov_len) == 0); in assert_iovec_entry()
/systemd-251/src/resolve/
Dresolved-dnstls-openssl.c338 return dnstls_stream_write(stream, iov[0].iov_base, iov[0].iov_len); in dnstls_stream_writev()
345 memcpy(buf + pos, iov[i].iov_base, iov[i].iov_len); in dnstls_stream_writev()
Dresolved-dnstls-gnutls.c181 iov[i].iov_base, iov[i].iov_len); in dnstls_stream_writev()
/systemd-251/src/libsystemd/sd-bus/
Dbus-socket.c40 i->iov_base = (uint8_t*) i->iov_base + size; in iovec_advance()
354 memcpy_safe(p, b->auth_iovec[0].iov_base, b->auth_iovec[0].iov_len); in bus_socket_auth_write()
357 b->auth_iovec[0].iov_base = p; in bus_socket_auth_write()
Dbus-message.c1716 if (iov[i].iov_base) in sd_bus_message_append_string_iovec()
1717 memcpy(p, iov[i].iov_base, iov[i].iov_len); in sd_bus_message_append_string_iovec()
2631 if (iov[i].iov_base) in sd_bus_message_append_array_iovec()
2632 memcpy(p, iov[i].iov_base, iov[i].iov_len); in sd_bus_message_append_array_iovec()
/systemd-251/src/fuzz/
Dfuzz-varlink.c38 n = send(fd, iov->iov_base, MIN(iov->iov_len, 143U), MSG_NOSIGNAL|MSG_DONTWAIT); in io_callback()
/systemd-251/src/libsystemd/sd-device/
Ddevice-monitor.c425 .iov_base = &buf, in device_monitor_receive_device()
557 { .iov_base = &nlh, .iov_len = sizeof nlh }, in device_monitor_send_device()
/systemd-251/src/machine/
Dmachine-dbus.c281 { .iov_base = &a->family, .iov_len = sizeof(a->family) }, in bus_machine_method_get_addresses()
282 … { .iov_base = &a->address, .iov_len = FAMILY_ADDRESS_SIZE(a->family) }, in bus_machine_method_get_addresses()
/systemd-251/src/timesync/
Dtimesyncd-manager.c402 .iov_base = &ntpmsg, in manager_receive_response()
/systemd-251/src/import/
Dimportd.c551 .iov_base = buf, in manager_on_notify()

12