/systemd/src/libsystemd/sd-bus/ |
H A D | bus-kernel.h | 61 size_t allocated; member in struct:memfd_cache 75 int bus_kernel_pop_memfd(sd_bus *bus, void **address, size_t *mapped, size_t *allocated); 76 void bus_kernel_push_memfd(sd_bus *bus, int fd, void *address, size_t mapped, size_t allocated);
|
H A D | bus-creds.h | 27 bool allocated; member in struct:sd_bus_creds
|
H A D | bus-creds.c | 53 /* For internal bus cred structures that are allocated by 69 * c->allocated is set, see 80 if (c->allocated) { 100 if (c->allocated) { 154 c->allocated = true; 774 assert(c->allocated); 895 size_t allocated = 0; local 908 if (!GREEDY_REALLOC(c->supplementary_gids, allocated, c->n_supplementary_gids+1))
|
H A D | bus-message.h | 59 size_t allocated; member in struct:bus_body_part
|
H A D | bus-kernel.c | 1430 int bus_kernel_pop_memfd(sd_bus *bus, void **address, size_t *mapped, size_t *allocated) { argument 1436 assert(allocated); 1454 *allocated = 0; 1465 *allocated = c->allocated; 1480 void bus_kernel_push_memfd(sd_bus *bus, int fd, void *address, size_t mapped, size_t allocated) { argument 1509 c->mapped = c->allocated = max_mapped; 1512 c->allocated = allocated;
|
H A D | sd-bus.c | 454 size_t l, n = 0, allocated = 0; local 502 if (!GREEDY_REALLOC(r, allocated, n + 2)) 667 size_t allocated = 0; local 701 if (!GREEDY_REALLOC0(argv, allocated, ul + 2)) { 1795 * of the wqueue array is always allocated so
|
/systemd/src/basic/ |
H A D | alloc-util.c | 40 void* greedy_realloc(void **p, size_t *allocated, size_t need, size_t size) { argument 45 assert(allocated); 47 if (*allocated >= need) 62 *allocated = newalloc; 66 void* greedy_realloc0(void **p, size_t *allocated, size_t need, size_t size) { argument 71 assert(allocated); 73 prev = *allocated; 75 q = greedy_realloc(p, allocated, need, size); 79 if (*allocated > prev) 80 memzero(q + prev * size, (*allocated [all...] |
H A D | extract-word.c | 39 size_t allocated = 0, sz = 0; local 63 if (!GREEDY_REALLOC(s, allocated, sz+1)) 78 if (!GREEDY_REALLOC(s, allocated, sz+1)) 86 if (!GREEDY_REALLOC(s, allocated, sz+7)) 144 if (!GREEDY_REALLOC(s, allocated, sz+2)) 176 if (!GREEDY_REALLOC(s, allocated, sz+2))
|
H A D | process-util.c | 120 size_t len = 0, allocated = 0; local 124 if (!GREEDY_REALLOC(r, allocated, len+2)) { 381 size_t allocated = 0, sz = 0; local 396 if (!GREEDY_REALLOC(outcome, allocated, sz + 5))
|
H A D | json.c | 259 size_t n = 0, allocated = 0; local 332 if (!GREEDY_REALLOC(s, allocated, n + 4)) 361 if (!GREEDY_REALLOC(s, allocated, n + 2)) 373 if (!GREEDY_REALLOC(s, allocated, n + len + 1)) 625 size_t allocated = 0, size = 0; local 691 if(!GREEDY_REALLOC(items, allocated, size + toadd)) 770 size_t allocated = 0, s = 0; local 837 if (!GREEDY_REALLOC(items, allocated, s+2))
|
H A D | strv.c | 326 size_t n = 0, allocated = 0; local 341 if (!GREEDY_REALLOC(l, allocated, n + 2)) 399 size_t allocated = 0, len = 0; local 409 if (!GREEDY_REALLOC(buf, allocated, 417 needed = snprintf(buf + len, allocated - len, "%s\"%s\"", 419 assert(needed < allocated - len);
|
/systemd/src/network/ |
H A D | test-network.c | 57 size_t size, allocated; local 61 assert_se(deserialize_dhcp_routes(&routes, &size, &allocated, "") >= 0); 70 assert_se(deserialize_dhcp_routes(&routes, &size, &allocated, routes_string) >= 0); 91 assert_se(deserialize_dhcp_routes(&routes, &size, &allocated, routes_string) >= 0); 108 assert_se(deserialize_dhcp_routes(&routes, &size, &allocated, routes_string) >= 0);
|
/systemd/src/libsystemd-network/ |
H A D | dhcp6-option.c | 325 size_t *allocated) { 330 if (!GREEDY_REALLOC(*addrs, *allocated, 351 size_t n = 0, allocated = 0; local 371 if (!GREEDY_REALLOC(ret, allocated, n + !first + DNS_LABEL_ESCAPED_MAX)) { 393 if (!GREEDY_REALLOC(ret, allocated, n + 1)) { 323 dhcp6_option_parse_ip6addrs(uint8_t *optval, uint16_t optlen, struct in6_addr **addrs, size_t count, size_t *allocated) argument
|
H A D | network-internal.c | 465 size_t size = 0, allocated = 0; local 481 if (!GREEDY_REALLOC(routes, allocated, size + 1)) 525 *ret_allocated = allocated;
|
/systemd/src/machine/ |
H A D | machine.c | 315 size_t allocated = 0, nr = 0; local 337 if (!GREEDY_REALLOC(ni, allocated, nr+1)) {
|
/systemd/src/resolve/ |
H A D | resolved-link-bus.c | 162 size_t allocated = 0, n = 0; local 204 if (!GREEDY_REALLOC(dns, allocated, n+1))
|
H A D | resolved-dns-packet.h | 74 size_t size, allocated, rindex; member in struct:DnsPacket
|
H A D | resolved-dns-packet.c | 57 p->allocated = a; 290 if (p->size + add > p->allocated) { 317 p->allocated = a; 1317 size_t n = 0, allocated = 0; local 1348 if (!GREEDY_REALLOC(ret, allocated, n + !first + DNS_LABEL_ESCAPED_MAX)) { 1390 if (!GREEDY_REALLOC(ret, allocated, n + 1)) {
|
/systemd/src/journal/ |
H A D | journald-audit.c | 37 size_t l = 0, allocated = 0; local 46 allocated = l + 1; 47 c = malloc(allocated); 53 if (!GREEDY_REALLOC(c, allocated, l+2)) 104 size_t allocated = 0; local 107 allocated = l + 2; 108 c = malloc(allocated); 130 if (!GREEDY_REALLOC(c, allocated, l+2)) 420 * are allocated on the stack or are constant. */
|
/systemd/src/shared/ |
H A D | dns-domain.c | 405 size_t n = 0, allocated = 0; local 439 if (!GREEDY_REALLOC(ret, allocated, n + !first + DNS_LABEL_ESCAPED_MAX)) 471 if (!GREEDY_REALLOC(ret, allocated, 2)) 476 if (!GREEDY_REALLOC(ret, allocated, n + 1)) 1274 size_t n = 0, allocated = 0; local 1296 if (!GREEDY_REALLOC(buf, allocated, n + !first + DNS_LABEL_ESCAPED_MAX)) 1314 if (!GREEDY_REALLOC(buf, allocated, n + 1))
|
/systemd/src/libsystemd/sd-login/ |
H A D | sd-login.c | 908 size_t l, allocated = 0, nr = 0; local 936 if (!GREEDY_REALLOC(ni, allocated, nr+1)) {
|
/systemd/src/systemctl/ |
H A D | systemctl.c | 2660 size_t allocated, n; local 2667 allocated = n + 1; 2670 if (!GREEDY_REALLOC(mangled, allocated, n+2))
|