Searched refs:capacity (Results 1 - 4 of 4) sorted by relevance
/lxc/hooks/ |
H A D | unmount-namespace.c | 102 size_t capacity = 32; local 104 struct mount *mounts = (struct mount*)malloc(capacity * sizeof(*mounts)); 130 if (count == capacity) { 131 capacity *= 2; 132 new = (struct mount*)realloc(mounts, capacity * sizeof(*mounts));
|
/lxc/src/lxc/tools/ |
H A D | lxc_attach.c | 81 static int add_to_simple_array(char ***array, ssize_t *capacity, char *value) argument 92 if (count >= *capacity - 1) { 99 *capacity = new_capacity;
|
/lxc/src/lxc/ |
H A D | utils.c | 894 int lxc_grow_array(void ***array, size_t* capacity, size_t new_size, size_t capacity_increment) argument 901 if (!*array || !*capacity) { 903 *capacity = 0; 906 new_capacity = *capacity; 909 if (new_capacity != *capacity) { 914 memset(&new_array[*capacity], 0, (new_capacity - (*capacity)) * sizeof(void *)); 916 *capacity = new_capacity;
|
H A D | utils.h | 286 extern int lxc_grow_array(void ***array, size_t* capacity, size_t new_size, size_t capacity_increment);
|
Completed in 16 milliseconds