2 #include "ace/OS_NS_fcntl.h"
4 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
6 // Return flags currently associated with handle.
8 ACE::get_flags (ACE_HANDLE handle)
10 ACE_TRACE ("ACE::get_flags");
12 #if defined (ACE_LACKS_FCNTL)
13 // ACE_OS::fcntl is not supported. It
14 // would be better to store ACE's notion of the flags
15 // associated with the handle, but this works for now.
16 ACE_UNUSED_ARG (handle);
19 return ACE_OS::fcntl (handle, F_GETFL, 0);
20 #endif /* ACE_LACKS_FCNTL */
23 ACE_END_VERSIONED_NAMESPACE_DECL