summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/autoload.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-10-21 23:44:43 +0000
committerChristopher Faylor <me@cgf.cx>2001-10-21 23:44:43 +0000
commit1f0191e5425474567dc786c14d84a59df597855f (patch)
tree5ea17f0c7f35bcdbf416950ca04abf8fcebdf4c1 /winsup/cygwin/autoload.cc
parentc43c5c164383dbfd0401f77a92b648d711f529ea (diff)
downloadcygnal-1f0191e5425474567dc786c14d84a59df597855f.tar.gz
cygnal-1f0191e5425474567dc786c14d84a59df597855f.tar.bz2
cygnal-1f0191e5425474567dc786c14d84a59df597855f.zip
* autoload.cc: Autoload GetProcessMemoryInfo.
* resource.cc (fill_rusage): Calculate ru_maxrss and ru_majflt entries. (Bug report on this from Guido Serassio in the squid project). This requires including psapi.h.
Diffstat (limited to 'winsup/cygwin/autoload.cc')
-rw-r--r--winsup/cygwin/autoload.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/autoload.cc b/winsup/cygwin/autoload.cc
index 259e3b4cd..c5fcdaf55 100644
--- a/winsup/cygwin/autoload.cc
+++ b/winsup/cygwin/autoload.cc
@@ -381,6 +381,8 @@ LoadDLLfuncEx (RtlInitUnicodeString, 8, ntdll, 1)
LoadDLLfuncEx (RtlNtStatusToDosError, 4, ntdll, 1)
LoadDLLfuncEx (ZwQuerySystemInformation, 16, ntdll, 1)
+LoadDLLfuncEx (GetProcessMemoryInfo, 12, psapi, 1)
+
LoadDLLfuncEx (LsaDeregisterLogonProcess, 4, secur32, 1)
LoadDLLfuncEx (LsaFreeReturnBuffer, 4, secur32, 1)
LoadDLLfuncEx (LsaLogonUser, 56, secur32, 1)