/lxc/src/include/ |
H A D | getline.c | 51 void *tmp = realloc(*outbuf, len + 1); local 52 if (tmp == NULL) 54 *outbuf = tmp;
|
H A D | lxcmntent.c | 96 char tmp[1024]; local 97 while (fgets (tmp, sizeof tmp, stream) != NULL) 98 if (strchr (tmp, '\n') != NULL)
|
/lxc/config/yum/ |
H A D | lxc-patch.py | 45 tmp = confpkgs.split(",") 46 for confpkg in tmp:
|
/lxc/src/tests/ |
H A D | lxc-test-checkpoint-restore | 47 lxc-checkpoint -n $name -v -s -D /tmp/checkpoint || FAIL "failed checkpointing" 49 lxc-checkpoint -n $name -v -r -D /tmp/checkpoint || FAIL "failed restoring"
|
H A D | lxc-test-lxc-attach | 165 out=$(mktemp /tmp/out_XXXX) 166 err=$(mktemp /tmp/err_XXXX) 181 out=$(mktemp /tmp/out_XXXX) 182 err=$(mktemp /tmp/err_XXXX) 195 trap "rm -f /tmp/ptylog" EXIT INT QUIT PIPE 196 lxc-attach -n busy -L /tmp/ptylog -- hostname || FAIL "to allocate or setup pty" 197 if [ ! -s /tmp/ptylog ]; then 198 FAIL "lxc-attach -n busy -L /tmp/ptylog -- hostname" 201 rm -f /tmp/ptylog
|
H A D | lxc-test-createconfig | 26 s=`mktemp -d /tmp/lxctest-XXXXXX`
|
H A D | lxc-test-cloneconfig | 26 s=`mktemp -d /tmp/lxctest-XXXXXX`
|
H A D | lxc-test-usernic.in | 46 rm -rf /tmp/usernic-test /home/usernic-user /run/user/$(id -u usernic-user)
|
/lxc/src/lxc/tools/ |
H A D | lxc_usernsexec.c | 145 struct lxc_list *tmp = NULL; local 179 tmp = malloc(sizeof(*tmp)); 180 if (!tmp) { 185 tmp->elem = newmap; 186 lxc_list_add_tail(&active_map, tmp); 207 struct lxc_list *tmp = NULL; local 235 tmp = malloc(sizeof(*tmp)); 236 if (!tmp) { [all...] |
H A D | lxc_ls.c | 368 char *tmp = NULL; local 379 tmp = args->ls_filter ? args->ls_filter : args->argv[0]; 380 check = regcomp(&preg, tmp, REG_NOSUB | REG_EXTENDED); 460 tmp = ls_get_config_item(c, "lxc.start.auto", running); 461 if (tmp) { 463 if (lxc_safe_uint(tmp, &astart) < 0) 469 free(tmp); 480 tmp = ls_get_cgroup_item(c, "memory.usage_in_bytes"); 481 if (tmp) { 482 l->ram = strtoull(tmp, NUL 618 char *tmp; local 675 char *tmp = strchr(swap, '\\n'); // find end of swap value local 787 char **tmp = lxc_string_split_and_trim(fancy_fmt, ','); local 1016 char *tmp = realloc(*lockpath, newlen * 2); local [all...] |
/lxc/config/apparmor/ |
H A D | lxc-generate-aa-rules.py | 59 tmp = child_get(prev, n['path']) 60 if tmp is not None: 61 prev = tmp
|
/lxc/src/lxc/ |
H A D | af_unix.c | 69 int tmp = errno; local 71 errno = tmp; 76 int tmp = errno; local 78 errno = tmp; 124 int tmp = errno; local 129 errno = tmp;
|
H A D | utils.c | 243 const char *tmp = dir; local 248 dir = tmp + strspn(tmp, "/"); 249 tmp = dir + strcspn(dir, "/"); 259 } while(tmp != dir); 809 char **tmp = NULL, **result = NULL; local 830 tmp = realloc(result, (result_count + 1) * sizeof(char *)); 831 if (!tmp) 833 result = tmp; 1259 *tmp; local 1414 char buf[2048], *tmp; local 1877 void *tmp = NULL, *overlap = NULL; local 1941 void **tmp; local [all...] |
H A D | criu.c | 652 char *tmp; local 668 tmp = malloc(1024); 669 if (!tmp) { 674 if (fscanf(f, "Version: %1023[^\n]s", tmp) != 1) 680 if (strcmp(tmp, CRIU_VERSION) >= 0) 683 if (fscanf(f, "GitID: v%1023[^-]s", tmp) != 1) 692 if (strcmp(tmp, CRIU_GITID_VERSION) < 0) 701 free(tmp); 703 *version = tmp; 708 free(tmp); [all...] |
H A D | conf.c | 4491 struct lxc_list *new = NULL, *tmp, *it, *next; local 4505 tmp = malloc(sizeof(*tmp)); 4506 if (!tmp) 4510 free(tmp); 4513 tmp->elem = entry; 4518 lxc_list_add_tail(new, tmp); 4524 tmp = malloc(sizeof(*tmp)); 4525 if (!tmp) [all...] |
H A D | confile.c | 1806 char *tmp = realloc(conf->unexpanded_config, conf->unexpanded_alloced + 1024); local 1807 if (!tmp) 1810 *tmp = '\0'; 1811 conf->unexpanded_config = tmp; 2652 char *tmp = alloca(len); local 2654 ret = snprintf(tmp, len, "%s = %s", key, v); 2659 if (append_unexp_config_line(tmp, conf))
|
/lxc/src/lxc/bdev/ |
H A D | lxcaufs.c | 238 char *tmp, *options, *dup, *lower, *upper; local 259 while ((tmp = strstr(++upper, ":/"))) { 260 upper = tmp; 359 char *tmp = NULL; local 381 tmp = opts[i] + len; 383 if (!tmp) 386 upperdir = strtok_r(tmp, ":=", &scratch);
|
H A D | lxcoverlay.c | 316 char *tmp, *options, *dup, *lower, *upper; local 343 while ((tmp = strstr(++upper, ":/"))) { 344 upper = tmp; 615 char *tmp = NULL; local 620 tmp = "upperdir"; 622 tmp = "br"; 624 if (!tmp) 627 ret = snprintf(old_upper, MAXPATHLEN, "%s=%s/%s", tmp, lxc_path, lxc_name); 631 ret = snprintf(new_upper, MAXPATHLEN, "%s=%s/%s", tmp, cleanpath, newname);
|
H A D | lxcbtrfs.c | 517 struct mytree_node *tmp; local 524 tmp = realloc(tree->nodes, (tree->num+1) * sizeof(struct mytree_node)); 525 if (!tmp) 527 tree->nodes = tmp;
|
/lxc/src/lxc/cgroups/ |
H A D | cgmanager.c | 618 char result[MAXPATHLEN], *tmp, *cgroup_path; local 627 tmp = lxc_string_replace("%n", d->name, d->cgroup_pattern); 628 if (!tmp) 630 if (strlen(tmp) >= MAXPATHLEN) { 631 free(tmp); 634 strcpy(result, tmp); 636 free(tmp); 637 tmp = result; 638 while (*tmp == '/') 639 tmp 1146 char *tmp = alloca(strlen(inlist) + 1), *tok, *saveptr = NULL; local 1341 char **tmp = NIH_MUST( realloc(subsystems, local 1362 char *slist, *end, *p, *saveptr = NULL, **tmp; local [all...] |
H A D | cgfsng.c | 878 char *tok, *saveptr = NULL, *eol, *tmp; local 886 tmp = alloca(len + 1); 887 memcpy(tmp, cgline, len); 888 tmp[len] = '\0'; 890 for (tok = strtok_r(tmp, ",", &saveptr); tok; 1147 const char *tmp; local 1149 tmp = lxc_global_config_value("lxc.cgroup.use"); 1154 cgroup_use = must_copy_string(tmp); 1353 char *tmp, *cgname, *offset; local 1364 tmp [all...] |
H A D | cgfs.c | 1138 char *tmp = cgroup_rename_nsgroup((const char *)info_ptr->designated_mount_point->mount_point, local 1140 if (!tmp) 1143 info_ptr->cgroup_path = tmp; 1147 tmp = strdup(tmp); 1148 if (!tmp) 1150 info_ptr->created_paths[info_ptr->created_paths_count++] = tmp; 2242 char *childfile, *parentfile = NULL, *tmp; local 2264 tmp = strrchr(parentfile, '/'); 2265 if (!tmp) [all...] |
/lxc/templates/ |
H A D | lxc-plamo.in | 130 ( cd $dlcache ; tar xpJf hdsetup-*.txz ; rm -rf tmp usr var ) 157 none /tmp tmpfs defaults 0 0 205 head -n-93 $rootfs/sbin/netconfig.tradnet > /tmp/netconfig.rconly 206 cat <<- EOF >> /tmp/netconfig.rconly 219 sh /tmp/netconfig.rconly 220 rm -f /tmp/netconfig.rconly
|
H A D | lxc-slackware.in | 80 chmod 1777 $T_PX/tmp 136 cat >$rootfs/tmp/rcs.patch <<'EOF' 328 /bin/rm -f /etc/mtab{,~,.tmp} && /bin/touch /etc/mtab 407 chmod 1777 /tmp /var/tmp 460 ( cd $rootfs ; patch -p1 < tmp/rcs.patch ; rm tmp/rcs.patch )
|
H A D | lxc-centos.in | 302 rm -rf {/,/var}/tmp/* 485 mv $REPO_FILE $REPO_FILE.tmp 488 mv $REPO_FILE.tmp $REPO_FILE 501 mv $INSTALL_ROOT/$INSTALL_ROOT $INSTALL_ROOT.tmp 503 mv $INSTALL_ROOT.tmp $INSTALL_ROOT
|