summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2015-12-15 16:43:55 +0100
committerCorinna Vinschen <corinna@vinschen.de>2016-06-24 21:07:39 +0200
commit9d163cf80c29d34db274e45636ab86e66e097148 (patch)
tree654e0cd8fccc15b209d84088d6da633cef049456
parent450b2dc8ed55587db11200a014120fe79bef04e4 (diff)
downloadcygnal-9d163cf80c29d34db274e45636ab86e66e097148.tar.gz
cygnal-9d163cf80c29d34db274e45636ab86e66e097148.tar.bz2
cygnal-9d163cf80c29d34db274e45636ab86e66e097148.zip
Drop autoloading kernel32 symbols available since Vista
-rw-r--r--winsup/cygwin/autoload.cc5
-rw-r--r--winsup/cygwin/fhandler_tty.cc3
2 files changed, 0 insertions, 8 deletions
diff --git a/winsup/cygwin/autoload.cc b/winsup/cygwin/autoload.cc
index 0f55c1e96..265a0214f 100644
--- a/winsup/cygwin/autoload.cc
+++ b/winsup/cygwin/autoload.cc
@@ -577,14 +577,9 @@ LoadDLLfunc (GetUdpTable, 12, iphlpapi)
LoadDLLfunc (if_indextoname, 8, iphlpapi)
LoadDLLfunc (if_nametoindex, 4, iphlpapi)
-LoadDLLfunc (CreateSymbolicLinkW, 12, kernel32)
LoadDLLfuncEx2 (DiscardVirtualMemory, 8, kernel32, 1, 127)
LoadDLLfuncEx (GetLogicalProcessorInformationEx, 12, kernel32, 1)
-LoadDLLfuncEx (GetNamedPipeClientProcessId, 8, kernel32, 1)
LoadDLLfunc (GetSystemTimePreciseAsFileTime, 4, kernel32)
-LoadDLLfuncEx (IdnToAscii, 20, kernel32, 1)
-LoadDLLfuncEx (IdnToUnicode, 20, kernel32, 1)
-LoadDLLfunc (LocaleNameToLCID, 8, kernel32)
LoadDLLfuncEx (PrefetchVirtualMemory, 16, kernel32, 1)
LoadDLLfunc (SetThreadGroupAffinity, 12, kernel32)
diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc
index a9189adc6..bf912ffba 100644
--- a/winsup/cygwin/fhandler_tty.cc
+++ b/winsup/cygwin/fhandler_tty.cc
@@ -1556,9 +1556,6 @@ fhandler_pty_master::pty_master_thread ()
termios_printf ("ReadFile, %E");
goto reply;
}
- /* This function is only available since Vista, unfortunately.
- In earlier OSes we simply have to believe that the client
- has no malicious intent (== sends arbitrary PIDs). */
if (!GetNamedPipeClientProcessId (master_ctl, &pid))
pid = req.pid;
if (get_object_sd (input_available_event, sd))