* config/i386/uwin.h: Remove SUBTARGET_PROLOGUE.
[official-gcc.git] / gcc / ada / 3wsoccon.ads
blob252801da5ce9f22f03d711ad38291de16acdcc6c
1 ------------------------------------------------------------------------------
2 -- --
3 -- GNAT COMPILER COMPONENTS --
4 -- --
5 -- G N A T . S O C K E T S . C O N S T A N T S --
6 -- --
7 -- S p e c --
8 -- --
9 -- Copyright (C) 2001 Ada Core Technologies, Inc. --
10 -- --
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, 59 Temple Place - Suite 330, Boston, --
20 -- MA 02111-1307, USA. --
21 -- --
22 -- As a special exception, if other files instantiate generics from this --
23 -- unit, or you link this unit with other files to produce an executable, --
24 -- this unit does not by itself cause the resulting executable to be --
25 -- covered by the GNU General Public License. This exception does not --
26 -- however invalidate any other reasons why the executable file might be --
27 -- covered by the GNU Public License. --
28 -- --
29 -- GNAT is maintained by Ada Core Technologies Inc (http://www.gnat.com). --
30 -- --
31 ------------------------------------------------------------------------------
33 -- This is the version for MINGW32 NT
35 package GNAT.Sockets.Constants is
37 -- Families
39 AF_INET : constant := 2;
40 AF_INET6 : constant := 3;
42 -- Modes
44 SOCK_STREAM : constant := 1;
45 SOCK_DGRAM : constant := 2;
47 -- Socket Errors
49 EINTR : constant := 10004;
50 EBADF : constant := 10009;
51 EACCES : constant := 10013;
52 EFAULT : constant := 10014;
53 EINVAL : constant := 10022;
54 EMFILE : constant := 10024;
55 EWOULDBLOCK : constant := 10035;
56 EINPROGRESS : constant := 10036;
57 EALREADY : constant := 10037;
58 ENOTSOCK : constant := 10038;
59 EDESTADDRREQ : constant := 10039;
60 EMSGSIZE : constant := 10040;
61 EPROTOTYPE : constant := 10041;
62 ENOPROTOOPT : constant := 10042;
63 EPROTONOSUPPORT : constant := 10043;
64 ESOCKTNOSUPPORT : constant := 10044;
65 EOPNOTSUPP : constant := 10045;
66 EPFNOSUPPORT : constant := 10046;
67 EAFNOSUPPORT : constant := 10047;
68 EADDRINUSE : constant := 10048;
69 EADDRNOTAVAIL : constant := 10049;
70 ENETDOWN : constant := 10050;
71 ENETUNREACH : constant := 10051;
72 ENETRESET : constant := 10052;
73 ECONNABORTED : constant := 10053;
74 ECONNRESET : constant := 10054;
75 ENOBUFS : constant := 10055;
76 EISCONN : constant := 10056;
77 ENOTCONN : constant := 10057;
78 ESHUTDOWN : constant := 10058;
79 ETOOMANYREFS : constant := 10059;
80 ETIMEDOUT : constant := 10060;
81 ECONNREFUSED : constant := 10061;
82 ELOOP : constant := 10062;
83 ENAMETOOLONG : constant := 10063;
84 EHOSTDOWN : constant := 10064;
85 EHOSTUNREACH : constant := 10065;
86 SYSNOTREADY : constant := 10091;
87 VERNOTSUPPORTED : constant := 10092;
88 NOTINITIALISED : constant := 10093;
89 EDISCON : constant := 10101;
91 -- Host Errors
93 HOST_NOT_FOUND : constant := 11001;
94 TRY_AGAIN : constant := 11002;
95 NO_RECOVERY : constant := 11003;
96 NO_ADDRESS : constant := 11004;
97 NO_DATA : constant := 11004;
99 EIO : constant := 10101;
101 -- Control Flags
103 FIONBIO : constant := -2147195266;
104 FIONREAD : constant := 1074030207;
106 -- Shutdown Modes
108 SHUT_RD : constant := 0;
109 SHUT_WR : constant := 1;
110 SHUT_RDWR : constant := 2;
112 -- Protocol Levels
114 SOL_SOCKET : constant := 65535;
115 IPPROTO_IP : constant := 0;
116 IPPROTO_UDP : constant := 17;
117 IPPROTO_TCP : constant := 6;
119 -- Socket Options
121 TCP_NODELAY : constant := 1;
122 SO_SNDBUF : constant := 4097;
123 SO_RCVBUF : constant := 4098;
124 SO_REUSEADDR : constant := 4;
125 SO_KEEPALIVE : constant := 8;
126 SO_LINGER : constant := 128;
127 SO_ERROR : constant := 4103;
128 SO_BROADCAST : constant := 32;
129 IP_ADD_MEMBERSHIP : constant := 5;
130 IP_DROP_MEMBERSHIP : constant := 6;
131 IP_MULTICAST_TTL : constant := 3;
132 IP_MULTICAST_LOOP : constant := 4;
134 end GNAT.Sockets.Constants;