OS_NS_sys_select.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 //=============================================================================
00004 /**
00005  *  @file   OS_NS_sys_select.h
00006  *
00007  *  OS_NS_sys_select.h,v 1.6 2005/10/28 16:14:54 ossama Exp
00008  *
00009  *  @author Douglas C. Schmidt <schmidt@cs.wustl.edu>
00010  *  @author Jesper S. M|ller<stophph@diku.dk>
00011  *  @author and a cast of thousands...
00012  *
00013  *  Originally in OS.h.
00014  */
00015 //=============================================================================
00016 
00017 #ifndef ACE_OS_NS_SYS_SELECT_H
00018 # define ACE_OS_NS_SYS_SELECT_H
00019 
00020 # include /**/ "ace/pre.h"
00021 
00022 # include "ace/config-all.h"
00023 
00024 # if !defined (ACE_LACKS_PRAGMA_ONCE)
00025 #  pragma once
00026 # endif /* ACE_LACKS_PRAGMA_ONCE */
00027 
00028 // The following is needed for Mac OSX 10.2 (Jaguar).  Mac OSX 10.3 (Panther)
00029 // doesn't seem to have this issue.
00030 
00031 #if defined (ACE_SYS_SELECT_NEEDS_UNISTD_H)
00032  #include "ace/OS_NS_unistd.h"
00033 #endif
00034 
00035 #include "ace/os_include/sys/os_select.h"
00036 #include "ace/ACE_export.h"
00037 
00038 #if defined (ACE_EXPORT_MACRO)
00039 #  undef ACE_EXPORT_MACRO
00040 #endif
00041 #define ACE_EXPORT_MACRO ACE_Export
00042 
00043 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00044 
00045 class ACE_Time_Value;
00046 
00047 namespace ACE_OS
00048 {
00049   // Should be moved to cpp or inl.
00050   ACE_NAMESPACE_INLINE_FUNCTION
00051   int select (int width,
00052               fd_set *rfds,
00053               fd_set *wfds = 0,
00054               fd_set *efds = 0,
00055               const ACE_Time_Value *tv = 0);
00056 
00057   ACE_NAMESPACE_INLINE_FUNCTION
00058   int select (int width,
00059               fd_set *rfds,
00060               fd_set *wfds,
00061               fd_set *efds,
00062               const ACE_Time_Value &tv);
00063 
00064 } /* namespace ACE_OS */
00065 
00066 ACE_END_VERSIONED_NAMESPACE_DECL
00067 
00068 # if defined (ACE_HAS_INLINED_OSCALLS)
00069 #   if defined (ACE_INLINE)
00070 #     undef ACE_INLINE
00071 #   endif /* ACE_INLINE */
00072 #   define ACE_INLINE inline
00073 #   include "ace/OS_NS_sys_select.inl"
00074 # endif /* ACE_HAS_INLINED_OSCALLS */
00075 
00076 # include /**/ "ace/post.h"
00077 #endif /* ACE_OS_NS_SYS_SELECT_H */

Generated on Thu Nov 9 09:41:58 2006 for ACE by doxygen 1.3.6