Searched defs:count (Results 1 - 11 of 11) sorted by relevance

/lxc/src/python-lxc/examples/
H A Dapi_test.py114 count = 0 variable
116 while not ips or count == 10:
119 count += 1
/lxc/hooks/
H A Dunmount-namespace.c103 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/bdev/
H A Dlxcnbd.c302 int count = 0; local
303 while (count < 5) {
307 count++;
/lxc/src/lxc/tools/
H A Dlxc_attach.c83 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 Dlxc_autostart.c349 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++) {
/lxc/src/lxc/
H A Dattach.c372 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 Dlxc_user_nic.c262 * 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 Dstart.c666 int count = 0; local
672 count++;
674 return count;
H A Dutils.c327 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 Dlxccontainer.c633 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...]
/lxc/src/lxc/cgroups/
H A Dcgfsng.c1678 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;

Completed in 80 milliseconds