Searched defs:pos (Results 1 - 5 of 5) sorted by relevance
/lxc/src/lxc/bdev/ |
H A D | lxclvm.c | 182 int lvm_compare_lv_attr(const char *path, int pos, const char expected) argument 215 if (start + pos < len && output[start + pos] == expected)
|
/lxc/src/lxc/ |
H A D | criu.c | 139 size_t pos; local 572 pos = 0; 575 ret = snprintf(buf + pos, sizeof(buf) - pos, "%s ", argv[i]); 576 if (ret < 0 || ret >= sizeof(buf) - pos) 579 pos += ret;
|
H A D | utils.c | 695 size_t pos = 0; local 704 for (pos = 0; pos < components_len; ) { 705 if (!strcmp(components[pos], ".") || (!strcmp(components[pos], "..") && pos == 0)) { 707 free(components[pos]); 708 memmove(&components[pos], &components[pos+1], sizeof(char *) * (components_len - pos)); [all...] |
H A D | conf.c | 3352 char *pos; local 3385 buf = pos = malloc(LXC_IDMAPLEN); 3389 pos = buf; 3391 pos += sprintf(buf, "new%cidmap %d", type == ID_TYPE_UID ? 'u' : 'g', pid); 3403 left = LXC_IDMAPLEN - (pos - buf); 3404 fill = snprintf(pos, left, "%s%lu %lu %lu%s", 3411 pos += fill; 3417 ret = write_id_mapping(type, pid, buf, pos - buf); 3419 left = LXC_IDMAPLEN - (pos - buf); 3420 fill = snprintf(pos, lef [all...] |
H A D | lxccontainer.c | 1719 static bool add_to_array(char ***names, char *cname, int pos) argument 1721 char **newnames = realloc(*names, (pos+1) * sizeof(char *)); 1728 newnames[pos] = strdup(cname); 1729 if (!newnames[pos]) 1733 qsort(newnames, pos + 1, sizeof(char *), (int (*)(const void *,const void *))string_cmp); 1738 static bool add_to_clist(struct lxc_container ***list, struct lxc_container *c, int pos, bool sort) argument 1740 struct lxc_container **newlist = realloc(*list, (pos+1) * sizeof(struct lxc_container *)); 1747 newlist[pos] = c; 1751 qsort(newlist, pos + 1, sizeof(struct lxc_container *), (int (*)(const void *,const void *))container_cmp);
|
Completed in 252 milliseconds