Searched refs:ALIGN (Results 1 - 10 of 10) sorted by relevance

/systemd/src/basic/
H A Dmempool.c59 size = PAGE_ALIGN(ALIGN(sizeof(struct pool)) + n*mp->tile_size);
60 n = (size - ALIGN(sizeof(struct pool))) / mp->tile_size;
75 return ((uint8_t*) mp->first_pool) + ALIGN(sizeof(struct pool)) + i*mp->tile_size;
H A Dmacro.h93 #define ALIGN(l) ALIGN8(l) macro
95 #define ALIGN(l) ALIGN4(l) macro
100 #define ALIGN_PTR(p) ((void*) ALIGN((unsigned long) (p)))
/systemd/src/nss-myhostname/
H A Dnss-myhostname.c118 ms = ALIGN(l+1) + ALIGN(sizeof(struct gaih_addrtuple)) * (n_addresses > 0 ? n_addresses : 2);
128 idx = ALIGN(l+1);
139 idx += ALIGN(sizeof(struct gaih_addrtuple));
150 idx += ALIGN(sizeof(struct gaih_addrtuple));
163 idx += ALIGN(sizeof(struct gaih_addrtuple));
217 ms = ALIGN(l_canonical+1)+
218 (additional ? ALIGN(l_additional+1) : 0) +
221 (c > 0 ? c : 1) * ALIGN(alen) +
233 idx = ALIGN(l_canonica
[all...]
/systemd/src/nss-resolve/
H A Dnss-resolve.c195 ms = ALIGN(l+1) + ALIGN(sizeof(struct gaih_addrtuple)) * c;
205 idx = ALIGN(l+1);
247 r_tuple->next = i == c-1 ? NULL : (struct gaih_addrtuple*) ((char*) r_tuple + ALIGN(sizeof(struct gaih_addrtuple)));
253 idx += ALIGN(sizeof(struct gaih_addrtuple));
389 ms = ALIGN(l+1) + c * ALIGN(alen) + (c+2) * sizeof(char*);
400 idx = ALIGN(l+1);
444 memcpy(r_addr + i*ALIGN(alen), a, alen);
451 idx += c * ALIGN(ale
[all...]
/systemd/src/nss-mymachines/
H A Dnss-mymachines.c151 ms = ALIGN(l+1) + ALIGN(sizeof(struct gaih_addrtuple)) * c;
161 idx = ALIGN(l+1);
193 r_tuple->next = i == c-1 ? NULL : (struct gaih_addrtuple*) ((char*) r_tuple + ALIGN(sizeof(struct gaih_addrtuple)));
199 idx += ALIGN(sizeof(struct gaih_addrtuple));
305 ms = ALIGN(l+1) + c * ALIGN(alen) + (c+2) * sizeof(char*);
316 idx = ALIGN(l+1);
350 memcpy(r_addr + i*ALIGN(alen), a, alen);
355 idx += c * ALIGN(ale
[all...]
/systemd/src/journal/
H A Djournald-audit.c438 if (buffer_size < ALIGN(sizeof(struct nlmsghdr)))
470 process_audit_string(s, nl->nlmsg_type, NLMSG_DATA(nl), nl->nlmsg_len - ALIGN(sizeof(struct nlmsghdr)));
H A Djournald-server.c1207 ALIGN(sizeof(struct nlmsghdr)) + ALIGN((size_t) MAX_AUDIT_MESSAGE_LENGTH)) + 1);
/systemd/src/resolve/
H A Dresolved-dns-packet.h107 return ((uint8_t*) p) + ALIGN(sizeof(DnsPacket));
H A Dresolved-dns-packet.c46 a = PAGE_ALIGN(ALIGN(sizeof(DnsPacket)) + a) - ALIGN(sizeof(DnsPacket));
52 p = malloc0(ALIGN(sizeof(DnsPacket)) + a);
313 memcpy(p->_data, (uint8_t*) p + ALIGN(sizeof(DnsPacket)), p->size);
/systemd/src/libsystemd/sd-bus/
H A Dbus-message.c469 a = ALIGN(sizeof(sd_bus_message)) + ALIGN(extra);
528 m->creds.label = (char*) m + ALIGN(sizeof(sd_bus_message)) + ALIGN(extra);
600 m = malloc0(ALIGN(sizeof(sd_bus_message)) + sizeof(struct bus_header));
605 m->header = (struct bus_header*) ((uint8_t*) m + ALIGN(sizeof(struct sd_bus_message)));

Completed in 4599 milliseconds