OSDN Git Service

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