Lines Matching refs:rval
32 int rval; in safe_setpgid() local
34 rval = setpgid(pid, pgid); in safe_setpgid()
35 if (rval) { in safe_setpgid()
41 return rval; in safe_setpgid()
60 int rval; in safe_fanotify_init() local
63 rval = fanotify_init(flags, event_f_flags); in safe_fanotify_init()
65 if (rval == -1) { in safe_fanotify_init()
77 return rval; in safe_fanotify_init()
96 int rval; in safe_setregid() local
98 rval = setregid(rgid, egid); in safe_setregid()
99 if (rval == -1) { in safe_setregid()
105 return rval; in safe_setregid()
112 int rval; in safe_setreuid() local
114 rval = setreuid(ruid, euid); in safe_setreuid()
115 if (rval == -1) { in safe_setreuid()
121 return rval; in safe_setreuid()
129 int rval; in safe_sigaction() local
131 rval = sigaction(signum, act, oldact); in safe_sigaction()
133 if (rval == -1) { in safe_sigaction()
139 return rval; in safe_sigaction()
145 struct group *rval; in safe_getgrnam() local
148 rval = getgrnam(name); in safe_getgrnam()
149 if (rval == NULL) { in safe_getgrnam()
154 return rval; in safe_getgrnam()
160 struct group *rval; in safe_getgrnam_fallback() local
163 rval = getgrnam(name); in safe_getgrnam_fallback()
164 if (rval == NULL) { in safe_getgrnam_fallback()
168 rval = safe_getgrnam(file, lineno, fallback); in safe_getgrnam_fallback()
171 return rval; in safe_getgrnam_fallback()
176 struct group *rval; in safe_getgrgid() local
179 rval = getgrgid(gid); in safe_getgrgid()
180 if (rval == NULL) { in safe_getgrgid()
185 return rval; in safe_getgrgid()
190 int rval; in safe_chroot() local
192 rval = chroot(path); in safe_chroot()
193 if (rval == -1) { in safe_chroot()
198 return rval; in safe_chroot()