public inbox for cygwin-cvs@sourceware.org help / color / mirror / Atom feed
From: Corinna Vinschen <corinna@sourceware.org> To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin] Cygwin: don't autoload some kernel32 functions Date: Sun, 4 Dec 2022 13:28:27 +0000 (GMT) [thread overview] Message-ID: <20221204132827.B901E384F485@sourceware.org> (raw) 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) }
reply other threads:[~2022-12-04 13:28 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20221204132827.B901E384F485@sourceware.org \ --to=corinna@sourceware.org \ --cc=cygwin-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).