summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordhinton <dhinton@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2002-05-27 13:25:07 +0000
committerdhinton <dhinton@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2002-05-27 13:25:07 +0000
commitddc0b4be46f48a109e225211e10cf3ffcbbc1681 (patch)
treef31dd0f43cd5fcedc6cb5db5242d85d383daddba
parent999a6373b00692d263745b337667d7b480202257 (diff)
downloadATCD-ddc0b4be46f48a109e225211e10cf3ffcbbc1681.tar.gz
ChangeLogTag:Mon May 27 13:18:51 UTC 2002 Don Hinton <dhinton@ieee.org>
-rw-r--r--ChangeLog13
-rw-r--r--ChangeLogs/ChangeLog-02a13
-rw-r--r--ChangeLogs/ChangeLog-03a13
-rw-r--r--ace/OS.i10
-rw-r--r--tests/Framework_Component_DLL.cpp6
5 files changed, 53 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 4da4dfd8aba..cca1200ddc8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+Mon May 27 13:18:51 UTC 2002 Don Hinton <dhinton@ieee.org>
+
+ * ace/OS.i (mkstemp):
+
+ Implemented this method in terms of ::mktemp for platforms
+ that have ::mktemp. It's used in ACE_DLL::set_handle()--may
+ need to rethink that implementation or implement ::mktemp
+ emulation for those platforms lacking it.
+
+ * tests/Framework_Component_DLL.cpp:
+
+ Added missing ACE_FACTORY_DECLARE calls.
+
Mon May 27 08:24:29 UTC 2002 Don Hinton <dhinton@ieee.org>
* tests/Makefile.bor:
diff --git a/ChangeLogs/ChangeLog-02a b/ChangeLogs/ChangeLog-02a
index 4da4dfd8aba..cca1200ddc8 100644
--- a/ChangeLogs/ChangeLog-02a
+++ b/ChangeLogs/ChangeLog-02a
@@ -1,3 +1,16 @@
+Mon May 27 13:18:51 UTC 2002 Don Hinton <dhinton@ieee.org>
+
+ * ace/OS.i (mkstemp):
+
+ Implemented this method in terms of ::mktemp for platforms
+ that have ::mktemp. It's used in ACE_DLL::set_handle()--may
+ need to rethink that implementation or implement ::mktemp
+ emulation for those platforms lacking it.
+
+ * tests/Framework_Component_DLL.cpp:
+
+ Added missing ACE_FACTORY_DECLARE calls.
+
Mon May 27 08:24:29 UTC 2002 Don Hinton <dhinton@ieee.org>
* tests/Makefile.bor:
diff --git a/ChangeLogs/ChangeLog-03a b/ChangeLogs/ChangeLog-03a
index 4da4dfd8aba..cca1200ddc8 100644
--- a/ChangeLogs/ChangeLog-03a
+++ b/ChangeLogs/ChangeLog-03a
@@ -1,3 +1,16 @@
+Mon May 27 13:18:51 UTC 2002 Don Hinton <dhinton@ieee.org>
+
+ * ace/OS.i (mkstemp):
+
+ Implemented this method in terms of ::mktemp for platforms
+ that have ::mktemp. It's used in ACE_DLL::set_handle()--may
+ need to rethink that implementation or implement ::mktemp
+ emulation for those platforms lacking it.
+
+ * tests/Framework_Component_DLL.cpp:
+
+ Added missing ACE_FACTORY_DECLARE calls.
+
Mon May 27 08:24:29 UTC 2002 Don Hinton <dhinton@ieee.org>
* tests/Makefile.bor:
diff --git a/ace/OS.i b/ace/OS.i
index 8b65ed330f9..2234e8e0886 100644
--- a/ace/OS.i
+++ b/ace/OS.i
@@ -215,13 +215,19 @@ ACE_OS::mktemp (ACE_TCHAR *s)
}
#endif /* !ACE_LACKS_MKTEMP */
-#if !defined (ACE_LACKS_MKSTEMP)
ACE_INLINE ACE_HANDLE
ACE_OS::mkstemp (ACE_TCHAR *s)
{
+#if !defined (ACE_LACKS_MKSTEMP)
return ::mkstemp (s);
-}
+#else /* !ACE_LACKS_MKSTEMP */
+ ACE_TCHAR *filename = ACE_OS::mktemp (s);
+ ACE_HANDLE handle = ACE_INVALID_HANDLE;
+ if (filename)
+ handle = ACE_OS::open (filename, _O_CREAT | _O_TEMPORARY);
+ return handle;
#endif /* !ACE_LACKS_MKSTEMP */
+}
ACE_INLINE int
ACE_OS::mkfifo (const ACE_TCHAR *file, mode_t mode)
diff --git a/tests/Framework_Component_DLL.cpp b/tests/Framework_Component_DLL.cpp
index a2292b1d1c4..28f65bf3ee3 100644
--- a/tests/Framework_Component_DLL.cpp
+++ b/tests/Framework_Component_DLL.cpp
@@ -54,9 +54,15 @@ public:
};
typedef Server_T <1> Server_1;
+FRAMEWORK_COMPONENT_DLL_SINGLETON_DECLARATION(Server_T<1>);
+
typedef Server_T <2> Server_2;
+FRAMEWORK_COMPONENT_DLL_SINGLETON_DECLARATION(Server_T<2>);
+ACE_FACTORY_DECLARE (Framework_Component_DLL, Server_1)
ACE_FACTORY_DEFINE (Framework_Component_DLL, Server_1)
+
+ACE_FACTORY_DECLARE (Framework_Component_DLL, Server_2)
ACE_FACTORY_DEFINE (Framework_Component_DLL, Server_2)