Searched refs:malloc0 (Results 1 - 17 of 17) sorted by relevance

/systemd/src/libsystemd-network/
H A Dtest-dhcp-option.c86 message = malloc0(len);
110 message = malloc0(len);
291 result = malloc0(sizeof(DHCPMessage) + 11);
H A Dsd-dhcp-server.c422 packet = malloc0(sizeof(DHCPPacket) + req->max_optlen);
566 packet = malloc0(sizeof(DHCPPacket) + DHCP_MIN_OPTIONS_SIZE);
659 data = malloc0(ETH_ALEN + 1);
H A Dsd-dhcp-client.c428 packet = malloc0(size);
1543 message = malloc0(buflen);
1631 packet = malloc0(buflen);
H A Dsd-dhcp6-client.c345 message = malloc0(len);
/systemd/src/basic/
H A Dalloc-util.h39 #define malloc0(n) (calloc(1, (n))) macro
H A Dstrv.c424 buf = malloc0(1);
H A Dhashmap.c732 h = use_pool ? mempool_alloc0_tile(hi->mempool) : malloc0(hi->head_size);
/systemd/src/libsystemd/sd-bus/
H A Dbus-slot.c39 slot = malloc0(offsetof(sd_bus_slot, reply_callback) + extra);
H A Dbus-message.c476 m = malloc0(a);
600 m = malloc0(ALIGN(sizeof(sd_bus_message)) + sizeof(struct bus_header));
/systemd/src/resolve/
H A Dresolved-dns-question.c30 q = malloc0(offsetof(DnsQuestion, keys) + sizeof(DnsResourceKey*) * n);
H A Dresolved-dns-packet.c52 p = malloc0(ALIGN(sizeof(DnsPacket)) + a);
1669 i = malloc0(offsetof(DnsTxtItem, data) + 1); /* for safety reasons we add an extra NUL byte */
1686 i = malloc0(offsetof(DnsTxtItem, data) + sz + 1); /* extra NUL byte at the end */
H A Dresolved-dns-answer.c29 a = malloc0(offsetof(DnsAnswer, items) + sizeof(DnsAnswerItem) * n);
H A Dresolved-dns-rr.c41 k = malloc0(sizeof(DnsResourceKey) + l + 1);
/systemd/src/journal/
H A Djournal-send.c126 iov = malloc0(n * sizeof(struct iovec));
/systemd/src/network/
H A Dnetworkd-netdev.c628 netdev = malloc0(NETDEV_VTABLE(netdev_raw)->object_size);
/systemd/src/libsystemd/sd-netlink/
H A Dnetlink-message.c85 m->hdr = malloc0(size);
/systemd/src/core/
H A Dunit.c83 u = malloc0(size);

Completed in 2742 milliseconds