[newlib-cygwin] Cygwin: don't autoload some kernel32 functions
Corinna Vinschen
corinna@sourceware.org
Sun Dec 4 13:28:27 GMT 2022
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=a3ae2a7348927a6afd88d518797a42ebc4d588c6
commit a3ae2a7348927a6afd88d518797a42ebc4d588c6
Author: Corinna Vinschen <corinna@vinschen.de>
AuthorDate: Tue Nov 15 22:12:03 2022 +0100
Commit: Corinna Vinschen <corinna@vinschen.de>
CommitDate: Sun Dec 4 14:03:07 2022 +0100
Cygwin: don't autoload some kernel32 functions
DiscardVirtualMemory, PrefetchVirtualMemory and
GetSystemTimePreciseAsFileTime are available since
Windows 8.1. Merge PseudoConsole functions into
kernel32 function block.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diff:
---
winsup/cygwin/autoload.cc | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/winsup/cygwin/autoload.cc b/winsup/cygwin/autoload.cc
index cdf6e75de6ea..8ef84bf39856 100644
--- a/winsup/cygwin/autoload.cc
+++ b/winsup/cygwin/autoload.cc
@@ -462,10 +462,10 @@ LoadDLLfunc (GetUdpTable, 12, iphlpapi)
LoadDLLfunc (if_indextoname, 8, iphlpapi)
LoadDLLfunc (if_nametoindex, 4, iphlpapi)
-LoadDLLfuncEx2 (DiscardVirtualMemory, 8, kernel32, 1, 127)
-LoadDLLfunc (GetSystemTimePreciseAsFileTime, 4, kernel32)
+LoadDLLfuncEx (ClosePseudoConsole, 4, kernel32, 1)
+LoadDLLfuncEx (CreatePseudoConsole, 20, kernel32, 1)
LoadDLLfuncEx (IsWow64Process2, 12, kernel32, 1)
-LoadDLLfuncEx (PrefetchVirtualMemory, 16, kernel32, 1)
+LoadDLLfuncEx (ResizePseudoConsole, 8, kernel32, 1)
/* MSDN claims these are exported by kernel32.dll, but only
QueryUnbiasedInterruptTime actually is. The others are only
@@ -637,7 +637,4 @@ LoadDLLfunc (PdhAddEnglishCounterW, 16, pdh)
LoadDLLfunc (PdhCollectQueryData, 4, pdh)
LoadDLLfunc (PdhGetFormattedCounterValue, 16, pdh)
LoadDLLfunc (PdhOpenQueryW, 12, pdh)
-LoadDLLfuncEx (CreatePseudoConsole, 20, kernel32, 1)
-LoadDLLfuncEx (ResizePseudoConsole, 8, kernel32, 1)
-LoadDLLfuncEx (ClosePseudoConsole, 4, kernel32, 1)
}
More information about the Cygwin-cvs
mailing list