Searched defs:newlen (Results 1 - 7 of 7) sorted by relevance
/lxc/src/lxc/bdev/ |
H A D | lxcaufs.c | 178 int ret, len = strlen(dest), newlen; local 198 newlen = (2 * len) + strlen("aufs:") + 2; 199 bdev->src = malloc(newlen); 204 ret = snprintf(bdev->src, newlen, "aufs:%s:%s", dest, delta); 205 if (ret < 0 || ret >= newlen)
|
H A D | lxcoverlay.c | 248 int ret, len = strlen(dest), newlen; local 268 newlen = (2 * len) + strlen("overlayfs:") + 2; 269 bdev->src = malloc(newlen); 274 ret = snprintf(bdev->src, newlen, "overlayfs:%s:%s", dest, delta); 275 if (ret < 0 || ret >= newlen)
|
/lxc/src/lxc/tools/ |
H A D | lxc_ls.c | 1014 size_t newlen = strlen(path) + strlen(name) + strlen(rundir) + /* / + lxc + / + lock + / + / = */ 11 + 1; local 1015 if (newlen > *len_lockpath) { 1016 char *tmp = realloc(*lockpath, newlen * 2); 1020 *len_lockpath = newlen * 2;
|
/lxc/src/lxc/cgroups/ |
H A D | cgfs.c | 779 int len, newlen, ret; local 810 newlen = strlen(mountpath) + len + 2; 811 fullnewpath = alloca(newlen); 812 ret = snprintf(fullnewpath, newlen, "%s/%s", mountpath, newname); 813 if (ret < 0 || ret >= newlen) {
|
H A D | cgfsng.c | 265 static void batch_realloc(char **mem, size_t oldlen, size_t newlen) argument 267 int newbatches = (newlen / BATCH_SIZE) + 1; 275 static void append_line(char **dest, size_t oldlen, char *new, size_t newlen) argument 277 size_t full = oldlen + newlen; 281 memcpy(*dest + oldlen, new, newlen + 1);
|
H A D | cgmanager.c | 940 int p[2], ret, newlen, readlen; local 952 ret = read(p[0], &newlen, sizeof(newlen)); 953 if (ret != sizeof(newlen)) { 960 ret = newlen; 964 if (newlen < 0) { // child is reporting an error 969 if (newlen == 0) { // empty read 974 readlen = newlen > len ? len : newlen; 981 if (newlen > [all...] |
/lxc/src/lxc/ |
H A D | confile.c | 2769 size_t newlen = oldlen + diff; local 2771 new = realloc(conf->unexpanded_config, newlen + 1); 2776 conf->unexpanded_len = newlen; 2777 conf->unexpanded_alloced = newlen + 1; 2778 new[newlen - 1] = '\0'; 2850 size_t newlen = oldlen + diff; local 2852 new = realloc(conf->unexpanded_config, newlen + 1); 2857 conf->unexpanded_len = newlen; 2858 conf->unexpanded_alloced = newlen + 1; 2859 new[newlen [all...] |
Completed in 59 milliseconds