Lines Matching defs:ret
35 int status, ret;
43 ret = execlp("lxc-destroy", "lxc-destroy", "-f", "-n", MYNAME, NULL);
49 ret = waitpid(pid, &status, 0);
50 if (ret == -1) {
56 if (ret != pid)
67 int status, ret;
75 ret = execlp("lxc-create", "lxc-create", "-t", "busybox", "-n", MYNAME, NULL);
81 ret = waitpid(pid, &status, 0);
82 if (ret == -1) {
88 if (ret != pid)
100 int ret = 0;
106 ret = 1;
111 ret = 1;
120 ret = create_container();
121 if (ret) {
182 fprintf(stderr, "%d: not able to get length of cpuset.cpus (ret %d)\n", __LINE__, len);
214 ret = system("mkdir -p " LXCPATH "/lxctest1/rootfs//usr/local/libexec/lxc");
215 if (!ret)
216 ret = system("mkdir -p " LXCPATH "/lxctest1/rootfs/usr/lib/lxc/");
217 if (!ret)
218 ret = system("cp src/lxc/lxc-init " LXCPATH "/lxctest1/rootfs//usr/local/libexec/lxc");
219 if (!ret)
220 ret = system("cp src/lxc/liblxc.so " LXCPATH "/lxctest1/rootfs/usr/lib/lxc");
221 if (!ret)
222 ret = system("cp src/lxc/liblxc.so " LXCPATH "/lxctest1/rootfs/usr/lib/lxc/liblxc.so.0");
223 if (!ret)
224 ret = system("cp src/lxc/liblxc.so " LXCPATH "/lxctest1/rootfs/usr/lib");
225 if (!ret)
226 ret = system("mkdir -p " LXCPATH "/lxctest1/rootfs/dev/shm");
227 if (!ret)
228 ret = system("chroot " LXCPATH "/lxctest1/rootfs apt-get install --no-install-recommends lxc");
229 if (ret) {
243 ret = 0;
251 exit(ret);