This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Re: Getrusage update
- To: cygwin-patches at cygwin dot com
- Subject: Re: Getrusage update
- From: Christopher Faylor <cgf at redhat dot com>
- Date: Sun, 21 Oct 2001 19:50:53 -0400
- References: <20011022092317.A11357@lifelesswks>
- Reply-To: cygwin-patches at cygwin dot com
On Mon, Oct 22, 2001 at 09:23:27AM +1000, Robert Collins wrote:
>The attached patch, (I know, the Changelog should be in the body, but as Evolution just died on me (oh, for a release of libgal that doesn't change weekly!) I'm in a non-normal mailing mode here) fills in the ru_maxrss and ru_majflt fields for getrusage. This was reported to me by Guido Serassio who is porting squid to native win32 code and was patching squid...
>
>Anyway, the patch is straightforward, with one kink: The already used function GetProcessTimes is documented by MSDN as being NT only, but it's not in the autoload.cc file. I wasn't sure what to do with my new call, GetProcessMemoryInfo therefore, so I erred on the side of caution.
>
>If possible, I'd love to see this in 1.3.4.
>
>And lastly, I haven't done massive testing on it yet.
I've checked in a modified version of this patch.
There is no reason to check for winnt since that could be implied by the
call to GetProcessMemoryInfo if you use LoadDLLfuncEx.
Thanks.
cgf