Changes to attempt to silence bcc64x
[ACE_TAO.git] / ACE / ace / OS_NS_sys_select.h
blobd1e74768677e853a628e6cffbff7ee0c8bcbd249
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file OS_NS_sys_select.h
7 * @author Douglas C. Schmidt <d.schmidt@vanderbilt.edu>
8 * @author Jesper S. M|ller<stophph@diku.dk>
9 * @author and a cast of thousands...
11 //=============================================================================
13 #ifndef ACE_OS_NS_SYS_SELECT_H
14 # define ACE_OS_NS_SYS_SELECT_H
16 # include /**/ "ace/pre.h"
18 # include "ace/config-all.h"
20 # if !defined (ACE_LACKS_PRAGMA_ONCE)
21 # pragma once
22 # endif /* ACE_LACKS_PRAGMA_ONCE */
24 // The following is needed for Mac OSX 10.2 (Jaguar). Mac OSX 10.3 (Panther)
25 // doesn't seem to have this issue.
27 #if defined (ACE_SYS_SELECT_NEEDS_UNISTD_H)
28 #include "ace/OS_NS_unistd.h"
29 #endif
31 #include "ace/os_include/sys/os_select.h"
32 #include /**/ "ace/ACE_export.h"
34 #if defined (ACE_EXPORT_MACRO)
35 # undef ACE_EXPORT_MACRO
36 #endif
37 #define ACE_EXPORT_MACRO ACE_Export
39 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
41 class ACE_Time_Value;
43 namespace ACE_OS
45 // Should be moved to cpp or inl.
46 ACE_NAMESPACE_INLINE_FUNCTION
47 int select (int width,
48 fd_set *rfds,
49 fd_set *wfds = 0,
50 fd_set *efds = 0,
51 const ACE_Time_Value *tv = 0);
53 ACE_NAMESPACE_INLINE_FUNCTION
54 int select (int width,
55 fd_set *rfds,
56 fd_set *wfds,
57 fd_set *efds,
58 const ACE_Time_Value &tv);
59 } /* namespace ACE_OS */
61 ACE_END_VERSIONED_NAMESPACE_DECL
63 # if defined (ACE_HAS_INLINED_OSCALLS)
64 # if defined (ACE_INLINE)
65 # undef ACE_INLINE
66 # endif /* ACE_INLINE */
67 # define ACE_INLINE inline
68 # include "ace/OS_NS_sys_select.inl"
69 # endif /* ACE_HAS_INLINED_OSCALLS */
71 # include /**/ "ace/post.h"
72 #endif /* ACE_OS_NS_SYS_SELECT_H */