gnuace: use list of generated files from GENERATED_DIRTY for ADDITIONAL_IDL_TARGETS
[ACE_TAO.git] / ACE / ace / OS_NS_sys_select.h
blob363c64b8f4822612be9b3655d54da75cc71efc9e
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 * Originally in OS.h.
13 //=============================================================================
15 #ifndef ACE_OS_NS_SYS_SELECT_H
16 # define ACE_OS_NS_SYS_SELECT_H
18 # include /**/ "ace/pre.h"
20 # include "ace/config-all.h"
22 # if !defined (ACE_LACKS_PRAGMA_ONCE)
23 # pragma once
24 # endif /* ACE_LACKS_PRAGMA_ONCE */
26 // The following is needed for Mac OSX 10.2 (Jaguar). Mac OSX 10.3 (Panther)
27 // doesn't seem to have this issue.
29 #if defined (ACE_SYS_SELECT_NEEDS_UNISTD_H)
30 #include "ace/OS_NS_unistd.h"
31 #endif
33 #include "ace/os_include/sys/os_select.h"
34 #include /**/ "ace/ACE_export.h"
36 #if defined (ACE_EXPORT_MACRO)
37 # undef ACE_EXPORT_MACRO
38 #endif
39 #define ACE_EXPORT_MACRO ACE_Export
41 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
43 class ACE_Time_Value;
45 namespace ACE_OS
47 // Should be moved to cpp or inl.
48 ACE_NAMESPACE_INLINE_FUNCTION
49 int select (int width,
50 fd_set *rfds,
51 fd_set *wfds = 0,
52 fd_set *efds = 0,
53 const ACE_Time_Value *tv = 0);
55 ACE_NAMESPACE_INLINE_FUNCTION
56 int select (int width,
57 fd_set *rfds,
58 fd_set *wfds,
59 fd_set *efds,
60 const ACE_Time_Value &tv);
62 } /* namespace ACE_OS */
64 ACE_END_VERSIONED_NAMESPACE_DECL
66 # if defined (ACE_HAS_INLINED_OSCALLS)
67 # if defined (ACE_INLINE)
68 # undef ACE_INLINE
69 # endif /* ACE_INLINE */
70 # define ACE_INLINE inline
71 # include "ace/OS_NS_sys_select.inl"
72 # endif /* ACE_HAS_INLINED_OSCALLS */
74 # include /**/ "ace/post.h"
75 #endif /* ACE_OS_NS_SYS_SELECT_H */