00001 // DEV.cpp,v 4.10 2005/10/28 16:14:52 ossama Exp 00002 00003 #include "ace/DEV.h" 00004 00005 #include "ace/OS_NS_unistd.h" 00006 00007 #if !defined (__ACE_INLINE__) 00008 #include "ace/DEV.inl" 00009 #endif /* __ACE_INLINE__ */ 00010 00011 ACE_RCSID(ace, DEV, "DEV.cpp,v 4.10 2005/10/28 16:14:52 ossama Exp") 00012 00013 ACE_BEGIN_VERSIONED_NAMESPACE_DECL 00014 00015 ACE_ALLOC_HOOK_DEFINE(ACE_DEV) 00016 00017 void 00018 ACE_DEV::dump (void) const 00019 { 00020 #if defined (ACE_HAS_DUMP) 00021 ACE_TRACE ("ACE_DEV::dump"); 00022 #endif /* ACE_HAS_DUMP */ 00023 } 00024 00025 // This is the do-nothing constructor. 00026 00027 ACE_DEV::ACE_DEV (void) 00028 { 00029 ACE_TRACE ("ACE_DEV::ACE_DEV"); 00030 } 00031 00032 // Close the device 00033 00034 int 00035 ACE_DEV::close (void) 00036 { 00037 ACE_TRACE ("ACE_DEV::close"); 00038 int result = ACE_OS::close (this->get_handle ()); 00039 this->set_handle (ACE_INVALID_HANDLE); 00040 return result; 00041 } 00042 00043 ACE_END_VERSIONED_NAMESPACE_DECL