/systemd-251/src/basic/ |
D | io-util.h | 31 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) }
|
D | log.c | 493 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()
|
D | io-util.c | 345 n += iovw->iovec[i].iov_len; in iovw_size()
|
/systemd-251/coccinelle/ |
D | iovec-make.cocci | 6 - 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/ |
D | fuzz-ndisc-rs.c | 25 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()
|
D | test-ndisc-rs.c | 181 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()
|
D | test-ndisc-ra.c | 227 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()
|
D | icmp6-util.c | 127 .iov_len = sizeof(rs), in icmp6_send_router_solicitation()
|
/systemd-251/src/fuzz/ |
D | fuzz-varlink.c | 33 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/ |
D | test-journal-importer.c | 15 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()
|
D | test-load-fragment.c | 481 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()
|
D | test-socket-util.c | 395 assert_se(iov.iov_len == 0); in TEST()
|
/systemd-251/src/libsystemd/sd-journal/ |
D | journal-send.c | 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() 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/ |
D | bus-socket.c | 39 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()
|
D | bus-message.c | 1717 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/ |
D | coredump.c | 933 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/ |
D | resolved-dnstls-openssl.c | 338 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()
|
D | resolved-dnstls-gnutls.c | 181 iov[i].iov_base, iov[i].iov_len); in dnstls_stream_writev()
|
/systemd-251/src/libsystemd/sd-device/ |
D | device-monitor.c | 426 .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/ |
D | journald-native.c | 229 entry_size += iovec[n].iov_len; in server_process_entry()
|
D | journald-audit.c | 482 .iov_len = NLMSG_LENGTH(sizeof(struct audit_status)), in enable_audit()
|
D | journald-stream.c | 950 .iov_len = STRLEN("FDSTORE=1"), in stdout_stream_send_notify()
|
/systemd-251/src/timesync/ |
D | timesyncd-manager.c | 403 .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/ |
D | machine-dbus.c | 281 { .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/ |
D | importd.c | 552 .iov_len = sizeof(buf)-1, in manager_on_notify()
|