Searched defs:capacity (Results 1 - 3 of 3) sorted by relevance

/lxc/hooks/
H A Dunmount-namespace.c102 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 Dlxc_attach.c81 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 Dutils.c894 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;

Completed in 22 milliseconds