Lines Matching refs:ret
51 int ret = -1;
79 ret = lxc_cgroup_get("memory.soft_limit_in_bytes", value, sizeof(value),
81 if (ret < 0) {
87 ret = lxc_cgroup_set("memory.soft_limit_in_bytes", "512M", c->name, c->config_path);
88 if (ret < 0) {
89 TSTERR("lxc_cgroup_set failed %d %d", ret, errno);
92 ret = lxc_cgroup_get("memory.soft_limit_in_bytes", value, sizeof(value),
94 if (ret < 0) {
104 ret = lxc_cgroup_set("memory.soft_limit_in_bytes", value_save,
106 if (ret < 0) {
111 ret = 0;
118 return ret;
125 int ret;
129 ret = mkdir(lxcpath, 0755);
130 if (ret < 0 && errno != EEXIST) {
135 ret = -1;
158 ret = test_running_container(lxcpath, group, name);
166 return ret;
171 int ret = EXIT_FAILURE;
204 ret = EXIT_SUCCESS;
206 return ret;