/lxc/hooks/ |
H A D | unmount-namespace.c | 103 size_t count = 0; local 130 if (count == capacity) { 137 new = &mounts[count++]; 147 *countp = count; 153 while (count--) { 154 free(mounts[count].src); 155 free(mounts[count].dst); 156 free(mounts[count].fs); 166 size_t zi, count = 0; local 217 if (!read_mounts(procfd, &mounts, &count)) { [all...] |
/lxc/src/lxc/tools/ |
H A D | lxc_attach.c | 83 ssize_t count = 0; local 89 for (; (*array)[count]; count++); 92 if (count >= *capacity - 1) { 93 ssize_t new_capacity = ((count + 1) / 32 + 1) * 32; 97 memset(&new_array[count], 0, sizeof(char*)*(new_capacity - count)); 105 (*array)[count] = value;
|
H A D | lxc_autostart.c | 349 int count = 0; local 364 count = list_defined_containers(my_args.lxcpath[0], NULL, &containers); 366 if (count < 0) 371 c_groups_lists = calloc( count, sizeof( struct lxc_list * ) ); 374 qsort(&containers[0], count, sizeof(struct lxc_container *), cmporder); 400 for (i = 0; i < count; i++) { 532 for (i = 0; i < count; i++) {
|
H A D | lxc-start-ephemeral.in | 244 count = 0 250 deltdir = "%s/delta%s" % (tmpdir, count) 251 workdir = "%s/work%s" % (tmpdir, count) 286 count += 1
|
/lxc/src/lxc/ |
H A D | utils.h | 239 extern ssize_t lxc_write_nointr(int fd, const void* buf, size_t count); 240 extern ssize_t lxc_read_nointr(int fd, void* buf, size_t count); 241 extern ssize_t lxc_read_nointr_expect(int fd, void* buf, size_t count, const void* expected_buf); 248 extern int lxc_write_to_file(const char *filename, const void* buf, size_t count, bool add_newline); 249 extern int lxc_read_from_file(const char *filename, void* buf, size_t count); 290 extern void **lxc_append_null_to_array(void **array, size_t count);
|
H A D | utils.c | 327 ssize_t lxc_write_nointr(int fd, const void* buf, size_t count) argument 331 ret = write(fd, buf, count); 337 ssize_t lxc_read_nointr(int fd, void* buf, size_t count) argument 341 ret = read(fd, buf, count); 347 ssize_t lxc_read_nointr_expect(int fd, void* buf, size_t count, const void* expected_buf) argument 350 ret = lxc_read_nointr(fd, buf, count); 353 if ((size_t)ret != count) 355 if (expected_buf && memcmp(buf, expected_buf, count) != 0) { 427 size_t count = 1 + skip; local 438 count 934 lxc_write_to_file(const char *filename, const void* buf, size_t count, bool add_newline) argument 962 lxc_read_from_file(const char *filename, void* buf, size_t count) argument 992 lxc_append_null_to_array(void **array, size_t count) argument [all...] |
H A D | lxc_user_nic.c | 262 * user type bridge count 264 * @group type bridge count 266 * Return the count entry for the calling user if there is one. Else 276 int count = 0; local 316 * we set count to 0 and break the loop, allowing cleanup and 320 count = 0; 323 count += n; 331 return count; 628 int count = 0; local 632 count 654 int count = 0; local [all...] |
H A D | lxccontainer.c | 633 int count=0; local 650 if (++count > 1) 654 return count == 1; 1781 int i, count = 0, pipefd[2]; local 1823 count++; 1840 if (array_contains(&interfaces, interface, count)) 1843 if(!add_to_array(&interfaces, interface, count)) 1845 count++; 1849 for(i=0;i<count;i++) 1860 interfaces = (char **)lxc_append_null_to_array((void **)interfaces, count); 1870 int i, count = 0, pipefd[2]; local 2297 int count=0; local 3518 int count = 0, ret; local [all...] |
H A D | attach.c | 372 size_t count, i; local 374 for (count = 0; extra_keep[count]; count++); 376 extra_keep_store = calloc(count, sizeof(char *)); 382 for (i = 0; i < count; i++) {
|
H A D | start.c | 666 int count = 0; local 672 count++; 674 return count;
|
/lxc/src/python-lxc/examples/ |
H A D | api_test.py | 114 count = 0 variable 116 while not ips or count == 10: 119 count += 1
|
/lxc/src/lxc/bdev/ |
H A D | lxcnbd.c | 302 int count = 0; local 303 while (count < 5) { 307 count++;
|
/lxc/src/tests/ |
H A D | lxc-test-unpriv | 179 for count in `seq 1 2`; do 183 [ "$p1" != "-1" ] || { echo "Failed to start container c1 (run $count)"; false; }
|
/lxc/src/lxc/cgroups/ |
H A D | cgfsng.c | 1678 int count = 0, ret; local 1703 count += recursive_count_nrtasks(path); 1711 count += ret; 1716 return count; 1722 int count; local 1727 count = recursive_count_nrtasks(path); 1729 return count;
|
/lxc/src/python-lxc/lxc/ |
H A D | __init__.py | 141 count = len(self) 142 if index >= count:
|