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