summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1999-01-16 19:47:06 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1999-01-16 19:47:06 +0000
commitaab791d26e22105e36e2e20959e08efeb0e71f88 (patch)
tree91cc32d8532197fbe5b3dcb7d35952f3bc4f8e48
parent8598818b1c84b249cef4e01c2a7582306a99fe37 (diff)
downloadATCD-aab791d26e22105e36e2e20959e08efeb0e71f88.tar.gz
.
-rw-r--r--ChangeLog-99b7
-rw-r--r--README1
-rw-r--r--ace/FILE_Addr.cpp15
-rw-r--r--ace/FILE_Connector.h4
4 files changed, 20 insertions, 7 deletions
diff --git a/ChangeLog-99b b/ChangeLog-99b
index 4fb0038779d..bdb447a0965 100644
--- a/ChangeLog-99b
+++ b/ChangeLog-99b
@@ -1,3 +1,10 @@
+Sat Jan 16 13:40:40 1999 Douglas C. Schmidt <schmidt@tango.cs.wustl.edu>
+
+ * ace/FILE_Connector.h (ACE_FILE_Connector): Added the O_CREAT
+ flag to the list of flags passed to connect(). This ensures
+ that the file is created if it doesn't already exist. Thanks to
+ Pradeep Gore <pradeep@cs.wustl.edu> for reporting this.
+
Fri Jan 15 21:28:04 1999 Irfan Pyarali <irfan@cs.wustl.edu>
* ace/Log_Msg (ACE_Log_Msg_Callback): Added an interface class
diff --git a/README b/README
index 4304b99c3a7..7f4b69f1f02 100644
--- a/README
+++ b/README
@@ -245,6 +245,7 @@ David Levine <levine@cs.wustl.edu>
Balachandran Natarajan <bala@cs.wustl.edu>
Kirthika Parameswaran <kirthika@cs.wustl.edu>
Carlos O'Ryan <coryan@cs.wustl.edu>
+Ossama Othman <ossama@cs.wustl.edu>
Jeff Parsons <jp4@cs.wustl.edu>
Irfan Pyarali <irfan@cs.wustl.edu>
Marina Spivak <marina@cs.wustl.edu>
diff --git a/ace/FILE_Addr.cpp b/ace/FILE_Addr.cpp
index 3d59973d1f9..80ccd9aff65 100644
--- a/ace/FILE_Addr.cpp
+++ b/ace/FILE_Addr.cpp
@@ -20,19 +20,24 @@ ACE_FILE_Addr::ACE_FILE_Addr (void)
int
ACE_FILE_Addr::set (const ACE_FILE_Addr &sa)
{
- this->base_set (sa.get_type (), sa.get_size ());
-
if (sa.get_type () == AF_ANY)
{
// Create a temporary file.
ACE_OS::strcpy (this->filename_,
ACE_DEFAULT_TEMP_FILE);
ACE_OS::mktemp (this->filename_);
+ this->base_set (AF_FILE,
+ ACE_OS::strlen (this->filename_) + 1);
}
else
- (void) ACE_OS::strncpy (this->filename_,
- sa.filename_,
- sa.get_size ());
+ {
+ (void) ACE_OS::strncpy (this->filename_,
+ sa.filename_,
+ sa.get_size ());
+
+ this->base_set (sa.get_type (),
+ sa.get_size ());
+ }
return 0;
}
diff --git a/ace/FILE_Connector.h b/ace/FILE_Connector.h
index 68da4f2a269..f00195b1ccb 100644
--- a/ace/FILE_Connector.h
+++ b/ace/FILE_Connector.h
@@ -37,7 +37,7 @@ public:
ACE_Time_Value *timeout = 0,
const ACE_Addr &local_sap = ACE_Addr::sap_any,
int reuse_addr = 0,
- int flags = O_RDWR,
+ int flags = O_RDWR | O_CREAT,
int perms = 0);
// Actively ``connect'' and produce a <new_io> <ACE_FILE_IO> object
// if things go well. The <remote_sap> is the file that we are
@@ -59,7 +59,7 @@ public:
ACE_Time_Value *timeout = 0,
const ACE_Addr &local_sap = ACE_Addr::sap_any,
int reuse_addr = 0,
- int flags = O_RDWR,
+ int flags = O_RDWR | O_CREAT,
int perms = 0);
// Actively ``connect'' and produce a <new_io> <ACE_FILE_IO> object
// if things go well. The <remote_sap> is the file that we are