Lines Matching refs:rval
167 void *rval; in safe_mmap() local
169 rval = mmap(addr, length, prot, flags, fd, offset); in safe_mmap()
170 if (rval == MAP_FAILED) { in safe_mmap()
177 return rval; in safe_mmap()
186 int rval; in safe_ftruncate() local
188 rval = ftruncate(fd, length); in safe_ftruncate()
189 if (rval == -1) { in safe_ftruncate()
195 return rval; in safe_ftruncate()
203 int rval; in safe_truncate() local
205 rval = truncate(path, length); in safe_truncate()
206 if (rval == -1) { in safe_truncate()
212 return rval; in safe_truncate()
220 int rval; in safe_stat() local
222 rval = stat(path, buf); in safe_stat()
224 if (rval == -1) { in safe_stat()
229 return rval; in safe_stat()
237 int rval; in safe_fstat() local
239 rval = fstat(fd, buf); in safe_fstat()
241 if (rval == -1) { in safe_fstat()
246 return rval; in safe_fstat()
254 int rval; in safe_lstat() local
256 rval = lstat(path, buf); in safe_lstat()
258 if (rval == -1) { in safe_lstat()
263 return rval; in safe_lstat()
271 off_t rval; in safe_lseek() local
273 rval = lseek(fd, offset, whence); in safe_lseek()
275 if (rval == (off_t) -1) { in safe_lseek()
281 return rval; in safe_lseek()
289 int rval; in safe_getrlimit() local
291 rval = getrlimit(resource, rlim); in safe_getrlimit()
293 if (rval == -1) { in safe_getrlimit()
299 return rval; in safe_getrlimit()
307 int rval; in safe_setrlimit() local
309 rval = setrlimit(resource, rlim); in safe_setrlimit()
311 if (rval == -1) { in safe_setrlimit()
317 return rval; in safe_setrlimit()