Searched refs:need (Results 1 - 4 of 4) sorted by relevance
/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 47 if (*allocated >= need) 50 newalloc = MAX(need * 2, 64u / size); 54 if (a < size * need) 66 void* greedy_realloc0(void **p, size_t *allocated, size_t need, size_t size) { argument 75 q = greedy_realloc(p, allocated, need, size);
|
H A D | alloc-util.h | 75 void* greedy_realloc(void **p, size_t *allocated, size_t need, size_t size); 76 void* greedy_realloc0(void **p, size_t *allocated, size_t need, size_t size); 78 #define GREEDY_REALLOC(array, allocated, need) \ 79 greedy_realloc((void**) &(array), &(allocated), (need), sizeof((array)[0])) 81 #define GREEDY_REALLOC0(array, allocated, need) \ 82 greedy_realloc0((void**) &(array), &(allocated), (need), sizeof((array)[0]))
|
/systemd/src/libsystemd/sd-bus/ |
H A D | bus-socket.c | 201 /* Nice! We got all the lines we need. First check the OK 827 static int bus_socket_read_message_need(sd_bus *bus, size_t *need) { argument 833 assert(need); 837 *need = sizeof(struct bus_header) + 8; 875 *need = (size_t) sum; 925 size_t need; local 937 r = bus_socket_read_message_need(bus, &need); 941 if (bus->rbuffer_size >= need) 942 return bus_socket_make_message(bus, need); 944 b = realloc(bus->rbuffer, need); [all...] |
/systemd/src/shared/ |
H A D | acl-util.c | 72 bool need = false; local 88 need = true; 93 if (need && acl_calc_mask(acl_p) < 0) 96 return need;
|
Completed in 1949 milliseconds