Home
last modified time | relevance | path

Searched refs:ALIGN (Results 1 – 19 of 19) sorted by relevance

/systemd-251/src/nss-myhostname/
Dnss-myhostname.c99 …ms = ALIGN(l+1) + ALIGN(sizeof(struct gaih_addrtuple)) * (n_addresses > 0 ? n_addresses : 1 + sock… in _nss_myhostname_gethostbyname4_r()
110 idx = ALIGN(l+1); in _nss_myhostname_gethostbyname4_r()
123 idx += ALIGN(sizeof(struct gaih_addrtuple)); in _nss_myhostname_gethostbyname4_r()
135 idx += ALIGN(sizeof(struct gaih_addrtuple)); in _nss_myhostname_gethostbyname4_r()
150 idx += ALIGN(sizeof(struct gaih_addrtuple)); in _nss_myhostname_gethostbyname4_r()
211 ms = ALIGN(l_canonical+1)+ in fill_in_hostent()
212 (additional ? ALIGN(l_additional+1) : 0) + in fill_in_hostent()
215 (c > 0 ? c : af == AF_INET ? 1 : socket_ipv6_is_enabled()) * ALIGN(alen) + in fill_in_hostent()
228 idx = ALIGN(l_canonical+1); in fill_in_hostent()
233 idx += ALIGN(l_additional+1); in fill_in_hostent()
[all …]
/systemd-251/src/nss-mymachines/
Dnss-mymachines.c157 ms = ALIGN(l+1) + ALIGN(sizeof(struct gaih_addrtuple)) * c; in _nss_mymachines_gethostbyname4_r()
168 idx = ALIGN(l+1); in _nss_mymachines_gethostbyname4_r()
200 …r_tuple->next = i == c-1 ? NULL : (struct gaih_addrtuple*) ((char*) r_tuple + ALIGN(sizeof(struct … in _nss_mymachines_gethostbyname4_r()
206 idx += ALIGN(sizeof(struct gaih_addrtuple)); in _nss_mymachines_gethostbyname4_r()
311 ms = ALIGN(l+1) + c * ALIGN(alen) + (c+2) * sizeof(char*); in _nss_mymachines_gethostbyname3_r()
323 idx = ALIGN(l+1); in _nss_mymachines_gethostbyname3_r()
357 memcpy(r_addr + i*ALIGN(alen), a, alen); in _nss_mymachines_gethostbyname3_r()
362 idx += c * ALIGN(alen); in _nss_mymachines_gethostbyname3_r()
371 ((char**) r_addr_list)[i] = r_addr + i*ALIGN(alen); in _nss_mymachines_gethostbyname3_r()
/systemd-251/src/nss-resolve/
Dnss-resolve.c302 size_t idx, ms = ALIGN(l+1) + ALIGN(sizeof(struct gaih_addrtuple)) * n_addresses; in _nss_resolve_gethostbyname4_r()
314 idx = ALIGN(l + 1); in _nss_resolve_gethostbyname4_r()
331 … r_tuple->next = (struct gaih_addrtuple*) ((char*) r_tuple + ALIGN(sizeof(struct gaih_addrtuple))); in _nss_resolve_gethostbyname4_r()
337 idx += ALIGN(sizeof(struct gaih_addrtuple)); in _nss_resolve_gethostbyname4_r()
461 … size_t idx, ms = ALIGN(l + 1) + n_addresses * ALIGN(alen) + (n_addresses + 2) * sizeof(char*); in _nss_resolve_gethostbyname3_r()
473 idx = ALIGN(l+1); in _nss_resolve_gethostbyname3_r()
499 memcpy(r_addr + i*ALIGN(alen), &q.address, alen); in _nss_resolve_gethostbyname3_r()
504 idx += n_addresses * ALIGN(alen); in _nss_resolve_gethostbyname3_r()
509 ((char**) r_addr_list)[i] = r_addr + i*ALIGN(alen); in _nss_resolve_gethostbyname3_r()
658 ms += ALIGN(strlen(q.name) + 1); in _nss_resolve_gethostbyaddr2_r()
[all …]
/systemd-251/src/basic/
Dmempool.c43 size = PAGE_ALIGN(ALIGN(sizeof(struct pool)) + n*mp->tile_size); in mempool_alloc_tile()
44 n = (size - ALIGN(sizeof(struct pool))) / mp->tile_size; in mempool_alloc_tile()
59 return ((uint8_t*) mp->first_pool) + ALIGN(sizeof(struct pool)) + i*mp->tile_size; in mempool_alloc_tile()
Dmacro.h137 #define ALIGN(l) ALIGN8(l) macro
139 #define ALIGN(l) ALIGN4(l) macro
144 #define ALIGN_PTR(p) ((void*) ALIGN((unsigned long) (p)))
Drecurse-dir.c90 sz = ALIGN(offsetof(DirectoryEntries, buffer) + de->buffer_size); in readdir_all()
100 …de->entries = (struct dirent**) ((uint8_t*) de + ALIGN(offsetof(DirectoryEntries, buffer) + de->bu… in readdir_all()
/systemd-251/src/libsystemd-network/
Dndisc-router.h33 return (uint8_t*) rt + ALIGN(sizeof(sd_ndisc_router)); in NDISC_ROUTER_RAW()
Dlldp-neighbor.h66 return (uint8_t*) n + ALIGN(sizeof(sd_lldp_neighbor)); in LLDP_NEIGHBOR_RAW()
Dndisc-router.c24 if (raw_size > SIZE_MAX - ALIGN(sizeof(sd_ndisc_router))) in ndisc_router_new()
27 rt = malloc0(ALIGN(sizeof(sd_ndisc_router)) + raw_size); in ndisc_router_new()
Dlldp-neighbor.c119 if (raw_size > SIZE_MAX - ALIGN(sizeof(sd_lldp_neighbor))) in lldp_neighbor_new()
122 n = malloc0(ALIGN(sizeof(sd_lldp_neighbor)) + raw_size); in lldp_neighbor_new()
/systemd-251/src/network/
Dnetworkd-ndisc.h39 return ((char*) n) + ALIGN(sizeof(NDiscDNSSL)); in NDISC_DNSSL_DOMAIN()
Dnetworkd-ndisc.c833 s = malloc0(ALIGN(sizeof(NDiscDNSSL)) + strlen(*j) + 1); in ndisc_router_process_dnssl()
/systemd-251/src/journal/
Djournald-audit.c425 if (buffer_size < ALIGN(sizeof(struct nlmsghdr))) in server_process_audit_message()
457 …process_audit_string(s, nl->nlmsg_type, NLMSG_DATA(nl), nl->nlmsg_len - ALIGN(sizeof(struct nlmsgh… in server_process_audit_message()
Djournald-server.c1343ALIGN(sizeof(struct nlmsghdr)) + ALIGN((size_t) MAX_AUDIT_MESSAGE_LENGTH)) + 1); in server_process_datagram()
/systemd-251/src/resolve/
Dresolved-dns-packet.c71 a = PAGE_ALIGN(ALIGN(sizeof(DnsPacket)) + a) - ALIGN(sizeof(DnsPacket)); in dns_packet_new()
77 p = malloc0(ALIGN(sizeof(DnsPacket)) + a); in dns_packet_new()
177 c = malloc(ALIGN(sizeof(DnsPacket)) + p->size); in dns_packet_dup()
375 memcpy(p->_data, (uint8_t*) p + ALIGN(sizeof(DnsPacket)), p->size); in dns_packet_extend()
Dresolved-dns-packet.h100 return ((uint8_t*) p) + ALIGN(sizeof(DnsPacket)); in DNS_PACKET_DATA()
/systemd-251/docs/
DCOREDUMP_PACKAGE_METADATA.md94 .note.package (READONLY) : ALIGN(4) {
/systemd-251/src/libsystemd/sd-bus/
Dbus-message.c459 a = ALIGN(sizeof(sd_bus_message)) + ALIGN(extra); in bus_message_from_header()
517 m->creds.label = (char*) m + ALIGN(sizeof(sd_bus_message)) + ALIGN(extra); in bus_message_from_header()
592 sd_bus_message *t = malloc0(ALIGN(sizeof(sd_bus_message)) + sizeof(struct bus_header)); in sd_bus_message_new()
598 t->header = (struct bus_header*) ((uint8_t*) t + ALIGN(sizeof(struct sd_bus_message))); in sd_bus_message_new()
/systemd-251/src/nss-systemd/
Dnss-systemd.c236 if (buflen < ALIGN(required)) { in copy_synthesized_group()