Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 # if __GNUC__ >= 3
00021 @PRAGMA_SYSTEM_HEADER@
00022 # endif
00023 @PRAGMA_COLUMNS@
00024
00025
00026
00027 #if @HAVE_SYS_SELECT_H@ && defined __osf__ && (defined _SYS_TYPES_H_ && !defined _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H) && defined _OSF_SOURCE
00028
00029 # define _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H
00030 # @INCLUDE_NEXT@ @NEXT_SYS_SELECT_H@
00031
00032 #elif @HAVE_SYS_SELECT_H@ && defined __osf__ && (defined _SYS_TIME_H_ && !defined _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H) && defined _OSF_SOURCE
00033
00034 # define _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H
00035 # @INCLUDE_NEXT@ @NEXT_SYS_SELECT_H@
00036
00037 #else
00038
00039 #ifndef _GL_SYS_SELECT_H
00040
00041 #if @HAVE_SYS_SELECT_H@
00042
00043
00044
00045 # include <sys/types.h>
00046
00047
00048
00049
00050
00051
00052 # ifndef __GLIBC__
00053 # include <sys/time.h>
00054 # endif
00055
00056
00057
00058
00059 # if (defined __OpenBSD__ || defined __sun || defined __osf__ || defined __BEOS__) \
00060 && ! defined __GLIBC__
00061 # include <string.h>
00062 # endif
00063
00064
00065 # @INCLUDE_NEXT@ @NEXT_SYS_SELECT_H@
00066
00067 #endif
00068
00069 #ifndef _GL_SYS_SELECT_H
00070 #define _GL_SYS_SELECT_H
00071
00072 #if !@HAVE_SYS_SELECT_H@
00073
00074
00075
00076 # include <sys/time.h>
00077
00078
00079 # if defined __hpux
00080 # include <string.h>
00081 # endif
00082
00083
00084
00085 # include <sys/socket.h>
00086 #endif
00087
00088
00089
00090
00091
00092
00093 #if @GNULIB_SELECT@
00094 # if @HAVE_WINSOCK2_H@ || @REPLACE_SELECT@
00095 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00096 # undef select
00097 # define select rpl_select
00098 # endif
00099 _GL_FUNCDECL_RPL (select, int,
00100 (int, fd_set *, fd_set *, fd_set *, struct timeval *));
00101 _GL_CXXALIAS_RPL (select, int,
00102 (int, fd_set *, fd_set *, fd_set *, struct timeval *));
00103 # else
00104 _GL_CXXALIAS_SYS (select, int,
00105 (int, fd_set *, fd_set *, fd_set *, struct timeval *));
00106 # endif
00107 _GL_CXXALIASWARN (select);
00108 #elif @HAVE_WINSOCK2_H@
00109 # undef select
00110 # define select select_used_without_requesting_gnulib_module_select
00111 #elif defined GNULIB_POSIXCHECK
00112 # undef select
00113 # if HAVE_RAW_DECL_SELECT
00114 _GL_WARN_ON_USE (select, "select is not always POSIX compliant - "
00115 "use gnulib module select for portability");
00116 # endif
00117 #endif
00118
00119
00120 #endif
00121 #endif
00122 #endif