Remove some compile time warnings about duplicate definitions.
[official-gcc.git] / gcc / ada / 3wsoccon.ads
blob38bf70a31777a36845c4505662ff45aad1c00b86
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 -- $Revision: 1.11 $
10 -- --
11 -- Copyright (C) 2001 Ada Core Technologies, Inc. --
12 -- --
13 -- GNAT is free software; you can redistribute it and/or modify it under --
14 -- terms of the GNU General Public License as published by the Free Soft- --
15 -- ware Foundation; either version 2, or (at your option) any later ver- --
16 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
17 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
18 -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
19 -- for more details. You should have received a copy of the GNU General --
20 -- Public License distributed with GNAT; see file COPYING. If not, write --
21 -- to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, --
22 -- MA 02111-1307, USA. --
23 -- --
24 -- As a special exception, if other files instantiate generics from this --
25 -- unit, or you link this unit with other files to produce an executable, --
26 -- this unit does not by itself cause the resulting executable to be --
27 -- covered by the GNU General Public License. This exception does not --
28 -- however invalidate any other reasons why the executable file might be --
29 -- covered by the GNU Public License. --
30 -- --
31 -- GNAT is maintained by Ada Core Technologies Inc (http://www.gnat.com). --
32 -- --
33 ------------------------------------------------------------------------------
35 -- This is the version for MINGW32 NT
37 package GNAT.Sockets.Constants is
39 -- Families
41 AF_INET : constant := 2;
42 AF_INET6 : constant := 3;
44 -- Modes
46 SOCK_STREAM : constant := 1;
47 SOCK_DGRAM : constant := 2;
49 -- Socket Errors
51 EINTR : constant := 10004;
52 EBADF : constant := 10009;
53 EACCES : constant := 10013;
54 EFAULT : constant := 10014;
55 EINVAL : constant := 10022;
56 EMFILE : constant := 10024;
57 EWOULDBLOCK : constant := 10035;
58 EINPROGRESS : constant := 10036;
59 EALREADY : constant := 10037;
60 ENOTSOCK : constant := 10038;
61 EDESTADDRREQ : constant := 10039;
62 EMSGSIZE : constant := 10040;
63 EPROTOTYPE : constant := 10041;
64 ENOPROTOOPT : constant := 10042;
65 EPROTONOSUPPORT : constant := 10043;
66 ESOCKTNOSUPPORT : constant := 10044;
67 EOPNOTSUPP : constant := 10045;
68 EPFNOSUPPORT : constant := 10046;
69 EAFNOSUPPORT : constant := 10047;
70 EADDRINUSE : constant := 10048;
71 EADDRNOTAVAIL : constant := 10049;
72 ENETDOWN : constant := 10050;
73 ENETUNREACH : constant := 10051;
74 ENETRESET : constant := 10052;
75 ECONNABORTED : constant := 10053;
76 ECONNRESET : constant := 10054;
77 ENOBUFS : constant := 10055;
78 EISCONN : constant := 10056;
79 ENOTCONN : constant := 10057;
80 ESHUTDOWN : constant := 10058;
81 ETOOMANYREFS : constant := 10059;
82 ETIMEDOUT : constant := 10060;
83 ECONNREFUSED : constant := 10061;
84 ELOOP : constant := 10062;
85 ENAMETOOLONG : constant := 10063;
86 EHOSTDOWN : constant := 10064;
87 EHOSTUNREACH : constant := 10065;
88 SYSNOTREADY : constant := 10091;
89 VERNOTSUPPORTED : constant := 10092;
90 NOTINITIALISED : constant := 10093;
91 EDISCON : constant := 10101;
93 -- Host Errors
95 HOST_NOT_FOUND : constant := 11001;
96 TRY_AGAIN : constant := 11002;
97 NO_RECOVERY : constant := 11003;
98 NO_ADDRESS : constant := 11004;
99 NO_DATA : constant := 11004;
101 EIO : constant := 10101;
103 -- Control Flags
105 FIONBIO : constant := -2147195266;
106 FIONREAD : constant := 1074030207;
108 -- Shutdown Modes
110 SHUT_RD : constant := 0;
111 SHUT_WR : constant := 1;
112 SHUT_RDWR : constant := 2;
114 -- Protocol Levels
116 SOL_SOCKET : constant := 65535;
117 IPPROTO_IP : constant := 0;
118 IPPROTO_UDP : constant := 17;
119 IPPROTO_TCP : constant := 6;
121 -- Socket Options
123 TCP_NODELAY : constant := 1;
124 SO_SNDBUF : constant := 4097;
125 SO_RCVBUF : constant := 4098;
126 SO_REUSEADDR : constant := 4;
127 SO_KEEPALIVE : constant := 8;
128 SO_LINGER : constant := 128;
129 SO_ERROR : constant := 4103;
130 SO_BROADCAST : constant := 32;
131 IP_ADD_MEMBERSHIP : constant := 5;
132 IP_DROP_MEMBERSHIP : constant := 6;
133 IP_MULTICAST_TTL : constant := 3;
134 IP_MULTICAST_LOOP : constant := 4;
136 end GNAT.Sockets.Constants;