MCPcopy Create free account
hub / github.com/F-Stack/f-stack / sys_getrlimit

Function sys_getrlimit

freebsd/kern/kern_resource.c:788–799  ·  view source on GitHub ↗

ARGSUSED */

Source from the content-addressed store, hash-verified

786#endif
787/* ARGSUSED */
788int
789sys_getrlimit(struct thread *td, struct __getrlimit_args *uap)
790{
791 struct rlimit rlim;
792 int error;
793
794 if (uap->which >= RLIM_NLIMITS)
795 return (EINVAL);
796 lim_rlimit(td, uap->which, &rlim);
797 error = copyout(&rlim, uap->rlp, sizeof(struct rlimit));
798 return (error);
799}
800
801/*
802 * Transform the running time and tick information for children of proc p

Callers

nothing calls this directly

Calls 2

lim_rlimitFunction · 0.70
copyoutFunction · 0.50

Tested by

no test coverage detected