Lines Matching refs:ret
58 int nrconsoles, i, ret = -1;
67 ret = c->console_getfd(c, &ttynum[0], &masterfd[0]);
68 if (ret < 0) {
72 ttyfd[0] = ret;
79 ret = c->console_getfd(c, &ttynum[0], &masterfd[1]);
80 if (ret != -1) {
92 ret = c->console_getfd(c, &ttynum[nrconsoles], &masterfd[nrconsoles]);
93 if (ret < 0)
95 ttyfd[nrconsoles] = ret;
103 ret = 0;
108 return ret;
122 int ret;
126 ret = mkdir(lxcpath, 0755);
127 if (ret < 0 && errno != EEXIST) {
132 ret = -1;
156 ret = test_console_running_container(c);
164 return ret;
169 int ret;
170 ret = test_console(NULL, NULL, TSTNAME, "busybox");
171 if (ret < 0)
174 ret = test_console("/var/lib/lxctest2", NULL, TSTNAME, "busybox");
175 if (ret < 0)
179 return ret;