Lines Matching refs:ret
108 long ret; in compat_nanosleep_restart() local
113 ret = hrtimer_nanosleep_restart(restart); in compat_nanosleep_restart()
116 if (ret) { in compat_nanosleep_restart()
123 return ret; in compat_nanosleep_restart()
131 long ret; in compat_sys_nanosleep() local
141 ret = hrtimer_nanosleep(&tu, in compat_sys_nanosleep()
146 if (ret) { in compat_sys_nanosleep()
157 return ret; in compat_sys_nanosleep()
245 long ret; in compat_sys_sigpending() local
249 ret = sys_sigpending((old_sigset_t __user *) &s); in compat_sys_sigpending()
251 if (ret == 0) in compat_sys_sigpending()
252 ret = put_user(s, set); in compat_sys_sigpending()
253 return ret; in compat_sys_sigpending()
260 long ret; in compat_sys_sigprocmask() local
267 ret = sys_sigprocmask(how, in compat_sys_sigprocmask()
271 if (ret == 0) in compat_sys_sigprocmask()
273 ret = put_user(s, oset); in compat_sys_sigprocmask()
274 return ret; in compat_sys_sigprocmask()
281 int ret; in compat_sys_setrlimit() local
297 ret = sys_setrlimit(resource, (struct rlimit __user *) &r); in compat_sys_setrlimit()
299 return ret; in compat_sys_setrlimit()
308 int ret; in compat_sys_old_getrlimit() local
312 ret = sys_old_getrlimit(resource, &r); in compat_sys_old_getrlimit()
315 if (!ret) { in compat_sys_old_getrlimit()
326 return ret; in compat_sys_old_getrlimit()
335 int ret; in compat_sys_getrlimit() local
339 ret = sys_getrlimit(resource, (struct rlimit __user *) &r); in compat_sys_getrlimit()
341 if (!ret) { in compat_sys_getrlimit()
352 return ret; in compat_sys_getrlimit()
383 int ret; in compat_sys_getrusage() local
387 ret = sys_getrusage(who, (struct rusage __user *) &r); in compat_sys_getrusage()
390 if (ret) in compat_sys_getrusage()
391 return ret; in compat_sys_getrusage()
407 int ret; in compat_sys_wait4() local
412 ret = sys_wait4(pid, in compat_sys_wait4()
418 if (ret > 0) { in compat_sys_wait4()
424 return ret; in compat_sys_wait4()
434 long ret; in compat_sys_waitid() local
440 ret = sys_waitid(which, pid, (siginfo_t __user *)&info, options, in compat_sys_waitid()
444 if ((ret < 0) || (info.si_signo == 0)) in compat_sys_waitid()
445 return ret; in compat_sys_waitid()
448 ret = put_compat_rusage(&ru, uru); in compat_sys_waitid()
449 if (ret) in compat_sys_waitid()
450 return ret; in compat_sys_waitid()
495 int ret; in compat_sys_sched_getaffinity() local
509 ret = sched_getaffinity(pid, mask); in compat_sys_sched_getaffinity()
510 if (ret < 0) in compat_sys_sched_getaffinity()
514 ret = compat_put_bitmap(user_mask_ptr, k, min_length * 8); in compat_sys_sched_getaffinity()
515 if (ret == 0) in compat_sys_sched_getaffinity()
516 ret = min_length; in compat_sys_sched_getaffinity()
520 return ret; in compat_sys_sched_getaffinity()
828 long ret, timeout = 0; in compat_sys_rt_sigtimedwait() local
873 ret = sig; in compat_sys_rt_sigtimedwait()
876 ret = -EFAULT; in compat_sys_rt_sigtimedwait()
879 ret = timeout?-EINTR:-EAGAIN; in compat_sys_rt_sigtimedwait()
881 return ret; in compat_sys_rt_sigtimedwait()
956 int ret; in compat_sys_adjtimex() local
983 ret = do_adjtimex(&txc); in compat_sys_adjtimex()
1007 ret = -EFAULT; in compat_sys_adjtimex()
1009 return ret; in compat_sys_adjtimex()