Home
last modified time | relevance | path

Searched refs:iov_len (Results 1 – 25 of 32) sorted by relevance

12

/systemd-251/src/basic/
Dio-util.h31 r += i[j].iov_len; in IOVEC_TOTAL_SIZE()
43 if (i[j].iov_len == 0) in IOVEC_INCREMENT()
48 sub = MIN(i[j].iov_len, k); in IOVEC_INCREMENT()
49 i[j].iov_len -= sub; in IOVEC_INCREMENT()
77 #define IOVEC_INIT(base, len) { .iov_base = (base), .iov_len = (len) }
Dlog.c493 iovec[ELEMENTSOF(iovec) - 1].iov_len++; in write_to_syslog()
1079 … if (memory_startswith(input_iovec[i].iov_base, input_iovec[i].iov_len, "MESSAGE=")) { in log_struct_iovec_internal()
1083 input_iovec[i].iov_len - STRLEN("MESSAGE=")); in log_struct_iovec_internal()
Dio-util.c345 n += iovw->iovec[i].iov_len; in iovw_size()
/systemd-251/coccinelle/
Diovec-make.cocci6 - x[y].iov_len = l;
13 - x.iov_len = l;
19 - x->iov_len = l;
29 - x = (struct iovec) { .iov_base = y, .iov_len = z };
/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.c127 .iov_len = sizeof(rs), in icmp6_send_router_solicitation()
/systemd-251/src/fuzz/
Dfuzz-varlink.c33 if ((revents & (EPOLLOUT|EPOLLHUP|EPOLLERR)) && iov->iov_len > 0) { in io_callback()
38 n = send(fd, iov->iov_base, MIN(iov->iov_len, 143U), MSG_NOSIGNAL|MSG_DONTWAIT); in io_callback()
66 if (write_eof || iov->iov_len == 0) { in io_callback()
/systemd-251/src/test/
Dtest-journal-importer.c15 assert_se(strlen(content) == iovec->iov_len); in assert_iovec_entry()
16 assert_se(memcmp(content, iovec->iov_base, iovec->iov_len) == 0); in assert_iovec_entry()
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 …ssert_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 …ssert_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-socket-util.c395 assert_se(iov.iov_len == 0); in TEST()
/systemd-251/src/libsystemd/sd-journal/
Djournal-send.c256 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()
267 nl = memchr(iov[i].iov_base, '\n', iov[i].iov_len); in sd_journal_sendv()
280 l[i] = htole64(iov[i].iov_len - (c - (char*) iov[i].iov_base) - 1); in sd_journal_sendv()
283 … w[j++] = IOVEC_MAKE(c + 1, iov[i].iov_len - (c - (char*) iov[i].iov_base) - 1); in sd_journal_sendv()
/systemd-251/src/libsystemd/sd-bus/
Dbus-socket.c39 if (i->iov_len > size) { in iovec_advance()
41 i->iov_len -= size; in iovec_advance()
45 size -= i->iov_len; in iovec_advance()
120 if (j->iov_len > 0) in bus_socket_auth_needs_write()
350 p = malloc(b->auth_iovec[0].iov_len + l); in bus_socket_auth_write()
354 memcpy_safe(p, b->auth_iovec[0].iov_base, b->auth_iovec[0].iov_len); in bus_socket_auth_write()
355 memcpy(p + b->auth_iovec[0].iov_len, t, l); in bus_socket_auth_write()
358 b->auth_iovec[0].iov_len += l; in bus_socket_auth_write()
Dbus-message.c1717 memcpy(p, iov[i].iov_base, iov[i].iov_len); in sd_bus_message_append_string_iovec()
1719 memset(p, ' ', iov[i].iov_len); in sd_bus_message_append_string_iovec()
1721 p += iov[i].iov_len; in sd_bus_message_append_string_iovec()
2632 memcpy(p, iov[i].iov_base, iov[i].iov_len); in sd_bus_message_append_array_iovec()
2634 memzero(p, iov[i].iov_len); in sd_bus_message_append_array_iovec()
2636 p = (uint8_t*) p + iov[i].iov_len; in sd_bus_message_append_array_iovec()
/systemd-251/src/coredump/
Dcoredump.c933 assert(((char*) iovec->iov_base)[iovec->iov_len] == 0); in save_context()
988 iovec.iov_len = l; in process_socket()
1027 iovec.iov_len = (size_t) n; in process_socket()
1029 r = iovw_put(&iovw, iovec.iov_base, iovec.iov_len); in process_socket()
1087 if (errno == EMSGSIZE && mh.msg_iov[0].iov_len > 0) { in send_iovec()
1106 copy[0].iov_len /= 2; /* halve it, and try again */ in send_iovec()
1380 iovw_put(iovw, iovec->iov_base, iovec->iov_len); in process_backtrace()
/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()
344 for (size_t i = 0, pos = 0; i < iovcnt; pos += iov[i].iov_len, i++) 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-device/
Ddevice-monitor.c426 .iov_len = sizeof(buf) in device_monitor_receive_device()
557 { .iov_base = &nlh, .iov_len = sizeof nlh }, in device_monitor_send_device()
604 nlh.properties_off = iov[0].iov_len; in device_monitor_send_device()
/systemd-251/src/journal/
Djournald-native.c229 entry_size += iovec[n].iov_len; in server_process_entry()
Djournald-audit.c482 .iov_len = NLMSG_LENGTH(sizeof(struct audit_status)), in enable_audit()
Djournald-stream.c950 .iov_len = STRLEN("FDSTORE=1"), in stdout_stream_send_notify()
/systemd-251/src/timesync/
Dtimesyncd-manager.c403 .iov_len = sizeof(ntpmsg), in manager_receive_response()
440 if (iov.iov_len < sizeof(struct ntp_msg) || (msghdr.msg_flags & MSG_TRUNC)) { in manager_receive_response()
/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/import/
Dimportd.c552 .iov_len = sizeof(buf)-1, in manager_on_notify()

12