Lines Matching refs:ret
31 int ret;
44 ret = setgroups(0, NULL);
45 if (ret == -1) {
46 ret = errno;
48 "setgroups failed [%d][%s].\n", ret, strerror(ret));
49 return ret;
53 ret = setresgid(gid, gid, gid);
54 if (ret == -1) {
55 ret = errno;
57 "setresgid failed [%d][%s].\n", ret, strerror(ret));
58 return ret;
63 ret = setresuid(uid, uid, uid);
64 if (ret == -1) {
65 ret = errno;
67 "setresuid failed [%d][%s].\n", ret, strerror(ret));
68 return ret;
92 int ret;
105 ret = errno;
107 ret, strerror(ret));
115 ret = ENOMEM;
122 ret = errno;
124 ret, strerror(ret));
140 ret = setresuid(0, 0, 0);
141 if (ret == -1) {
142 ret = errno;
144 "setresuid failed [%d][%s].\n", ret, strerror(ret));
160 ret = setgroups(num_gids, gids);
161 if (ret == -1) {
162 ret = errno;
164 "setgroups failed [%d][%s].\n", ret, strerror(ret));
168 ret = setresgid(-1, gid, -1);
169 if (ret == -1) {
170 ret = errno;
172 "setresgid failed [%d][%s].\n", ret, strerror(ret));
178 ret = setresuid(-1, uid, -1);
179 if (ret == -1) {
180 ret = errno;
182 "setresuid failed [%d][%s].\n", ret, strerror(ret));
187 ret = 0;
190 if (ret) {
197 return ret;