summaryrefslogtreecommitdiff
path: root/ace/ACE.i
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-10-27 18:29:57 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-10-27 18:29:57 +0000
commit533b71ab8ec121910e9188a20a80fa555a9f4893 (patch)
tree7c358deedd5869d8645a811897d19af586725774 /ace/ACE.i
parent27d937d4f22ebe2d51be81d230013b3915143209 (diff)
downloadATCD-533b71ab8ec121910e9188a20a80fa555a9f4893.tar.gz
(get_flags): return 0 if ACE_LACKS_FCNTL
Diffstat (limited to 'ace/ACE.i')
-rw-r--r--ace/ACE.i10
1 files changed, 8 insertions, 2 deletions
diff --git a/ace/ACE.i b/ace/ACE.i
index aa2a288386e..f865eac933e 100644
--- a/ace/ACE.i
+++ b/ace/ACE.i
@@ -1,7 +1,6 @@
/* -*- C++ -*- */
// $Id$
-// ACE.i
// Miscellaneous static methods used throughout ACE.
inline u_int
@@ -26,7 +25,7 @@ inline ssize_t
ACE::send (ACE_HANDLE handle, const void *buf, size_t len)
{
ACE_TRACE ("ACE::send");
-
+
#if defined (ACE_WIN32)
return ACE_OS::send (handle, (const char *) buf, len);
#else
@@ -80,7 +79,14 @@ ACE::get_flags (ACE_HANDLE handle)
{
ACE_TRACE ("ACE::get_flags");
+#if defined (ACE_LACKS_FCNTL)
+ // ACE_OS::fcntl is not supported, e.g., on VxWorks. It
+ // would be better to store ACE's notion of the flags
+ // associated with the handle, but this works for now.
+ return 0;
+#else
return ACE_OS::fcntl (handle, F_GETFL, 0);
+#endif /* ACE_LACKS_FCNTL */
}
inline u_long