1 /****************************************************************************
3 * GNAT COMPILER COMPONENTS *
9 * Copyright (C) 2004-2005, Free Software Foundation, Inc. *
11 * GNAT is free software; you can redistribute it and/or modify it under *
12 * terms of the GNU General Public License as published by the Free Soft- *
13 * ware Foundation; either version 2, or (at your option) any later ver- *
14 * sion. GNAT is distributed in the hope that it will be useful, but WITH- *
15 * OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *
16 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License *
17 * for more details. You should have received a copy of the GNU General *
18 * Public License distributed with GNAT; see file COPYING. If not, write *
19 * to the Free Software Foundation, 51 Franklin Street, Fifth Floor, *
20 * Boston, MA 02110-1301, USA. *
22 * As a special exception, if you link this file with other files to *
23 * produce an executable, this file does not by itself cause the resulting *
24 * executable to be covered by the GNU General Public License. This except- *
25 * ion does not however invalidate any other reasons why the executable *
26 * file might be covered by the GNU Public License. *
28 * GNAT was originally developed by the GNAT team at New York University. *
29 * Extensive contributions were provided by Ada Core Technologies Inc. *
31 ****************************************************************************/
33 #ifndef _XOPEN_SOURCE_EXTENDED
34 #define _XOPEN_SOURCE_EXTENDED 1
55 #if defined(__vxworks)
63 #define FD_SETSIZE 1024
70 #define EACCES WSAEACCES
71 #define EADDRINUSE WSAEADDRINUSE
72 #define EADDRNOTAVAIL WSAEADDRNOTAVAIL
73 #define EAFNOSUPPORT WSAEAFNOSUPPORT
74 #define EALREADY WSAEALREADY
75 #define EBADF WSAEBADF
76 #define ECONNABORTED WSAECONNABORTED
77 #define ECONNREFUSED WSAECONNREFUSED
78 #define ECONNRESET WSAECONNRESET
79 #define EDESTADDRREQ WSAEDESTADDRREQ
80 #define EFAULT WSAEFAULT
81 #define EHOSTDOWN WSAEHOSTDOWN
82 #define EHOSTUNREACH WSAEHOSTUNREACH
83 #define EINPROGRESS WSAEINPROGRESS
84 #define EINTR WSAEINTR
85 #define EINVAL WSAEINVAL
86 #define EIO WSAEDISCON
87 #define EISCONN WSAEISCONN
88 #define ELOOP WSAELOOP
89 #define EMFILE WSAEMFILE
90 #define EMSGSIZE WSAEMSGSIZE
91 #define ENAMETOOLONG WSAENAMETOOLONG
92 #define ENETDOWN WSAENETDOWN
93 #define ENETRESET WSAENETRESET
94 #define ENETUNREACH WSAENETUNREACH
95 #define ENOBUFS WSAENOBUFS
96 #define ENOPROTOOPT WSAENOPROTOOPT
97 #define ENOTCONN WSAENOTCONN
98 #define ENOTSOCK WSAENOTSOCK
99 #define EOPNOTSUPP WSAEOPNOTSUPP
100 #define EPFNOSUPPORT WSAEPFNOSUPPORT
101 #define EPROTONOSUPPORT WSAEPROTONOSUPPORT
102 #define ENOTSOCK WSAENOTSOCK
103 #define EOPNOTSUPP WSAEOPNOTSUPP
104 #define EPFNOSUPPORT WSAEPFNOSUPPORT
105 #define EPROTONOSUPPORT WSAEPROTONOSUPPORT
106 #define EPROTOTYPE WSAEPROTOTYPE
107 #define ESHUTDOWN WSAESHUTDOWN
108 #define ESOCKTNOSUPPORT WSAESOCKTNOSUPPORT
109 #define ETIMEDOUT WSAETIMEDOUT
110 #define ETOOMANYREFS WSAETOOMANYREFS
111 #define EWOULDBLOCK WSAEWOULDBLOCK
112 #define SHUT_RD SD_RECEIVE
113 #define SHUT_WR SD_SEND
114 #define SHUT_RDWR SD_BOTH
119 #define FD_SETSIZE 4096
121 /* These DEC C headers are not available when building with GCC */
135 #include <sys/time.h>
138 #if !(defined (VMS) || defined (__MINGW32__) || defined(__rtems__))
139 #include <sys/socket.h>
140 #include <netinet/in.h>
141 #include <netinet/tcp.h>
142 #include <sys/ioctl.h>