* c-decl.c (duplicate_decls): Conditionalize DECL_SAVED_TREE copy.
[official-gcc.git] / gcc / ada / 3lsoccon.ads
blob4371e0d3a3704e0fe2e469a4f4557ae7c1731ec3
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$
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 GNU/Linux
37 package GNAT.Sockets.Constants is
39 -- Families
41 AF_INET : constant := 2;
42 AF_INET6 : constant := 10;
44 -- Modes
46 SOCK_STREAM : constant := 1;
47 SOCK_DGRAM : constant := 2;
49 -- Socket Errors
51 EBADF : constant := 9;
52 ENOTSOCK : constant := 88;
53 ENOTCONN : constant := 107;
54 ENOBUFS : constant := 105;
55 EOPNOTSUPP : constant := 95;
56 EFAULT : constant := 14;
57 EWOULDBLOCK : constant := 11;
58 EADDRNOTAVAIL : constant := 99;
59 EMSGSIZE : constant := 90;
60 EADDRINUSE : constant := 98;
61 EINVAL : constant := 22;
62 EACCES : constant := 13;
63 EAFNOSUPPORT : constant := 97;
64 EISCONN : constant := 106;
65 ETIMEDOUT : constant := 110;
66 ECONNREFUSED : constant := 111;
67 ENETUNREACH : constant := 101;
68 EALREADY : constant := 114;
69 EINPROGRESS : constant := 115;
70 ENOPROTOOPT : constant := 92;
71 EPROTONOSUPPORT : constant := 93;
72 EINTR : constant := 4;
73 EIO : constant := 5;
74 ESOCKTNOSUPPORT : constant := 94;
76 -- Host Errors
78 HOST_NOT_FOUND : constant := 1;
79 TRY_AGAIN : constant := 2;
80 NO_ADDRESS : constant := 4;
81 NO_RECOVERY : constant := 3;
83 -- Control Flags
85 FIONBIO : constant := 21537;
86 FIONREAD : constant := 21531;
88 -- Shutdown Modes
90 SHUT_RD : constant := 0;
91 SHUT_WR : constant := 1;
92 SHUT_RDWR : constant := 2;
94 -- Protocol Levels
96 SOL_SOCKET : constant := 1;
97 IPPROTO_IP : constant := 0;
98 IPPROTO_UDP : constant := 17;
99 IPPROTO_TCP : constant := 6;
101 -- Socket Options
103 TCP_NODELAY : constant := 1;
104 SO_SNDBUF : constant := 7;
105 SO_RCVBUF : constant := 8;
106 SO_REUSEADDR : constant := 2;
107 SO_KEEPALIVE : constant := 9;
108 SO_LINGER : constant := 13;
109 SO_ERROR : constant := 4;
110 SO_BROADCAST : constant := 6;
111 IP_ADD_MEMBERSHIP : constant := 35;
112 IP_DROP_MEMBERSHIP : constant := 36;
113 IP_MULTICAST_TTL : constant := 33;
114 IP_MULTICAST_LOOP : constant := 34;
115 end GNAT.Sockets.Constants;