Changes to attempt to silence bcc64x
[ACE_TAO.git] / ACE / ace / DEV.cpp
blob984892b9aafe0242eeb86b080358e4750e1e8797
1 #include "ace/DEV.h"
3 #include "ace/OS_NS_unistd.h"
5 #if defined (ACE_HAS_ALLOC_HOOKS)
6 # include "ace/Malloc_Base.h"
7 #endif /* ACE_HAS_ALLOC_HOOKS */
9 #if !defined (__ACE_INLINE__)
10 #include "ace/DEV.inl"
11 #endif /* __ACE_INLINE__ */
13 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
15 ACE_ALLOC_HOOK_DEFINE(ACE_DEV)
17 void
18 ACE_DEV::dump () const
20 #if defined (ACE_HAS_DUMP)
21 ACE_TRACE ("ACE_DEV::dump");
22 #endif /* ACE_HAS_DUMP */
25 // This is the do-nothing constructor.
27 ACE_DEV::ACE_DEV ()
29 ACE_TRACE ("ACE_DEV::ACE_DEV");
32 // Close the device
34 int
35 ACE_DEV::close ()
37 ACE_TRACE ("ACE_DEV::close");
38 int result = ACE_OS::close (this->get_handle ());
39 this->set_handle (ACE_INVALID_HANDLE);
40 return result;
43 ACE_END_VERSIONED_NAMESPACE_DECL