• Home
  • Raw
  • Download

Lines Matching refs:r

280 	struct rlimit r;  in compat_sys_setrlimit()  local
288 __get_user(r.rlim_cur, &rlim->rlim_cur) || in compat_sys_setrlimit()
289 __get_user(r.rlim_max, &rlim->rlim_max)) in compat_sys_setrlimit()
292 if (r.rlim_cur == COMPAT_RLIM_INFINITY) in compat_sys_setrlimit()
293 r.rlim_cur = RLIM_INFINITY; in compat_sys_setrlimit()
294 if (r.rlim_max == COMPAT_RLIM_INFINITY) in compat_sys_setrlimit()
295 r.rlim_max = RLIM_INFINITY; in compat_sys_setrlimit()
297 ret = sys_setrlimit(resource, (struct rlimit __user *) &r); in compat_sys_setrlimit()
307 struct rlimit r; in compat_sys_old_getrlimit() local
312 ret = sys_old_getrlimit(resource, &r); in compat_sys_old_getrlimit()
316 if (r.rlim_cur > COMPAT_RLIM_OLD_INFINITY) in compat_sys_old_getrlimit()
317 r.rlim_cur = COMPAT_RLIM_INFINITY; in compat_sys_old_getrlimit()
318 if (r.rlim_max > COMPAT_RLIM_OLD_INFINITY) in compat_sys_old_getrlimit()
319 r.rlim_max = COMPAT_RLIM_INFINITY; in compat_sys_old_getrlimit()
322 __put_user(r.rlim_cur, &rlim->rlim_cur) || in compat_sys_old_getrlimit()
323 __put_user(r.rlim_max, &rlim->rlim_max)) in compat_sys_old_getrlimit()
334 struct rlimit r; in compat_sys_getrlimit() local
339 ret = sys_getrlimit(resource, (struct rlimit __user *) &r); in compat_sys_getrlimit()
342 if (r.rlim_cur > COMPAT_RLIM_INFINITY) in compat_sys_getrlimit()
343 r.rlim_cur = COMPAT_RLIM_INFINITY; in compat_sys_getrlimit()
344 if (r.rlim_max > COMPAT_RLIM_INFINITY) in compat_sys_getrlimit()
345 r.rlim_max = COMPAT_RLIM_INFINITY; in compat_sys_getrlimit()
348 __put_user(r.rlim_cur, &rlim->rlim_cur) || in compat_sys_getrlimit()
349 __put_user(r.rlim_max, &rlim->rlim_max)) in compat_sys_getrlimit()
355 int put_compat_rusage(const struct rusage *r, struct compat_rusage __user *ru) in put_compat_rusage() argument
358 __put_user(r->ru_utime.tv_sec, &ru->ru_utime.tv_sec) || in put_compat_rusage()
359 __put_user(r->ru_utime.tv_usec, &ru->ru_utime.tv_usec) || in put_compat_rusage()
360 __put_user(r->ru_stime.tv_sec, &ru->ru_stime.tv_sec) || in put_compat_rusage()
361 __put_user(r->ru_stime.tv_usec, &ru->ru_stime.tv_usec) || in put_compat_rusage()
362 __put_user(r->ru_maxrss, &ru->ru_maxrss) || in put_compat_rusage()
363 __put_user(r->ru_ixrss, &ru->ru_ixrss) || in put_compat_rusage()
364 __put_user(r->ru_idrss, &ru->ru_idrss) || in put_compat_rusage()
365 __put_user(r->ru_isrss, &ru->ru_isrss) || in put_compat_rusage()
366 __put_user(r->ru_minflt, &ru->ru_minflt) || in put_compat_rusage()
367 __put_user(r->ru_majflt, &ru->ru_majflt) || in put_compat_rusage()
368 __put_user(r->ru_nswap, &ru->ru_nswap) || in put_compat_rusage()
369 __put_user(r->ru_inblock, &ru->ru_inblock) || in put_compat_rusage()
370 __put_user(r->ru_oublock, &ru->ru_oublock) || in put_compat_rusage()
371 __put_user(r->ru_msgsnd, &ru->ru_msgsnd) || in put_compat_rusage()
372 __put_user(r->ru_msgrcv, &ru->ru_msgrcv) || in put_compat_rusage()
373 __put_user(r->ru_nsignals, &ru->ru_nsignals) || in put_compat_rusage()
374 __put_user(r->ru_nvcsw, &ru->ru_nvcsw) || in put_compat_rusage()
375 __put_user(r->ru_nivcsw, &ru->ru_nivcsw)) in put_compat_rusage()
382 struct rusage r; in compat_sys_getrusage() local
387 ret = sys_getrusage(who, (struct rusage __user *) &r); in compat_sys_getrusage()
393 if (put_compat_rusage(&r, ru)) in compat_sys_getrusage()
406 struct rusage r; in compat_sys_wait4() local
415 options, (struct rusage __user *) &r); in compat_sys_wait4()
419 if (put_compat_rusage(&r, ru)) in compat_sys_wait4()