Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-03-22 06:42:08 +0300
committerChristopher Faylor <me@cgf.cx>2001-03-22 06:42:08 +0300
commitc4458148407d9a38909d24d963ca9900939be137 (patch)
tree4baba977049ccbef94edec79d9daca7151126aa7 /winsup
parent10654b8555cec1e50b60d1399c9a2e12dc1f2acc (diff)
* autoload.cc (kernel32_init): New function for kernel32 autoload
initialization. (SignalObjectAndWait): Add conditional load of this function when it is available.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog7
-rw-r--r--winsup/cygwin/autoload.cc18
2 files changed, 25 insertions, 0 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 5a3811ed4..c092b5a5b 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,10 @@
+Wed Mar 21 22:12:36 2001 Christopher Faylor <cgf@cygnus.com>
+
+ * autoload.cc (kernel32_init): New function for kernel32 autoload
+ initialization.
+ (SignalObjectAndWait): Add conditional load of this function when it is
+ available.
+
2001-03-21 Robert Collins <rbtcollins@hotmail.com>
* sched.cc: New file. Implement sched*.
diff --git a/winsup/cygwin/autoload.cc b/winsup/cygwin/autoload.cc
index 850c020ef..c4b37117a 100644
--- a/winsup/cygwin/autoload.cc
+++ b/winsup/cygwin/autoload.cc
@@ -226,6 +226,21 @@ LoadDLLinitfunc (ole32)
return 0;
}
+LoadDLLinitfunc (kernel32)
+{
+ extern void wsock_init ();
+ HANDLE h;
+
+ if ((h = LoadLibrary ("kernel32.dll")) != NULL)
+ kernel32_handle = h;
+ else if (!kernel32_handle)
+ api_fatal ("could not load wsock32.dll. Is TCP/IP installed?");
+ else
+ return 0; /* Already done by another thread? */
+
+ return 0;
+}
+
static void __stdcall dummy_autoload (void) __attribute__ ((unused));
static void __stdcall
dummy_autoload (void)
@@ -374,5 +389,8 @@ LoadDLLinit (ole32)
LoadDLLfunc (CoInitialize, 4, ole32)
LoadDLLfunc (CoUninitialize, 0, ole32)
LoadDLLfunc (CoCreateInstance, 20, ole32)
+
+LoadDLLinit (kernel32)
+LoadDLLfuncEx (SignalObjectAndWait, 16, kernel32, 1)
}
}