00001 // -*- C++ -*- 00002 // 00003 // Flag_Manip.inl,v 4.4 2006/01/16 19:40:55 jwillemsen Exp 00004 00005 #include "ace/OS_NS_fcntl.h" 00006 00007 ACE_BEGIN_VERSIONED_NAMESPACE_DECL 00008 00009 // Return flags currently associated with handle. 00010 ACE_INLINE int 00011 ACE::get_flags (ACE_HANDLE handle) 00012 { 00013 ACE_TRACE ("ACE::get_flags"); 00014 00015 #if defined (ACE_LACKS_FCNTL) 00016 // ACE_OS::fcntl is not supported. It 00017 // would be better to store ACE's notion of the flags 00018 // associated with the handle, but this works for now. 00019 ACE_UNUSED_ARG (handle); 00020 return 0; 00021 #else 00022 return ACE_OS::fcntl (handle, F_GETFL, 0); 00023 #endif /* ACE_LACKS_FCNTL */ 00024 } 00025 00026 ACE_END_VERSIONED_NAMESPACE_DECL