os_select.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 //=============================================================================
00004 /**
00005  *  @file    os_select.h
00006  *
00007  *  select types
00008  *
00009  *  os_select.h,v 1.11 2006/05/30 12:18:03 jwillemsen Exp
00010  *
00011  *  @author Don Hinton <dhinton@dresystems.com>
00012  *  @author This code was originally in various places including ace/OS.h.
00013  */
00014 //=============================================================================
00015 
00016 #ifndef ACE_OS_INCLUDE_SYS_OS_SELECT_H
00017 #define ACE_OS_INCLUDE_SYS_OS_SELECT_H
00018 
00019 #include /**/ "ace/pre.h"
00020 
00021 #include "ace/config-lite.h"
00022 
00023 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00024 # pragma once
00025 #endif /* ACE_LACKS_PRAGMA_ONCE */
00026 
00027 #include "ace/os_include/sys/os_time.h"
00028 #include "ace/os_include/os_signal.h"
00029 #include "ace/os_include/os_unistd.h"
00030 
00031 #if !defined (ACE_LACKS_SYS_SELECT_H)
00032 #  include /**/ <sys/select.h>
00033 #endif /* !ACE_LACKS_SYS_SELECT_H */
00034 
00035 #if defined (ACE_VXWORKS) && defined (ACE_LACKS_SYS_SELECT_H)
00036 #  include /**/ <selectLib.h>
00037 #endif /* ACE_VXWORKS */
00038 
00039 // Place all additions (especially function declarations) within extern "C" {}
00040 #ifdef __cplusplus
00041 extern "C"
00042 {
00043 #endif /* __cplusplus */
00044 
00045 #if defined (ACE_WIN32)
00046    // This will help until we figure out everything:
00047 #  define NFDBITS 32 /* only used in unused functions... */
00048 #elif defined (__QNX__)
00049 #  if !defined (NFDBITS)
00050 #    define NFDBITS (sizeof(fd_mask) * NBBY)        /* bits per mask */
00051 #  endif /* ! NFDBITS */
00052 #endif /* ACE_WIN32 */
00053 
00054 #if defined (ACE_SELECT_USES_INT)
00055    typedef int ACE_FD_SET_TYPE;
00056 #else
00057    typedef fd_set ACE_FD_SET_TYPE;
00058 #endif /* ACE_SELECT_USES_INT */
00059 
00060 #if defined (__rtems__)
00061   int select (int n, fd_set *readfds, fd_set *writefds,
00062               fd_set *exceptfds, const struct timeval *timeout);
00063 #endif /* __rtems__ */
00064 
00065 #ifdef __cplusplus
00066 }
00067 #endif /* __cplusplus */
00068 
00069 #include /**/ "ace/post.h"
00070 #endif /* ACE_OS_INCLUDE_SYS_OS_SELECT_H */

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