Date: Fri, 6 Feb 2004 11:30:12 -0800 (PST) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_resource.c Message-ID: <200402061930.i16JUCpa011145@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jhb 2004/02/06 11:30:12 PST
FreeBSD src repository
Modified files:
sys/kern kern_resource.c
Log:
- Correct the translation of old rlimit values to properly handle the old
RLIM_INFINITY case for ogetrlimit().
- Use %jd and intmax_t to output negative time in usec in calcru().
- Rework getrusage() to make a copy of the rusage struct into a local
variable while holding Giant and then do the copyout from the local
variable to avoid having to have the original process rusage struct
locked while doing the copyout (which would not be safe). This also
includes a few style fixes from Bruce to getrusage().
Submitted by: bde (1, parts of 3)
Suggested by: bde (2)
Revision Changes Path
1.132 +28 -21 src/sys/kern/kern_resource.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200402061930.i16JUCpa011145>
