OSDN Git Service

* 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
[pf3gnuchains/gcc-fork.git] / gcc / ada / 3ssoccon.ads
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.7 $
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 ------------------------------------------------------------------------------
34
35 --  This is the version for Solaris
36
37 package GNAT.Sockets.Constants is
38
39    --  Families
40
41    AF_INET              : constant :=                2;
42    AF_INET6             : constant :=               26;
43
44    --  Modes
45
46    SOCK_STREAM          : constant :=                2;
47    SOCK_DGRAM           : constant :=                1;
48
49    --  Socket Errors
50
51    EBADF                : constant :=                9;
52    ENOTSOCK             : constant :=               95;
53    ENOTCONN             : constant :=              134;
54    ENOBUFS              : constant :=              132;
55    EOPNOTSUPP           : constant :=              122;
56    EFAULT               : constant :=               14;
57    EWOULDBLOCK          : constant :=               11;
58    EADDRNOTAVAIL        : constant :=              126;
59    EMSGSIZE             : constant :=               97;
60    EADDRINUSE           : constant :=              125;
61    EINVAL               : constant :=               22;
62    EACCES               : constant :=               13;
63    EAFNOSUPPORT         : constant :=              124;
64    EISCONN              : constant :=              133;
65    ETIMEDOUT            : constant :=              145;
66    ECONNREFUSED         : constant :=              146;
67    ENETUNREACH          : constant :=              128;
68    EALREADY             : constant :=              149;
69    EINPROGRESS          : constant :=              150;
70    ENOPROTOOPT          : constant :=               99;
71    EPROTONOSUPPORT      : constant :=              120;
72    EINTR                : constant :=                4;
73    EIO                  : constant :=                5;
74    ESOCKTNOSUPPORT      : constant :=              121;
75
76    --  Host Errors
77
78    HOST_NOT_FOUND       : constant :=                1;
79    TRY_AGAIN            : constant :=                2;
80    NO_ADDRESS           : constant :=                4;
81    NO_RECOVERY          : constant :=                3;
82
83    --  Control Flags
84
85    FIONBIO              : constant :=      -2147195266;
86    FIONREAD             : constant :=       1074030207;
87
88    --  Shutdown Modes
89
90    SHUT_RD              : constant :=                0;
91    SHUT_WR              : constant :=                1;
92    SHUT_RDWR            : constant :=                2;
93
94    --  Protocol Levels
95
96    SOL_SOCKET           : constant :=            65535;
97    IPPROTO_IP           : constant :=                0;
98    IPPROTO_UDP          : constant :=               17;
99    IPPROTO_TCP          : constant :=                6;
100
101    --  Socket Options
102
103    TCP_NODELAY          : constant :=                1;
104    SO_SNDBUF            : constant :=             4097;
105    SO_RCVBUF            : constant :=             4098;
106    SO_REUSEADDR         : constant :=                4;
107    SO_KEEPALIVE         : constant :=                8;
108    SO_LINGER            : constant :=              128;
109    SO_ERROR             : constant :=             4103;
110    SO_BROADCAST         : constant :=               32;
111    IP_ADD_MEMBERSHIP    : constant :=               19;
112    IP_DROP_MEMBERSHIP   : constant :=               20;
113    IP_MULTICAST_TTL     : constant :=               17;
114    IP_MULTICAST_LOOP    : constant :=               18;
115 end GNAT.Sockets.Constants;