00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
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
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
00034
00035 #if defined (ACE_VXWORKS) && defined (ACE_LACKS_SYS_SELECT_H)
00036 # include <selectLib.h>
00037 #endif
00038
00039
00040 #ifdef __cplusplus
00041 extern "C"
00042 {
00043 #endif
00044
00045 #if defined (ACE_WIN32)
00046
00047 # define NFDBITS 32
00048 #elif defined (__QNX__)
00049 # if !defined (NFDBITS)
00050 # define NFDBITS (sizeof(fd_mask) * NBBY)
00051 # endif
00052 #endif
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
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
00064
00065 #ifdef __cplusplus
00066 }
00067 #endif
00068
00069 #include "ace/post.h"
00070 #endif