From: charlet Date: Wed, 6 Aug 2008 10:08:09 +0000 (+0000) Subject: 2008-08-06 Thomas Quinot X-Git-Tag: upstream/4.9.2~40528 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5552c69f5743132f0182d43b28643ce2accc61a7;p=platform%2Fupstream%2Flinaro-gcc.git 2008-08-06 Thomas Quinot * gcc-interface/Makefile.in, g-socthi-vxworks.adb, g-socthi-mingw.adb, g-sttsne-vxworks.adb, g-socthi.adb, g-socket.adb, g-socket.ads, g-sothco.ads, g-soccon-linux-x86.ads, g-soccon-vxworks.ads, g-soccon-mingw.ads, g-soccon-hpux-ia64.ads, g-soccon-irix.ads, g-soccon-linux-64.ads, g-soccon-aix.ads, g-soccon-solaris.ads, g-soccon-lynxos.ads, g-soccon-vms.ads, g-soccon.ads, g-soccon-freebsd.ads, g-soccon-linux-ppc.ads, g-soccon-tru64.ads, g-soccon-hpux.ads, g-soccon-solaris-64.ads, gen-oscons.c, g-soccon-darwin.ads, g-soccon-mingw-64.ads, g-soccon-linux-mips.ads, g-soccon-rtems.ads: Remove GNAT.Sockets.Constants. This internal package is replaced by System.OS_Constants. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138792 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index a8d0a80..436c2fe 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,31 @@ +2008-08-06 Ed Schonberg + + * sem_ch3.adb (Analyze_Component_Declaration): Protect against misuse + of incomplete type. + + * sem_ch8.adb (Analyze_Object_Renaming): Diagnose properly a renaming + of a formal parameter of an incomplete type. Improve error message for + other improper uses of incomplete types. + +2008-08-06 Robert Dewar + + * gnat_ugn.texi: Clarify -gnato documentation + +2008-08-06 Thomas Quinot + + * gcc-interface/Makefile.in, + g-socthi-vxworks.adb, g-socthi-mingw.adb, g-sttsne-vxworks.adb, + g-socthi.adb, g-socket.adb, g-socket.ads, g-sothco.ads, + g-soccon-linux-x86.ads, g-soccon-vxworks.ads, g-soccon-mingw.ads, + g-soccon-hpux-ia64.ads, g-soccon-irix.ads, g-soccon-linux-64.ads, + g-soccon-aix.ads, g-soccon-solaris.ads, g-soccon-lynxos.ads, + g-soccon-vms.ads, g-soccon.ads, g-soccon-freebsd.ads, + g-soccon-linux-ppc.ads, g-soccon-tru64.ads, g-soccon-hpux.ads, + g-soccon-solaris-64.ads, gen-oscons.c, g-soccon-darwin.ads, + g-soccon-mingw-64.ads, g-soccon-linux-mips.ads, g-soccon-rtems.ads: + Remove GNAT.Sockets.Constants. This internal package is replaced by + System.OS_Constants. + 2008-08-06 Thomas Quinot * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: diff --git a/gcc/ada/g-soccon-aix.ads b/gcc/ada/g-soccon-aix.ads deleted file mode 100644 index c0a1503..0000000 --- a/gcc/ada/g-soccon-aix.ads +++ /dev/null @@ -1,208 +0,0 @@ ------------------------------------------------------------------------------- --- -- --- GNAT COMPILER COMPONENTS -- --- -- --- G N A T . S O C K E T S . C O N S T A N T S -- --- -- --- S p e c -- --- -- --- Copyright (C) 2000-2008, Free Software Foundation, Inc. -- --- -- --- GNAT is free software; you can redistribute it and/or modify it under -- --- terms of the GNU General Public License as published by the Free Soft- -- --- ware Foundation; either version 2, or (at your option) any later ver- -- --- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- --- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- --- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- --- for more details. You should have received a copy of the GNU General -- --- Public License distributed with GNAT; see file COPYING. If not, write -- --- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, -- --- Boston, MA 02110-1301, USA. -- --- -- --- As a special exception, if other files instantiate generics from this -- --- unit, or you link this unit with other files to produce an executable, -- --- this unit does not by itself cause the resulting executable to be -- --- covered by the GNU General Public License. This exception does not -- --- however invalidate any other reasons why the executable file might be -- --- covered by the GNU Public License. -- --- -- --- GNAT was originally developed by the GNAT team at New York University. -- --- Extensive contributions were provided by Ada Core Technologies Inc. -- --- -- ------------------------------------------------------------------------------- - --- This package provides target dependent definitions of constant for use --- by the GNAT.Sockets package (g-socket.ads). This package should not be --- directly with'ed by an applications program. - --- This is the version for powerpc-ibm-aix5.3.0.0 --- This file is generated automatically, do not modify it by hand! Instead, --- make changes to gen-soccon.c and re-run it on each target. - -with Interfaces.C; -package GNAT.Sockets.Constants is - - -------------- - -- Families -- - -------------- - - AF_INET : constant := 2; -- IPv4 address family - AF_INET6 : constant := 24; -- IPv6 address family - - ----------- - -- Modes -- - ----------- - - SOCK_STREAM : constant := 1; -- Stream socket - SOCK_DGRAM : constant := 2; -- Datagram socket - - ------------------- - -- Socket errors -- - ------------------- - - EACCES : constant := 13; -- Permission denied - EADDRINUSE : constant := 67; -- Address already in use - EADDRNOTAVAIL : constant := 68; -- Cannot assign address - EAFNOSUPPORT : constant := 66; -- Addr family not supported - EALREADY : constant := 56; -- Operation in progress - EBADF : constant := 9; -- Bad file descriptor - ECONNABORTED : constant := 72; -- Connection aborted - ECONNREFUSED : constant := 79; -- Connection refused - ECONNRESET : constant := 73; -- Connection reset by peer - EDESTADDRREQ : constant := 58; -- Destination addr required - EFAULT : constant := 14; -- Bad address - EHOSTDOWN : constant := 80; -- Host is down - EHOSTUNREACH : constant := 81; -- No route to host - EINPROGRESS : constant := 55; -- Operation now in progress - EINTR : constant := 4; -- Interrupted system call - EINVAL : constant := 22; -- Invalid argument - EIO : constant := 5; -- Input output error - EISCONN : constant := 75; -- Socket already connected - ELOOP : constant := 85; -- Too many symbolic links - EMFILE : constant := 24; -- Too many open files - EMSGSIZE : constant := 59; -- Message too long - ENAMETOOLONG : constant := 86; -- Name too long - ENETDOWN : constant := 69; -- Network is down - ENETRESET : constant := 71; -- Disconn. on network reset - ENETUNREACH : constant := 70; -- Network is unreachable - ENOBUFS : constant := 74; -- No buffer space available - ENOPROTOOPT : constant := 61; -- Protocol not available - ENOTCONN : constant := 76; -- Socket not connected - ENOTSOCK : constant := 57; -- Operation on non socket - EOPNOTSUPP : constant := 64; -- Operation not supported - EPFNOSUPPORT : constant := 65; -- Unknown protocol family - EPROTONOSUPPORT : constant := 62; -- Unknown protocol - EPROTOTYPE : constant := 60; -- Unknown protocol type - ESHUTDOWN : constant := 77; -- Cannot send once shutdown - ESOCKTNOSUPPORT : constant := 63; -- Socket type not supported - ETIMEDOUT : constant := 78; -- Connection timed out - ETOOMANYREFS : constant := 115; -- Too many references - EWOULDBLOCK : constant := 11; -- Operation would block - - ----------------- - -- Host errors -- - ----------------- - - HOST_NOT_FOUND : constant := 1; -- Unknown host - TRY_AGAIN : constant := 2; -- Host name lookup failure - NO_DATA : constant := 4; -- No data record for name - NO_RECOVERY : constant := 3; -- Non recoverable errors - - ------------------- - -- Control flags -- - ------------------- - - FIONBIO : constant := -2147195266; -- Set/clear non-blocking io - FIONREAD : constant := 1074030207; -- How many bytes to read - - -------------------- - -- Shutdown modes -- - -------------------- - - SHUT_RD : constant := 0; -- No more recv - SHUT_WR : constant := 1; -- No more send - SHUT_RDWR : constant := 2; -- No more recv/send - - --------------------- - -- Protocol levels -- - --------------------- - - SOL_SOCKET : constant := 65535; -- Options for socket level - IPPROTO_IP : constant := 0; -- Dummy protocol for IP - IPPROTO_UDP : constant := 17; -- UDP - IPPROTO_TCP : constant := 6; -- TCP - - ------------------- - -- Request flags -- - ------------------- - - MSG_OOB : constant := 1; -- Process out-of-band data - MSG_PEEK : constant := 2; -- Peek at incoming data - MSG_EOR : constant := 8; -- Send end of record - MSG_WAITALL : constant := 64; -- Wait for full reception - MSG_NOSIGNAL : constant := -1; -- No SIGPIPE on send - MSG_Forced_Flags : constant := 0; - -- Flags set on all send(2) calls - - -------------------- - -- Socket options -- - -------------------- - - TCP_NODELAY : constant := 1; -- Do not coalesce packets - SO_REUSEADDR : constant := 4; -- Bind reuse local address - SO_REUSEPORT : constant := 512; -- Bind reuse port number - SO_KEEPALIVE : constant := 8; -- Enable keep-alive msgs - SO_LINGER : constant := 128; -- Defer close to flush data - SO_BROADCAST : constant := 32; -- Can send broadcast msgs - SO_SNDBUF : constant := 4097; -- Set/get send buffer size - SO_RCVBUF : constant := 4098; -- Set/get recv buffer size - SO_SNDTIMEO : constant := 4101; -- Emission timeout - SO_RCVTIMEO : constant := 4102; -- Reception timeout - SO_ERROR : constant := 4103; -- Get/clear error status - IP_MULTICAST_IF : constant := 9; -- Set/get mcast interface - IP_MULTICAST_TTL : constant := 10; -- Set/get multicast TTL - IP_MULTICAST_LOOP : constant := 11; -- Set/get mcast loopback - IP_ADD_MEMBERSHIP : constant := 12; -- Join a multicast group - IP_DROP_MEMBERSHIP : constant := 13; -- Leave a multicast group - IP_PKTINFO : constant := -1; -- Get datagram info - - ------------------- - -- System limits -- - ------------------- - - IOV_MAX : constant := 16; -- Maximum writev iovcnt - - ---------------------- - -- Type definitions -- - ---------------------- - - -- Sizes (in bytes) of the components of struct timeval - - SIZEOF_tv_sec : constant := 4; -- tv_sec - SIZEOF_tv_usec : constant := 4; -- tv_usec - - -- Sizes of protocol specific address types (for sockaddr.sa_len) - - SIZEOF_sockaddr_in : constant := 16; -- struct sockaddr_in - SIZEOF_sockaddr_in6 : constant := 28; -- struct sockaddr_in6 - - -- Size of file descriptor sets - - SIZEOF_fd_set : constant := 8192; -- fd_set - - -- Fields of struct hostent - - subtype H_Addrtype_T is Interfaces.C.int; - subtype H_Length_T is Interfaces.C.int; - - ---------------------------------------- - -- Properties of supported interfaces -- - ---------------------------------------- - - Need_Netdb_Buffer : constant := 0; -- Need buffer for Netdb ops - Has_Sockaddr_Len : constant := 0; -- Sockaddr has sa_len field - - Thread_Blocking_IO : constant Boolean := True; - -- Set False for contexts where socket i/o are process blocking - -end GNAT.Sockets.Constants; diff --git a/gcc/ada/g-soccon-darwin.ads b/gcc/ada/g-soccon-darwin.ads deleted file mode 100644 index 7e79224..0000000 --- a/gcc/ada/g-soccon-darwin.ads +++ /dev/null @@ -1,208 +0,0 @@ ------------------------------------------------------------------------------- --- -- --- GNAT COMPILER COMPONENTS -- --- -- --- G N A T . S O C K E T S . C O N S T A N T S -- --- -- --- S p e c -- --- -- --- Copyright (C) 2000-2008, Free Software Foundation, Inc. -- --- -- --- GNAT is free software; you can redistribute it and/or modify it under -- --- terms of the GNU General Public License as published by the Free Soft- -- --- ware Foundation; either version 2, or (at your option) any later ver- -- --- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- --- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- --- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- --- for more details. You should have received a copy of the GNU General -- --- Public License distributed with GNAT; see file COPYING. If not, write -- --- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, -- --- Boston, MA 02110-1301, USA. -- --- -- --- As a special exception, if other files instantiate generics from this -- --- unit, or you link this unit with other files to produce an executable, -- --- this unit does not by itself cause the resulting executable to be -- --- covered by the GNU General Public License. This exception does not -- --- however invalidate any other reasons why the executable file might be -- --- covered by the GNU Public License. -- --- -- --- GNAT was originally developed by the GNAT team at New York University. -- --- Extensive contributions were provided by Ada Core Technologies Inc. -- --- -- ------------------------------------------------------------------------------- - --- This package provides target dependent definitions of constant for use --- by the GNAT.Sockets package (g-socket.ads). This package should not be --- directly with'ed by an applications program. - --- This is the version for i386-apple-darwin8.8.4 --- This file is generated automatically, do not modify it by hand! Instead, --- make changes to gen-soccon.c and re-run it on each target. - -with Interfaces.C; -package GNAT.Sockets.Constants is - - -------------- - -- Families -- - -------------- - - AF_INET : constant := 2; -- IPv4 address family - AF_INET6 : constant := 30; -- IPv6 address family - - ----------- - -- Modes -- - ----------- - - SOCK_STREAM : constant := 1; -- Stream socket - SOCK_DGRAM : constant := 2; -- Datagram socket - - ------------------- - -- Socket errors -- - ------------------- - - EACCES : constant := 13; -- Permission denied - EADDRINUSE : constant := 48; -- Address already in use - EADDRNOTAVAIL : constant := 49; -- Cannot assign address - EAFNOSUPPORT : constant := 47; -- Addr family not supported - EALREADY : constant := 37; -- Operation in progress - EBADF : constant := 9; -- Bad file descriptor - ECONNABORTED : constant := 53; -- Connection aborted - ECONNREFUSED : constant := 61; -- Connection refused - ECONNRESET : constant := 54; -- Connection reset by peer - EDESTADDRREQ : constant := 39; -- Destination addr required - EFAULT : constant := 14; -- Bad address - EHOSTDOWN : constant := 64; -- Host is down - EHOSTUNREACH : constant := 65; -- No route to host - EINPROGRESS : constant := 36; -- Operation now in progress - EINTR : constant := 4; -- Interrupted system call - EINVAL : constant := 22; -- Invalid argument - EIO : constant := 5; -- Input output error - EISCONN : constant := 56; -- Socket already connected - ELOOP : constant := 62; -- Too many symbolic links - EMFILE : constant := 24; -- Too many open files - EMSGSIZE : constant := 40; -- Message too long - ENAMETOOLONG : constant := 63; -- Name too long - ENETDOWN : constant := 50; -- Network is down - ENETRESET : constant := 52; -- Disconn. on network reset - ENETUNREACH : constant := 51; -- Network is unreachable - ENOBUFS : constant := 55; -- No buffer space available - ENOPROTOOPT : constant := 42; -- Protocol not available - ENOTCONN : constant := 57; -- Socket not connected - ENOTSOCK : constant := 38; -- Operation on non socket - EOPNOTSUPP : constant := 45; -- Operation not supported - EPFNOSUPPORT : constant := 46; -- Unknown protocol family - EPROTONOSUPPORT : constant := 43; -- Unknown protocol - EPROTOTYPE : constant := 41; -- Unknown protocol type - ESHUTDOWN : constant := 58; -- Cannot send once shutdown - ESOCKTNOSUPPORT : constant := 44; -- Socket type not supported - ETIMEDOUT : constant := 60; -- Connection timed out - ETOOMANYREFS : constant := 59; -- Too many references - EWOULDBLOCK : constant := 35; -- Operation would block - - ----------------- - -- Host errors -- - ----------------- - - HOST_NOT_FOUND : constant := 1; -- Unknown host - TRY_AGAIN : constant := 2; -- Host name lookup failure - NO_DATA : constant := 4; -- No data record for name - NO_RECOVERY : constant := 3; -- Non recoverable errors - - ------------------- - -- Control flags -- - ------------------- - - FIONBIO : constant := -2147195266; -- Set/clear non-blocking io - FIONREAD : constant := 1074030207; -- How many bytes to read - - -------------------- - -- Shutdown modes -- - -------------------- - - SHUT_RD : constant := 0; -- No more recv - SHUT_WR : constant := 1; -- No more send - SHUT_RDWR : constant := 2; -- No more recv/send - - --------------------- - -- Protocol levels -- - --------------------- - - SOL_SOCKET : constant := 65535; -- Options for socket level - IPPROTO_IP : constant := 0; -- Dummy protocol for IP - IPPROTO_UDP : constant := 17; -- UDP - IPPROTO_TCP : constant := 6; -- TCP - - ------------------- - -- Request flags -- - ------------------- - - MSG_OOB : constant := 1; -- Process out-of-band data - MSG_PEEK : constant := 2; -- Peek at incoming data - MSG_EOR : constant := 8; -- Send end of record - MSG_WAITALL : constant := 64; -- Wait for full reception - MSG_NOSIGNAL : constant := -1; -- No SIGPIPE on send - MSG_Forced_Flags : constant := 0; - -- Flags set on all send(2) calls - - -------------------- - -- Socket options -- - -------------------- - - TCP_NODELAY : constant := 1; -- Do not coalesce packets - SO_REUSEADDR : constant := 4; -- Bind reuse local address - SO_REUSEPORT : constant := 512; -- Bind reuse port number - SO_KEEPALIVE : constant := 8; -- Enable keep-alive msgs - SO_LINGER : constant := 128; -- Defer close to flush data - SO_BROADCAST : constant := 32; -- Can send broadcast msgs - SO_SNDBUF : constant := 4097; -- Set/get send buffer size - SO_RCVBUF : constant := 4098; -- Set/get recv buffer size - SO_SNDTIMEO : constant := 4101; -- Emission timeout - SO_RCVTIMEO : constant := 4102; -- Reception timeout - SO_ERROR : constant := 4103; -- Get/clear error status - IP_MULTICAST_IF : constant := 9; -- Set/get mcast interface - IP_MULTICAST_TTL : constant := 10; -- Set/get multicast TTL - IP_MULTICAST_LOOP : constant := 11; -- Set/get mcast loopback - IP_ADD_MEMBERSHIP : constant := 12; -- Join a multicast group - IP_DROP_MEMBERSHIP : constant := 13; -- Leave a multicast group - IP_PKTINFO : constant := -1; -- Get datagram info - - ------------------- - -- System limits -- - ------------------- - - IOV_MAX : constant := 1024; -- Maximum writev iovcnt - - ---------------------- - -- Type definitions -- - ---------------------- - - -- Sizes (in bytes) of the components of struct timeval - - SIZEOF_tv_sec : constant := 4; -- tv_sec - SIZEOF_tv_usec : constant := 4; -- tv_usec - - -- Sizes of protocol specific address types (for sockaddr.sa_len) - - SIZEOF_sockaddr_in : constant := 16; -- struct sockaddr_in - SIZEOF_sockaddr_in6 : constant := 28; -- struct sockaddr_in6 - - -- Size of file descriptor sets - - SIZEOF_fd_set : constant := 128; -- fd_set - - -- Fields of struct hostent - - subtype H_Addrtype_T is Interfaces.C.int; - subtype H_Length_T is Interfaces.C.int; - - ---------------------------------------- - -- Properties of supported interfaces -- - ---------------------------------------- - - Need_Netdb_Buffer : constant := 0; -- Need buffer for Netdb ops - Has_Sockaddr_Len : constant := 0; -- Sockaddr has sa_len field - - Thread_Blocking_IO : constant Boolean := True; - -- Set False for contexts where socket i/o are process blocking - -end GNAT.Sockets.Constants; diff --git a/gcc/ada/g-soccon-freebsd.ads b/gcc/ada/g-soccon-freebsd.ads deleted file mode 100644 index 8af0908..0000000 --- a/gcc/ada/g-soccon-freebsd.ads +++ /dev/null @@ -1,208 +0,0 @@ ------------------------------------------------------------------------------- --- -- --- GNAT COMPILER COMPONENTS -- --- -- --- G N A T . S O C K E T S . C O N S T A N T S -- --- -- --- S p e c -- --- -- --- Copyright (C) 2000-2008, Free Software Foundation, Inc. -- --- -- --- GNAT is free software; you can redistribute it and/or modify it under -- --- terms of the GNU General Public License as published by the Free Soft- -- --- ware Foundation; either version 2, or (at your option) any later ver- -- --- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- --- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- --- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- --- for more details. You should have received a copy of the GNU General -- --- Public License distributed with GNAT; see file COPYING. If not, write -- --- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, -- --- Boston, MA 02110-1301, USA. -- --- -- --- As a special exception, if other files instantiate generics from this -- --- unit, or you link this unit with other files to produce an executable, -- --- this unit does not by itself cause the resulting executable to be -- --- covered by the GNU General Public License. This exception does not -- --- however invalidate any other reasons why the executable file might be -- --- covered by the GNU Public License. -- --- -- --- GNAT was originally developed by the GNAT team at New York University. -- --- Extensive contributions were provided by Ada Core Technologies Inc. -- --- -- ------------------------------------------------------------------------------- - --- This package provides target dependent definitions of constant for use --- by the GNAT.Sockets package (g-socket.ads). This package should not be --- directly with'ed by an applications program. - --- This is the version for i386-unknown-freebsd6.2 --- This file is generated automatically, do not modify it by hand! Instead, --- make changes to gen-soccon.c and re-run it on each target. - -with Interfaces.C; -package GNAT.Sockets.Constants is - - -------------- - -- Families -- - -------------- - - AF_INET : constant := 2; -- IPv4 address family - AF_INET6 : constant := 28; -- IPv6 address family - - ----------- - -- Modes -- - ----------- - - SOCK_STREAM : constant := 1; -- Stream socket - SOCK_DGRAM : constant := 2; -- Datagram socket - - ------------------- - -- Socket errors -- - ------------------- - - EACCES : constant := 13; -- Permission denied - EADDRINUSE : constant := 48; -- Address already in use - EADDRNOTAVAIL : constant := 49; -- Cannot assign address - EAFNOSUPPORT : constant := 47; -- Addr family not supported - EALREADY : constant := 37; -- Operation in progress - EBADF : constant := 9; -- Bad file descriptor - ECONNABORTED : constant := 53; -- Connection aborted - ECONNREFUSED : constant := 61; -- Connection refused - ECONNRESET : constant := 54; -- Connection reset by peer - EDESTADDRREQ : constant := 39; -- Destination addr required - EFAULT : constant := 14; -- Bad address - EHOSTDOWN : constant := 64; -- Host is down - EHOSTUNREACH : constant := 65; -- No route to host - EINPROGRESS : constant := 36; -- Operation now in progress - EINTR : constant := 4; -- Interrupted system call - EINVAL : constant := 22; -- Invalid argument - EIO : constant := 5; -- Input output error - EISCONN : constant := 56; -- Socket already connected - ELOOP : constant := 62; -- Too many symbolic links - EMFILE : constant := 24; -- Too many open files - EMSGSIZE : constant := 40; -- Message too long - ENAMETOOLONG : constant := 63; -- Name too long - ENETDOWN : constant := 50; -- Network is down - ENETRESET : constant := 52; -- Disconn. on network reset - ENETUNREACH : constant := 51; -- Network is unreachable - ENOBUFS : constant := 55; -- No buffer space available - ENOPROTOOPT : constant := 42; -- Protocol not available - ENOTCONN : constant := 57; -- Socket not connected - ENOTSOCK : constant := 38; -- Operation on non socket - EOPNOTSUPP : constant := 45; -- Operation not supported - EPFNOSUPPORT : constant := 46; -- Unknown protocol family - EPROTONOSUPPORT : constant := 43; -- Unknown protocol - EPROTOTYPE : constant := 41; -- Unknown protocol type - ESHUTDOWN : constant := 58; -- Cannot send once shutdown - ESOCKTNOSUPPORT : constant := 44; -- Socket type not supported - ETIMEDOUT : constant := 60; -- Connection timed out - ETOOMANYREFS : constant := 59; -- Too many references - EWOULDBLOCK : constant := 35; -- Operation would block - - ----------------- - -- Host errors -- - ----------------- - - HOST_NOT_FOUND : constant := 1; -- Unknown host - TRY_AGAIN : constant := 2; -- Host name lookup failure - NO_DATA : constant := 4; -- No data record for name - NO_RECOVERY : constant := 3; -- Non recoverable errors - - ------------------- - -- Control flags -- - ------------------- - - FIONBIO : constant := -2147195266; -- Set/clear non-blocking io - FIONREAD : constant := 1074030207; -- How many bytes to read - - -------------------- - -- Shutdown modes -- - -------------------- - - SHUT_RD : constant := 0; -- No more recv - SHUT_WR : constant := 1; -- No more send - SHUT_RDWR : constant := 2; -- No more recv/send - - --------------------- - -- Protocol levels -- - --------------------- - - SOL_SOCKET : constant := 65535; -- Options for socket level - IPPROTO_IP : constant := 0; -- Dummy protocol for IP - IPPROTO_UDP : constant := 17; -- UDP - IPPROTO_TCP : constant := 6; -- TCP - - ------------------- - -- Request flags -- - ------------------- - - MSG_OOB : constant := 1; -- Process out-of-band data - MSG_PEEK : constant := 2; -- Peek at incoming data - MSG_EOR : constant := 8; -- Send end of record - MSG_WAITALL : constant := 64; -- Wait for full reception - MSG_NOSIGNAL : constant := 131072; -- No SIGPIPE on send - MSG_Forced_Flags : constant := 0; - -- Flags set on all send(2) calls - - -------------------- - -- Socket options -- - -------------------- - - TCP_NODELAY : constant := 1; -- Do not coalesce packets - SO_REUSEADDR : constant := 4; -- Bind reuse local address - SO_REUSEPORT : constant := 512; -- Bind reuse port number - SO_KEEPALIVE : constant := 8; -- Enable keep-alive msgs - SO_LINGER : constant := 128; -- Defer close to flush data - SO_BROADCAST : constant := 32; -- Can send broadcast msgs - SO_SNDBUF : constant := 4097; -- Set/get send buffer size - SO_RCVBUF : constant := 4098; -- Set/get recv buffer size - SO_SNDTIMEO : constant := 4101; -- Emission timeout - SO_RCVTIMEO : constant := 4102; -- Reception timeout - SO_ERROR : constant := 4103; -- Get/clear error status - IP_MULTICAST_IF : constant := 9; -- Set/get mcast interface - IP_MULTICAST_TTL : constant := 10; -- Set/get multicast TTL - IP_MULTICAST_LOOP : constant := 11; -- Set/get mcast loopback - IP_ADD_MEMBERSHIP : constant := 12; -- Join a multicast group - IP_DROP_MEMBERSHIP : constant := 13; -- Leave a multicast group - IP_PKTINFO : constant := -1; -- Get datagram info - - ------------------- - -- System limits -- - ------------------- - - IOV_MAX : constant := 1024; -- Maximum writev iovcnt - - ---------------------- - -- Type definitions -- - ---------------------- - - -- Sizes (in bytes) of the components of struct timeval - - SIZEOF_tv_sec : constant := 4; -- tv_sec - SIZEOF_tv_usec : constant := 4; -- tv_usec - - -- Sizes of protocol specific address types (for sockaddr.sa_len) - - SIZEOF_sockaddr_in : constant := 16; -- struct sockaddr_in - SIZEOF_sockaddr_in6 : constant := 28; -- struct sockaddr_in6 - - -- Size of file descriptor sets - - SIZEOF_fd_set : constant := 128; -- fd_set - - -- Fields of struct hostent - - subtype H_Addrtype_T is Interfaces.C.int; - subtype H_Length_T is Interfaces.C.int; - - ---------------------------------------- - -- Properties of supported interfaces -- - ---------------------------------------- - - Need_Netdb_Buffer : constant := 0; -- Need buffer for Netdb ops - Has_Sockaddr_Len : constant := 1; -- Sockaddr has sa_len field - - Thread_Blocking_IO : constant Boolean := True; - -- Set False for contexts where socket i/o are process blocking - -end GNAT.Sockets.Constants; diff --git a/gcc/ada/g-soccon-hpux-ia64.ads b/gcc/ada/g-soccon-hpux-ia64.ads deleted file mode 100644 index 4c364bd..0000000 --- a/gcc/ada/g-soccon-hpux-ia64.ads +++ /dev/null @@ -1,208 +0,0 @@ ------------------------------------------------------------------------------- --- -- --- GNAT COMPILER COMPONENTS -- --- -- --- G N A T . S O C K E T S . C O N S T A N T S -- --- -- --- S p e c -- --- -- --- Copyright (C) 2000-2008, Free Software Foundation, Inc. -- --- -- --- GNAT is free software; you can redistribute it and/or modify it under -- --- terms of the GNU General Public License as published by the Free Soft- -- --- ware Foundation; either version 2, or (at your option) any later ver- -- --- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- --- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- --- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- --- for more details. You should have received a copy of the GNU General -- --- Public License distributed with GNAT; see file COPYING. If not, write -- --- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, -- --- Boston, MA 02110-1301, USA. -- --- -- --- As a special exception, if other files instantiate generics from this -- --- unit, or you link this unit with other files to produce an executable, -- --- this unit does not by itself cause the resulting executable to be -- --- covered by the GNU General Public License. This exception does not -- --- however invalidate any other reasons why the executable file might be -- --- covered by the GNU Public License. -- --- -- --- GNAT was originally developed by the GNAT team at New York University. -- --- Extensive contributions were provided by Ada Core Technologies Inc. -- --- -- ------------------------------------------------------------------------------- - --- This package provides target dependent definitions of constant for use --- by the GNAT.Sockets package (g-socket.ads). This package should not be --- directly with'ed by an applications program. - --- This is the version for ia64-hp-hpux11.23 --- This file is generated automatically, do not modify it by hand! Instead, --- make changes to gen-soccon.c and re-run it on each target. - -with Interfaces.C; -package GNAT.Sockets.Constants is - - -------------- - -- Families -- - -------------- - - AF_INET : constant := 2; -- IPv4 address family - AF_INET6 : constant := 22; -- IPv6 address family - - ----------- - -- Modes -- - ----------- - - SOCK_STREAM : constant := 1; -- Stream socket - SOCK_DGRAM : constant := 2; -- Datagram socket - - ------------------- - -- Socket errors -- - ------------------- - - EACCES : constant := 13; -- Permission denied - EADDRINUSE : constant := 226; -- Address already in use - EADDRNOTAVAIL : constant := 227; -- Cannot assign address - EAFNOSUPPORT : constant := 225; -- Addr family not supported - EALREADY : constant := 244; -- Operation in progress - EBADF : constant := 9; -- Bad file descriptor - ECONNABORTED : constant := 231; -- Connection aborted - ECONNREFUSED : constant := 239; -- Connection refused - ECONNRESET : constant := 232; -- Connection reset by peer - EDESTADDRREQ : constant := 217; -- Destination addr required - EFAULT : constant := 14; -- Bad address - EHOSTDOWN : constant := 241; -- Host is down - EHOSTUNREACH : constant := 242; -- No route to host - EINPROGRESS : constant := 245; -- Operation now in progress - EINTR : constant := 4; -- Interrupted system call - EINVAL : constant := 22; -- Invalid argument - EIO : constant := 5; -- Input output error - EISCONN : constant := 234; -- Socket already connected - ELOOP : constant := 249; -- Too many symbolic links - EMFILE : constant := 24; -- Too many open files - EMSGSIZE : constant := 218; -- Message too long - ENAMETOOLONG : constant := 248; -- Name too long - ENETDOWN : constant := 228; -- Network is down - ENETRESET : constant := 230; -- Disconn. on network reset - ENETUNREACH : constant := 229; -- Network is unreachable - ENOBUFS : constant := 233; -- No buffer space available - ENOPROTOOPT : constant := 220; -- Protocol not available - ENOTCONN : constant := 235; -- Socket not connected - ENOTSOCK : constant := 216; -- Operation on non socket - EOPNOTSUPP : constant := 223; -- Operation not supported - EPFNOSUPPORT : constant := 224; -- Unknown protocol family - EPROTONOSUPPORT : constant := 221; -- Unknown protocol - EPROTOTYPE : constant := 219; -- Unknown protocol type - ESHUTDOWN : constant := 236; -- Cannot send once shutdown - ESOCKTNOSUPPORT : constant := 222; -- Socket type not supported - ETIMEDOUT : constant := 238; -- Connection timed out - ETOOMANYREFS : constant := 237; -- Too many references - EWOULDBLOCK : constant := 246; -- Operation would block - - ----------------- - -- Host errors -- - ----------------- - - HOST_NOT_FOUND : constant := 1; -- Unknown host - TRY_AGAIN : constant := 2; -- Host name lookup failure - NO_DATA : constant := 4; -- No data record for name - NO_RECOVERY : constant := 3; -- Non recoverable errors - - ------------------- - -- Control flags -- - ------------------- - - FIONBIO : constant := -2147195266; -- Set/clear non-blocking io - FIONREAD : constant := 1074030207; -- How many bytes to read - - -------------------- - -- Shutdown modes -- - -------------------- - - SHUT_RD : constant := 0; -- No more recv - SHUT_WR : constant := 1; -- No more send - SHUT_RDWR : constant := 2; -- No more recv/send - - --------------------- - -- Protocol levels -- - --------------------- - - SOL_SOCKET : constant := 65535; -- Options for socket level - IPPROTO_IP : constant := 0; -- Dummy protocol for IP - IPPROTO_UDP : constant := 17; -- UDP - IPPROTO_TCP : constant := 6; -- TCP - - ------------------- - -- Request flags -- - ------------------- - - MSG_OOB : constant := 1; -- Process out-of-band data - MSG_PEEK : constant := 2; -- Peek at incoming data - MSG_EOR : constant := 8; -- Send end of record - MSG_WAITALL : constant := 64; -- Wait for full reception - MSG_NOSIGNAL : constant := -1; -- No SIGPIPE on send - MSG_Forced_Flags : constant := 0; - -- Flags set on all send(2) calls - - -------------------- - -- Socket options -- - -------------------- - - TCP_NODELAY : constant := 1; -- Do not coalesce packets - SO_REUSEADDR : constant := 4; -- Bind reuse local address - SO_REUSEPORT : constant := 512; -- Bind reuse port number - SO_KEEPALIVE : constant := 8; -- Enable keep-alive msgs - SO_LINGER : constant := 128; -- Defer close to flush data - SO_BROADCAST : constant := 32; -- Can send broadcast msgs - SO_SNDBUF : constant := 4097; -- Set/get send buffer size - SO_RCVBUF : constant := 4098; -- Set/get recv buffer size - SO_SNDTIMEO : constant := 4101; -- Emission timeout - SO_RCVTIMEO : constant := 4102; -- Reception timeout - SO_ERROR : constant := 4103; -- Get/clear error status - IP_MULTICAST_IF : constant := 2; -- Set/get mcast interface - IP_MULTICAST_TTL : constant := 3; -- Set/get multicast TTL - IP_MULTICAST_LOOP : constant := 4; -- Set/get mcast loopback - IP_ADD_MEMBERSHIP : constant := 5; -- Join a multicast group - IP_DROP_MEMBERSHIP : constant := 6; -- Leave a multicast group - IP_PKTINFO : constant := -1; -- Get datagram info - - ------------------- - -- System limits -- - ------------------- - - IOV_MAX : constant := 16; -- Maximum writev iovcnt - - ---------------------- - -- Type definitions -- - ---------------------- - - -- Sizes (in bytes) of the components of struct timeval - - SIZEOF_tv_sec : constant := 8; -- tv_sec - SIZEOF_tv_usec : constant := 8; -- tv_usec - - -- Sizes of protocol specific address types (for sockaddr.sa_len) - - SIZEOF_sockaddr_in : constant := 16; -- struct sockaddr_in - SIZEOF_sockaddr_in6 : constant := 28; -- struct sockaddr_in6 - - -- Size of file descriptor sets - - SIZEOF_fd_set : constant := 256; -- fd_set - - -- Fields of struct hostent - - subtype H_Addrtype_T is Interfaces.C.int; - subtype H_Length_T is Interfaces.C.int; - - ---------------------------------------- - -- Properties of supported interfaces -- - ---------------------------------------- - - Need_Netdb_Buffer : constant := 0; -- Need buffer for Netdb ops - Has_Sockaddr_Len : constant := 0; -- Sockaddr has sa_len field - - Thread_Blocking_IO : constant Boolean := True; - -- Set False for contexts where socket i/o are process blocking - -end GNAT.Sockets.Constants; diff --git a/gcc/ada/g-soccon-hpux.ads b/gcc/ada/g-soccon-hpux.ads deleted file mode 100644 index c49075d..0000000 --- a/gcc/ada/g-soccon-hpux.ads +++ /dev/null @@ -1,208 +0,0 @@ ------------------------------------------------------------------------------- --- -- --- GNAT COMPILER COMPONENTS -- --- -- --- G N A T . S O C K E T S . C O N S T A N T S -- --- -- --- S p e c -- --- -- --- Copyright (C) 2000-2008, Free Software Foundation, Inc. -- --- -- --- GNAT is free software; you can redistribute it and/or modify it under -- --- terms of the GNU General Public License as published by the Free Soft- -- --- ware Foundation; either version 2, or (at your option) any later ver- -- --- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- --- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- --- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- --- for more details. You should have received a copy of the GNU General -- --- Public License distributed with GNAT; see file COPYING. If not, write -- --- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, -- --- Boston, MA 02110-1301, USA. -- --- -- --- As a special exception, if other files instantiate generics from this -- --- unit, or you link this unit with other files to produce an executable, -- --- this unit does not by itself cause the resulting executable to be -- --- covered by the GNU General Public License. This exception does not -- --- however invalidate any other reasons why the executable file might be -- --- covered by the GNU Public License. -- --- -- --- GNAT was originally developed by the GNAT team at New York University. -- --- Extensive contributions were provided by Ada Core Technologies Inc. -- --- -- ------------------------------------------------------------------------------- - --- This package provides target dependent definitions of constant for use --- by the GNAT.Sockets package (g-socket.ads). This package should not be --- directly with'ed by an applications program. - --- This is the version for hppa1.1-hp-hpux11.00 --- This file is generated automatically, do not modify it by hand! Instead, --- make changes to gen-soccon.c and re-run it on each target. - -with Interfaces.C; -package GNAT.Sockets.Constants is - - -------------- - -- Families -- - -------------- - - AF_INET : constant := 2; -- IPv4 address family - AF_INET6 : constant := -1; -- IPv6 address family - - ----------- - -- Modes -- - ----------- - - SOCK_STREAM : constant := 1; -- Stream socket - SOCK_DGRAM : constant := 2; -- Datagram socket - - ------------------- - -- Socket errors -- - ------------------- - - EACCES : constant := 13; -- Permission denied - EADDRINUSE : constant := 226; -- Address already in use - EADDRNOTAVAIL : constant := 227; -- Cannot assign address - EAFNOSUPPORT : constant := 225; -- Addr family not supported - EALREADY : constant := 244; -- Operation in progress - EBADF : constant := 9; -- Bad file descriptor - ECONNABORTED : constant := 231; -- Connection aborted - ECONNREFUSED : constant := 239; -- Connection refused - ECONNRESET : constant := 232; -- Connection reset by peer - EDESTADDRREQ : constant := 217; -- Destination addr required - EFAULT : constant := 14; -- Bad address - EHOSTDOWN : constant := 241; -- Host is down - EHOSTUNREACH : constant := 242; -- No route to host - EINPROGRESS : constant := 245; -- Operation now in progress - EINTR : constant := 4; -- Interrupted system call - EINVAL : constant := 22; -- Invalid argument - EIO : constant := 5; -- Input output error - EISCONN : constant := 234; -- Socket already connected - ELOOP : constant := 249; -- Too many symbolic links - EMFILE : constant := 24; -- Too many open files - EMSGSIZE : constant := 218; -- Message too long - ENAMETOOLONG : constant := 248; -- Name too long - ENETDOWN : constant := 228; -- Network is down - ENETRESET : constant := 230; -- Disconn. on network reset - ENETUNREACH : constant := 229; -- Network is unreachable - ENOBUFS : constant := 233; -- No buffer space available - ENOPROTOOPT : constant := 220; -- Protocol not available - ENOTCONN : constant := 235; -- Socket not connected - ENOTSOCK : constant := 216; -- Operation on non socket - EOPNOTSUPP : constant := 223; -- Operation not supported - EPFNOSUPPORT : constant := 224; -- Unknown protocol family - EPROTONOSUPPORT : constant := 221; -- Unknown protocol - EPROTOTYPE : constant := 219; -- Unknown protocol type - ESHUTDOWN : constant := 236; -- Cannot send once shutdown - ESOCKTNOSUPPORT : constant := 222; -- Socket type not supported - ETIMEDOUT : constant := 238; -- Connection timed out - ETOOMANYREFS : constant := 237; -- Too many references - EWOULDBLOCK : constant := 246; -- Operation would block - - ----------------- - -- Host errors -- - ----------------- - - HOST_NOT_FOUND : constant := 1; -- Unknown host - TRY_AGAIN : constant := 2; -- Host name lookup failure - NO_DATA : constant := 4; -- No data record for name - NO_RECOVERY : constant := 3; -- Non recoverable errors - - ------------------- - -- Control flags -- - ------------------- - - FIONBIO : constant := -2147195266; -- Set/clear non-blocking io - FIONREAD : constant := 1074030207; -- How many bytes to read - - -------------------- - -- Shutdown modes -- - -------------------- - - SHUT_RD : constant := 0; -- No more recv - SHUT_WR : constant := 1; -- No more send - SHUT_RDWR : constant := 2; -- No more recv/send - - --------------------- - -- Protocol levels -- - --------------------- - - SOL_SOCKET : constant := 65535; -- Options for socket level - IPPROTO_IP : constant := 0; -- Dummy protocol for IP - IPPROTO_UDP : constant := 17; -- UDP - IPPROTO_TCP : constant := 6; -- TCP - - ------------------- - -- Request flags -- - ------------------- - - MSG_OOB : constant := 1; -- Process out-of-band data - MSG_PEEK : constant := 2; -- Peek at incoming data - MSG_EOR : constant := 8; -- Send end of record - MSG_WAITALL : constant := 64; -- Wait for full reception - MSG_NOSIGNAL : constant := -1; -- No SIGPIPE on send - MSG_Forced_Flags : constant := 0; - -- Flags set on all send(2) calls - - -------------------- - -- Socket options -- - -------------------- - - TCP_NODELAY : constant := 1; -- Do not coalesce packets - SO_REUSEADDR : constant := 4; -- Bind reuse local address - SO_REUSEPORT : constant := 512; -- Bind reuse port number - SO_KEEPALIVE : constant := 8; -- Enable keep-alive msgs - SO_LINGER : constant := 128; -- Defer close to flush data - SO_BROADCAST : constant := 32; -- Can send broadcast msgs - SO_SNDBUF : constant := 4097; -- Set/get send buffer size - SO_RCVBUF : constant := 4098; -- Set/get recv buffer size - SO_SNDTIMEO : constant := 4101; -- Emission timeout - SO_RCVTIMEO : constant := 4102; -- Reception timeout - SO_ERROR : constant := 4103; -- Get/clear error status - IP_MULTICAST_IF : constant := 2; -- Set/get mcast interface - IP_MULTICAST_TTL : constant := 3; -- Set/get multicast TTL - IP_MULTICAST_LOOP : constant := 4; -- Set/get mcast loopback - IP_ADD_MEMBERSHIP : constant := 5; -- Join a multicast group - IP_DROP_MEMBERSHIP : constant := 6; -- Leave a multicast group - IP_PKTINFO : constant := -1; -- Get datagram info - - ------------------- - -- System limits -- - ------------------- - - IOV_MAX : constant := 16; -- Maximum writev iovcnt - - ---------------------- - -- Type definitions -- - ---------------------- - - -- Sizes (in bytes) of the components of struct timeval - - SIZEOF_tv_sec : constant := 4; -- tv_sec - SIZEOF_tv_usec : constant := 4; -- tv_usec - - -- Sizes of protocol specific address types (for sockaddr.sa_len) - - SIZEOF_sockaddr_in : constant := 16; -- struct sockaddr_in - SIZEOF_sockaddr_in6 : constant := 0; -- struct sockaddr_in6 - - -- Size of file descriptor sets - - SIZEOF_fd_set : constant := 256; -- fd_set - - -- Fields of struct hostent - - subtype H_Addrtype_T is Interfaces.C.int; - subtype H_Length_T is Interfaces.C.int; - - ---------------------------------------- - -- Properties of supported interfaces -- - ---------------------------------------- - - Need_Netdb_Buffer : constant := 0; -- Need buffer for Netdb ops - Has_Sockaddr_Len : constant := 0; -- Sockaddr has sa_len field - - Thread_Blocking_IO : constant Boolean := True; - -- Set False for contexts where socket i/o are process blocking - -end GNAT.Sockets.Constants; diff --git a/gcc/ada/g-soccon-irix.ads b/gcc/ada/g-soccon-irix.ads deleted file mode 100644 index 3952a59..0000000 --- a/gcc/ada/g-soccon-irix.ads +++ /dev/null @@ -1,208 +0,0 @@ ------------------------------------------------------------------------------- --- -- --- GNAT COMPILER COMPONENTS -- --- -- --- G N A T . S O C K E T S . C O N S T A N T S -- --- -- --- S p e c -- --- -- --- Copyright (C) 2000-2008, Free Software Foundation, Inc. -- --- -- --- GNAT is free software; you can redistribute it and/or modify it under -- --- terms of the GNU General Public License as published by the Free Soft- -- --- ware Foundation; either version 2, or (at your option) any later ver- -- --- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- --- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- --- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- --- for more details. You should have received a copy of the GNU General -- --- Public License distributed with GNAT; see file COPYING. If not, write -- --- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, -- --- Boston, MA 02110-1301, USA. -- --- -- --- As a special exception, if other files instantiate generics from this -- --- unit, or you link this unit with other files to produce an executable, -- --- this unit does not by itself cause the resulting executable to be -- --- covered by the GNU General Public License. This exception does not -- --- however invalidate any other reasons why the executable file might be -- --- covered by the GNU Public License. -- --- -- --- GNAT was originally developed by the GNAT team at New York University. -- --- Extensive contributions were provided by Ada Core Technologies Inc. -- --- -- ------------------------------------------------------------------------------- - --- This package provides target dependent definitions of constant for use --- by the GNAT.Sockets package (g-socket.ads). This package should not be --- directly with'ed by an applications program. - --- This is the version for mips-sgi-irix6.5 --- This file is generated automatically, do not modify it by hand! Instead, --- make changes to gen-soccon.c and re-run it on each target. - -with Interfaces.C; -package GNAT.Sockets.Constants is - - -------------- - -- Families -- - -------------- - - AF_INET : constant := 2; -- IPv4 address family - AF_INET6 : constant := 24; -- IPv6 address family - - ----------- - -- Modes -- - ----------- - - SOCK_STREAM : constant := 2; -- Stream socket - SOCK_DGRAM : constant := 1; -- Datagram socket - - ------------------- - -- Socket errors -- - ------------------- - - EACCES : constant := 13; -- Permission denied - EADDRINUSE : constant := 125; -- Address already in use - EADDRNOTAVAIL : constant := 126; -- Cannot assign address - EAFNOSUPPORT : constant := 124; -- Addr family not supported - EALREADY : constant := 149; -- Operation in progress - EBADF : constant := 9; -- Bad file descriptor - ECONNABORTED : constant := 130; -- Connection aborted - ECONNREFUSED : constant := 146; -- Connection refused - ECONNRESET : constant := 131; -- Connection reset by peer - EDESTADDRREQ : constant := 96; -- Destination addr required - EFAULT : constant := 14; -- Bad address - EHOSTDOWN : constant := 147; -- Host is down - EHOSTUNREACH : constant := 148; -- No route to host - EINPROGRESS : constant := 150; -- Operation now in progress - EINTR : constant := 4; -- Interrupted system call - EINVAL : constant := 22; -- Invalid argument - EIO : constant := 5; -- Input output error - EISCONN : constant := 133; -- Socket already connected - ELOOP : constant := 90; -- Too many symbolic links - EMFILE : constant := 24; -- Too many open files - EMSGSIZE : constant := 97; -- Message too long - ENAMETOOLONG : constant := 78; -- Name too long - ENETDOWN : constant := 127; -- Network is down - ENETRESET : constant := 129; -- Disconn. on network reset - ENETUNREACH : constant := 128; -- Network is unreachable - ENOBUFS : constant := 132; -- No buffer space available - ENOPROTOOPT : constant := 99; -- Protocol not available - ENOTCONN : constant := 134; -- Socket not connected - ENOTSOCK : constant := 95; -- Operation on non socket - EOPNOTSUPP : constant := 122; -- Operation not supported - EPFNOSUPPORT : constant := 123; -- Unknown protocol family - EPROTONOSUPPORT : constant := 120; -- Unknown protocol - EPROTOTYPE : constant := 98; -- Unknown protocol type - ESHUTDOWN : constant := 143; -- Cannot send once shutdown - ESOCKTNOSUPPORT : constant := 121; -- Socket type not supported - ETIMEDOUT : constant := 145; -- Connection timed out - ETOOMANYREFS : constant := 144; -- Too many references - EWOULDBLOCK : constant := 11; -- Operation would block - - ----------------- - -- Host errors -- - ----------------- - - HOST_NOT_FOUND : constant := 1; -- Unknown host - TRY_AGAIN : constant := 2; -- Host name lookup failure - NO_DATA : constant := 4; -- No data record for name - NO_RECOVERY : constant := 3; -- Non recoverable errors - - ------------------- - -- Control flags -- - ------------------- - - FIONBIO : constant := -2147195266; -- Set/clear non-blocking io - FIONREAD : constant := 1074030207; -- How many bytes to read - - -------------------- - -- Shutdown modes -- - -------------------- - - SHUT_RD : constant := 0; -- No more recv - SHUT_WR : constant := 1; -- No more send - SHUT_RDWR : constant := 2; -- No more recv/send - - --------------------- - -- Protocol levels -- - --------------------- - - SOL_SOCKET : constant := 65535; -- Options for socket level - IPPROTO_IP : constant := 0; -- Dummy protocol for IP - IPPROTO_UDP : constant := 17; -- UDP - IPPROTO_TCP : constant := 6; -- TCP - - ------------------- - -- Request flags -- - ------------------- - - MSG_OOB : constant := 1; -- Process out-of-band data - MSG_PEEK : constant := 2; -- Peek at incoming data - MSG_EOR : constant := 8; -- Send end of record - MSG_WAITALL : constant := 64; -- Wait for full reception - MSG_NOSIGNAL : constant := -1; -- No SIGPIPE on send - MSG_Forced_Flags : constant := 0; - -- Flags set on all send(2) calls - - -------------------- - -- Socket options -- - -------------------- - - TCP_NODELAY : constant := 1; -- Do not coalesce packets - SO_REUSEADDR : constant := 4; -- Bind reuse local address - SO_REUSEPORT : constant := 512; -- Bind reuse port number - SO_KEEPALIVE : constant := 8; -- Enable keep-alive msgs - SO_LINGER : constant := 128; -- Defer close to flush data - SO_BROADCAST : constant := 32; -- Can send broadcast msgs - SO_SNDBUF : constant := 4097; -- Set/get send buffer size - SO_RCVBUF : constant := 4098; -- Set/get recv buffer size - SO_SNDTIMEO : constant := 4101; -- Emission timeout - SO_RCVTIMEO : constant := 4102; -- Reception timeout - SO_ERROR : constant := 4103; -- Get/clear error status - IP_MULTICAST_IF : constant := 20; -- Set/get mcast interface - IP_MULTICAST_TTL : constant := 21; -- Set/get multicast TTL - IP_MULTICAST_LOOP : constant := 22; -- Set/get mcast loopback - IP_ADD_MEMBERSHIP : constant := 23; -- Join a multicast group - IP_DROP_MEMBERSHIP : constant := 24; -- Leave a multicast group - IP_PKTINFO : constant := -1; -- Get datagram info - - ------------------- - -- System limits -- - ------------------- - - IOV_MAX : constant := 2147483647; -- Maximum writev iovcnt - - ---------------------- - -- Type definitions -- - ---------------------- - - -- Sizes (in bytes) of the components of struct timeval - - SIZEOF_tv_sec : constant := 4; -- tv_sec - SIZEOF_tv_usec : constant := 4; -- tv_usec - - -- Sizes of protocol specific address types (for sockaddr.sa_len) - - SIZEOF_sockaddr_in : constant := 16; -- struct sockaddr_in - SIZEOF_sockaddr_in6 : constant := 32; -- struct sockaddr_in6 - - -- Size of file descriptor sets - - SIZEOF_fd_set : constant := 128; -- fd_set - - -- Fields of struct hostent - - subtype H_Addrtype_T is Interfaces.C.int; - subtype H_Length_T is Interfaces.C.int; - - ---------------------------------------- - -- Properties of supported interfaces -- - ---------------------------------------- - - Need_Netdb_Buffer : constant := 1; -- Need buffer for Netdb ops - Has_Sockaddr_Len : constant := 0; -- Sockaddr has sa_len field - - Thread_Blocking_IO : constant Boolean := True; - -- Set False for contexts where socket i/o are process blocking - -end GNAT.Sockets.Constants; diff --git a/gcc/ada/g-soccon-linux-64.ads b/gcc/ada/g-soccon-linux-64.ads deleted file mode 100644 index 3d82b32..0000000 --- a/gcc/ada/g-soccon-linux-64.ads +++ /dev/null @@ -1,208 +0,0 @@ ------------------------------------------------------------------------------- --- -- --- GNAT COMPILER COMPONENTS -- --- -- --- G N A T . S O C K E T S . C O N S T A N T S -- --- -- --- S p e c -- --- -- --- Copyright (C) 2000-2008, Free Software Foundation, Inc. -- --- -- --- GNAT is free software; you can redistribute it and/or modify it under -- --- terms of the GNU General Public License as published by the Free Soft- -- --- ware Foundation; either version 2, or (at your option) any later ver- -- --- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- --- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- --- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- --- for more details. You should have received a copy of the GNU General -- --- Public License distributed with GNAT; see file COPYING. If not, write -- --- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, -- --- Boston, MA 02110-1301, USA. -- --- -- --- As a special exception, if other files instantiate generics from this -- --- unit, or you link this unit with other files to produce an executable, -- --- this unit does not by itself cause the resulting executable to be -- --- covered by the GNU General Public License. This exception does not -- --- however invalidate any other reasons why the executable file might be -- --- covered by the GNU Public License. -- --- -- --- GNAT was originally developed by the GNAT team at New York University. -- --- Extensive contributions were provided by Ada Core Technologies Inc. -- --- -- ------------------------------------------------------------------------------- - --- This package provides target dependent definitions of constant for use --- by the GNAT.Sockets package (g-socket.ads). This package should not be --- directly with'ed by an applications program. - --- This is the version for x86_64-pc-linux-gnu --- This file is generated automatically, do not modify it by hand! Instead, --- make changes to gen-soccon.c and re-run it on each target. - -with Interfaces.C; -package GNAT.Sockets.Constants is - - -------------- - -- Families -- - -------------- - - AF_INET : constant := 2; -- IPv4 address family - AF_INET6 : constant := 10; -- IPv6 address family - - ----------- - -- Modes -- - ----------- - - SOCK_STREAM : constant := 1; -- Stream socket - SOCK_DGRAM : constant := 2; -- Datagram socket - - ------------------- - -- Socket errors -- - ------------------- - - EACCES : constant := 13; -- Permission denied - EADDRINUSE : constant := 98; -- Address already in use - EADDRNOTAVAIL : constant := 99; -- Cannot assign address - EAFNOSUPPORT : constant := 97; -- Addr family not supported - EALREADY : constant := 114; -- Operation in progress - EBADF : constant := 9; -- Bad file descriptor - ECONNABORTED : constant := 103; -- Connection aborted - ECONNREFUSED : constant := 111; -- Connection refused - ECONNRESET : constant := 104; -- Connection reset by peer - EDESTADDRREQ : constant := 89; -- Destination addr required - EFAULT : constant := 14; -- Bad address - EHOSTDOWN : constant := 112; -- Host is down - EHOSTUNREACH : constant := 113; -- No route to host - EINPROGRESS : constant := 115; -- Operation now in progress - EINTR : constant := 4; -- Interrupted system call - EINVAL : constant := 22; -- Invalid argument - EIO : constant := 5; -- Input output error - EISCONN : constant := 106; -- Socket already connected - ELOOP : constant := 40; -- Too many symbolic links - EMFILE : constant := 24; -- Too many open files - EMSGSIZE : constant := 90; -- Message too long - ENAMETOOLONG : constant := 36; -- Name too long - ENETDOWN : constant := 100; -- Network is down - ENETRESET : constant := 102; -- Disconn. on network reset - ENETUNREACH : constant := 101; -- Network is unreachable - ENOBUFS : constant := 105; -- No buffer space available - ENOPROTOOPT : constant := 92; -- Protocol not available - ENOTCONN : constant := 107; -- Socket not connected - ENOTSOCK : constant := 88; -- Operation on non socket - EOPNOTSUPP : constant := 95; -- Operation not supported - EPFNOSUPPORT : constant := 96; -- Unknown protocol family - EPROTONOSUPPORT : constant := 93; -- Unknown protocol - EPROTOTYPE : constant := 91; -- Unknown protocol type - ESHUTDOWN : constant := 108; -- Cannot send once shutdown - ESOCKTNOSUPPORT : constant := 94; -- Socket type not supported - ETIMEDOUT : constant := 110; -- Connection timed out - ETOOMANYREFS : constant := 109; -- Too many references - EWOULDBLOCK : constant := 11; -- Operation would block - - ----------------- - -- Host errors -- - ----------------- - - HOST_NOT_FOUND : constant := 1; -- Unknown host - TRY_AGAIN : constant := 2; -- Host name lookup failure - NO_DATA : constant := 4; -- No data record for name - NO_RECOVERY : constant := 3; -- Non recoverable errors - - ------------------- - -- Control flags -- - ------------------- - - FIONBIO : constant := 21537; -- Set/clear non-blocking io - FIONREAD : constant := 21531; -- How many bytes to read - - -------------------- - -- Shutdown modes -- - -------------------- - - SHUT_RD : constant := 0; -- No more recv - SHUT_WR : constant := 1; -- No more send - SHUT_RDWR : constant := 2; -- No more recv/send - - --------------------- - -- Protocol levels -- - --------------------- - - SOL_SOCKET : constant := 1; -- Options for socket level - IPPROTO_IP : constant := 0; -- Dummy protocol for IP - IPPROTO_UDP : constant := 17; -- UDP - IPPROTO_TCP : constant := 6; -- TCP - - ------------------- - -- Request flags -- - ------------------- - - MSG_OOB : constant := 1; -- Process out-of-band data - MSG_PEEK : constant := 2; -- Peek at incoming data - MSG_EOR : constant := 128; -- Send end of record - MSG_WAITALL : constant := 256; -- Wait for full reception - MSG_NOSIGNAL : constant := 16384; -- No SIGPIPE on send - MSG_Forced_Flags : constant := MSG_NOSIGNAL; - -- Flags set on all send(2) calls - - -------------------- - -- Socket options -- - -------------------- - - TCP_NODELAY : constant := 1; -- Do not coalesce packets - SO_REUSEADDR : constant := 2; -- Bind reuse local address - SO_REUSEPORT : constant := -1; -- Bind reuse port number - SO_KEEPALIVE : constant := 9; -- Enable keep-alive msgs - SO_LINGER : constant := 13; -- Defer close to flush data - SO_BROADCAST : constant := 6; -- Can send broadcast msgs - SO_SNDBUF : constant := 7; -- Set/get send buffer size - SO_RCVBUF : constant := 8; -- Set/get recv buffer size - SO_SNDTIMEO : constant := 21; -- Emission timeout - SO_RCVTIMEO : constant := 20; -- Reception timeout - SO_ERROR : constant := 4; -- Get/clear error status - IP_MULTICAST_IF : constant := 32; -- Set/get mcast interface - IP_MULTICAST_TTL : constant := 33; -- Set/get multicast TTL - IP_MULTICAST_LOOP : constant := 34; -- Set/get mcast loopback - IP_ADD_MEMBERSHIP : constant := 35; -- Join a multicast group - IP_DROP_MEMBERSHIP : constant := 36; -- Leave a multicast group - IP_PKTINFO : constant := 8; -- Get datagram info - - ------------------- - -- System limits -- - ------------------- - - IOV_MAX : constant := 2147483647; -- Maximum writev iovcnt - - ---------------------- - -- Type definitions -- - ---------------------- - - -- Sizes (in bytes) of the components of struct timeval - - SIZEOF_tv_sec : constant := 8; -- tv_sec - SIZEOF_tv_usec : constant := 8; -- tv_usec - - -- Sizes of protocol specific address types (for sockaddr.sa_len) - - SIZEOF_sockaddr_in : constant := 16; -- struct sockaddr_in - SIZEOF_sockaddr_in6 : constant := 28; -- struct sockaddr_in6 - - -- Size of file descriptor sets - - SIZEOF_fd_set : constant := 128; -- fd_set - - -- Fields of struct hostent - - subtype H_Addrtype_T is Interfaces.C.int; - subtype H_Length_T is Interfaces.C.int; - - ---------------------------------------- - -- Properties of supported interfaces -- - ---------------------------------------- - - Need_Netdb_Buffer : constant := 1; -- Need buffer for Netdb ops - Has_Sockaddr_Len : constant := 0; -- Sockaddr has sa_len field - - Thread_Blocking_IO : constant Boolean := True; - -- Set False for contexts where socket i/o are process blocking - -end GNAT.Sockets.Constants; diff --git a/gcc/ada/g-soccon-linux-mips.ads b/gcc/ada/g-soccon-linux-mips.ads deleted file mode 100644 index 0f8822e..0000000 --- a/gcc/ada/g-soccon-linux-mips.ads +++ /dev/null @@ -1,197 +0,0 @@ ------------------------------------------------------------------------------- --- -- --- GNAT COMPILER COMPONENTS -- --- -- --- G N A T . S O C K E T S . C O N S T A N T S -- --- -- --- S p e c -- --- -- --- Copyright (C) 2000-2008, Free Software Foundation, Inc. -- --- -- --- GNAT is free software; you can redistribute it and/or modify it under -- --- terms of the GNU General Public License as published by the Free Soft- -- --- ware Foundation; either version 2, or (at your option) any later ver- -- --- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- --- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- --- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- --- for more details. You should have received a copy of the GNU General -- --- Public License distributed with GNAT; see file COPYING. If not, write -- --- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, -- --- Boston, MA 02110-1301, USA. -- --- -- --- As a special exception, if other files instantiate generics from this -- --- unit, or you link this unit with other files to produce an executable, -- --- this unit does not by itself cause the resulting executable to be -- --- covered by the GNU General Public License. This exception does not -- --- however invalidate any other reasons why the executable file might be -- --- covered by the GNU Public License. -- --- -- --- GNAT was originally developed by the GNAT team at New York University. -- --- Extensive contributions were provided by Ada Core Technologies Inc. -- --- -- ------------------------------------------------------------------------------- - --- This package provides target dependent definitions of constant for use --- by the GNAT.Sockets package (g-socket.ads). This package should not be --- directly with'ed by an applications program. - --- This is the version for mips-linux, manually edited for the first shot --- no mips hardware at hand --- using http://www.gelato.unsw.edu.au/lxr/source/include/asm-mips/socket.h --- in order to find different values. --- This file is generated automatically, do not modify it by hand! Instead, --- make changes to gen-soccon.c and re-run it on each target. - -package GNAT.Sockets.Constants is - - -------------- - -- Families -- - -------------- - - AF_INET : constant := 2; -- IPv4 address family - AF_INET6 : constant := 10; -- IPv6 address family - - ----------- - -- Modes -- - ----------- - - SOCK_STREAM : constant := 1; -- Stream socket - SOCK_DGRAM : constant := 2; -- Datagram socket - - ------------------- - -- Socket errors -- - ------------------- - - EACCES : constant := 13; -- Permission denied - EADDRINUSE : constant := 98; -- Address already in use - EADDRNOTAVAIL : constant := 99; -- Cannot assign address - EAFNOSUPPORT : constant := 97; -- Addr family not supported - EALREADY : constant := 114; -- Operation in progress - EBADF : constant := 9; -- Bad file descriptor - ECONNABORTED : constant := 103; -- Connection aborted - ECONNREFUSED : constant := 111; -- Connection refused - ECONNRESET : constant := 104; -- Connection reset by peer - EDESTADDRREQ : constant := 89; -- Destination addr required - EFAULT : constant := 14; -- Bad address - EHOSTDOWN : constant := 112; -- Host is down - EHOSTUNREACH : constant := 113; -- No route to host - EINPROGRESS : constant := 115; -- Operation now in progress - EINTR : constant := 4; -- Interrupted system call - EINVAL : constant := 22; -- Invalid argument - EIO : constant := 5; -- Input output error - EISCONN : constant := 106; -- Socket already connected - ELOOP : constant := 40; -- Too many symbolic links - EMFILE : constant := 24; -- Too many open files - EMSGSIZE : constant := 90; -- Message too long - ENAMETOOLONG : constant := 36; -- Name too long - ENETDOWN : constant := 100; -- Network is down - ENETRESET : constant := 102; -- Disconn. on network reset - ENETUNREACH : constant := 101; -- Network is unreachable - ENOBUFS : constant := 105; -- No buffer space available - ENOPROTOOPT : constant := 92; -- Protocol not available - ENOTCONN : constant := 107; -- Socket not connected - ENOTSOCK : constant := 88; -- Operation on non socket - EOPNOTSUPP : constant := 95; -- Operation not supported - EPFNOSUPPORT : constant := 96; -- Unknown protocol family - EPROTONOSUPPORT : constant := 93; -- Unknown protocol - EPROTOTYPE : constant := 91; -- Unknown protocol type - ESHUTDOWN : constant := 108; -- Cannot send once shutdown - ESOCKTNOSUPPORT : constant := 94; -- Socket type not supported - ETIMEDOUT : constant := 110; -- Connection timed out - ETOOMANYREFS : constant := 109; -- Too many references - EWOULDBLOCK : constant := 11; -- Operation would block - - ----------------- - -- Host errors -- - ----------------- - - HOST_NOT_FOUND : constant := 1; -- Unknown host - TRY_AGAIN : constant := 2; -- Host name lookup failure - NO_DATA : constant := 4; -- No data record for name - NO_RECOVERY : constant := 3; -- Non recoverable errors - - ------------------- - -- Control flags -- - ------------------- - - FIONBIO : constant := 16#667e#; -- Set/clear non-blocking io - FIONREAD : constant := 16#467f#; -- How many bytes to read - - -------------------- - -- Shutdown modes -- - -------------------- - - SHUT_RD : constant := 0; -- No more recv - SHUT_WR : constant := 1; -- No more send - SHUT_RDWR : constant := 2; -- No more recv/send - - --------------------- - -- Protocol levels -- - --------------------- - - SOL_SOCKET : constant := 1; -- Options for socket level - IPPROTO_IP : constant := 0; -- Dummy protocol for IP - IPPROTO_UDP : constant := 17; -- UDP - IPPROTO_TCP : constant := 6; -- TCP - - ------------------- - -- Request flags -- - ------------------- - - MSG_OOB : constant := 1; -- Process out-of-band data - MSG_PEEK : constant := 2; -- Peek at incoming data - MSG_EOR : constant := 128; -- Send end of record - MSG_WAITALL : constant := 256; -- Wait for full reception - MSG_NOSIGNAL : constant := 16384; -- No SIGPIPE on send - MSG_Forced_Flags : constant := MSG_NOSIGNAL; - -- Flags set on all send(2) calls - - -------------------- - -- Socket options -- - -------------------- - - TCP_NODELAY : constant := 1; -- Do not coalesce packets - SO_REUSEADDR : constant := 4; -- Bind reuse local address - SO_KEEPALIVE : constant := 8; -- Enable keep-alive msgs - SO_LINGER : constant := 16#80#; -- Defer close to flush data - SO_BROADCAST : constant := 16#20#; -- Can send broadcast msgs - SO_SNDBUF : constant := 16#1001#; -- Set/get send buffer size - SO_RCVBUF : constant := 16#1002#; -- Set/get recv buffer size - SO_SNDTIMEO : constant := 16#1005#; -- Emission timeout - SO_RCVTIMEO : constant := 16#1006#; -- Reception timeout - SO_ERROR : constant := 16#1007#; -- Get/clear error status - IP_MULTICAST_IF : constant := 32; -- Set/get mcast interface - IP_MULTICAST_TTL : constant := 33; -- Set/get multicast TTL - IP_MULTICAST_LOOP : constant := 34; -- Set/get mcast loopback - IP_ADD_MEMBERSHIP : constant := 35; -- Join a multicast group - IP_DROP_MEMBERSHIP : constant := 36; -- Leave a multicast group - - ------------------- - -- System limits -- - ------------------- - - IOV_MAX : constant := 2147483647; -- Maximum writev iovcnt - - ---------------------- - -- Type definitions -- - ---------------------- - - -- Sizes (in bytes) of the components of struct timeval - - SIZEOF_tv_sec : constant := 4; -- tv_sec - SIZEOF_tv_usec : constant := 4; -- tv_usec - - ---------------------------------------- - -- Properties of supported interfaces -- - ---------------------------------------- - - Need_Netdb_Buffer : constant := 1; -- Need buffer for Netdb ops - - ---------------------- - -- Additional flags -- - ---------------------- - - Thread_Blocking_IO : constant Boolean := True; - -- Set False for contexts where socket i/o are process blocking - -end GNAT.Sockets.Constants; diff --git a/gcc/ada/g-soccon-linux-ppc.ads b/gcc/ada/g-soccon-linux-ppc.ads deleted file mode 100644 index 7a8c2e2..0000000 --- a/gcc/ada/g-soccon-linux-ppc.ads +++ /dev/null @@ -1,208 +0,0 @@ ------------------------------------------------------------------------------- --- -- --- GNAT COMPILER COMPONENTS -- --- -- --- G N A T . S O C K E T S . C O N S T A N T S -- --- -- --- S p e c -- --- -- --- Copyright (C) 2000-2008, Free Software Foundation, Inc. -- --- -- --- GNAT is free software; you can redistribute it and/or modify it under -- --- terms of the GNU General Public License as published by the Free Soft- -- --- ware Foundation; either version 2, or (at your option) any later ver- -- --- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- --- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- --- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- --- for more details. You should have received a copy of the GNU General -- --- Public License distributed with GNAT; see file COPYING. If not, write -- --- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, -- --- Boston, MA 02110-1301, USA. -- --- -- --- As a special exception, if other files instantiate generics from this -- --- unit, or you link this unit with other files to produce an executable, -- --- this unit does not by itself cause the resulting executable to be -- --- covered by the GNU General Public License. This exception does not -- --- however invalidate any other reasons why the executable file might be -- --- covered by the GNU Public License. -- --- -- --- GNAT was originally developed by the GNAT team at New York University. -- --- Extensive contributions were provided by Ada Core Technologies Inc. -- --- -- ------------------------------------------------------------------------------- - --- This package provides target dependent definitions of constant for use --- by the GNAT.Sockets package (g-socket.ads). This package should not be --- directly with'ed by an applications program. - --- This is the version for ppc-unknown-linux-gnu --- This file is generated automatically, do not modify it by hand! Instead, --- make changes to gen-soccon.c and re-run it on each target. - -with Interfaces.C; -package GNAT.Sockets.Constants is - - -------------- - -- Families -- - -------------- - - AF_INET : constant := 2; -- IPv4 address family - AF_INET6 : constant := 10; -- IPv6 address family - - ----------- - -- Modes -- - ----------- - - SOCK_STREAM : constant := 1; -- Stream socket - SOCK_DGRAM : constant := 2; -- Datagram socket - - ------------------- - -- Socket errors -- - ------------------- - - EACCES : constant := 13; -- Permission denied - EADDRINUSE : constant := 98; -- Address already in use - EADDRNOTAVAIL : constant := 99; -- Cannot assign address - EAFNOSUPPORT : constant := 97; -- Addr family not supported - EALREADY : constant := 114; -- Operation in progress - EBADF : constant := 9; -- Bad file descriptor - ECONNABORTED : constant := 103; -- Connection aborted - ECONNREFUSED : constant := 111; -- Connection refused - ECONNRESET : constant := 104; -- Connection reset by peer - EDESTADDRREQ : constant := 89; -- Destination addr required - EFAULT : constant := 14; -- Bad address - EHOSTDOWN : constant := 112; -- Host is down - EHOSTUNREACH : constant := 113; -- No route to host - EINPROGRESS : constant := 115; -- Operation now in progress - EINTR : constant := 4; -- Interrupted system call - EINVAL : constant := 22; -- Invalid argument - EIO : constant := 5; -- Input output error - EISCONN : constant := 106; -- Socket already connected - ELOOP : constant := 40; -- Too many symbolic links - EMFILE : constant := 24; -- Too many open files - EMSGSIZE : constant := 90; -- Message too long - ENAMETOOLONG : constant := 36; -- Name too long - ENETDOWN : constant := 100; -- Network is down - ENETRESET : constant := 102; -- Disconn. on network reset - ENETUNREACH : constant := 101; -- Network is unreachable - ENOBUFS : constant := 105; -- No buffer space available - ENOPROTOOPT : constant := 92; -- Protocol not available - ENOTCONN : constant := 107; -- Socket not connected - ENOTSOCK : constant := 88; -- Operation on non socket - EOPNOTSUPP : constant := 95; -- Operation not supported - EPFNOSUPPORT : constant := 96; -- Unknown protocol family - EPROTONOSUPPORT : constant := 93; -- Unknown protocol - EPROTOTYPE : constant := 91; -- Unknown protocol type - ESHUTDOWN : constant := 108; -- Cannot send once shutdown - ESOCKTNOSUPPORT : constant := 94; -- Socket type not supported - ETIMEDOUT : constant := 110; -- Connection timed out - ETOOMANYREFS : constant := 109; -- Too many references - EWOULDBLOCK : constant := 11; -- Operation would block - - ----------------- - -- Host errors -- - ----------------- - - HOST_NOT_FOUND : constant := 1; -- Unknown host - TRY_AGAIN : constant := 2; -- Host name lookup failure - NO_DATA : constant := 4; -- No data record for name - NO_RECOVERY : constant := 3; -- Non recoverable errors - - ------------------- - -- Control flags -- - ------------------- - - FIONBIO : constant := -2147195266; -- Set/clear non-blocking io - FIONREAD : constant := 1074030207; -- How many bytes to read - - -------------------- - -- Shutdown modes -- - -------------------- - - SHUT_RD : constant := 0; -- No more recv - SHUT_WR : constant := 1; -- No more send - SHUT_RDWR : constant := 2; -- No more recv/send - - --------------------- - -- Protocol levels -- - --------------------- - - SOL_SOCKET : constant := 1; -- Options for socket level - IPPROTO_IP : constant := 0; -- Dummy protocol for IP - IPPROTO_UDP : constant := 17; -- UDP - IPPROTO_TCP : constant := 6; -- TCP - - ------------------- - -- Request flags -- - ------------------- - - MSG_OOB : constant := 1; -- Process out-of-band data - MSG_PEEK : constant := 2; -- Peek at incoming data - MSG_EOR : constant := 128; -- Send end of record - MSG_WAITALL : constant := 256; -- Wait for full reception - MSG_NOSIGNAL : constant := 16384; -- No SIGPIPE on send - MSG_Forced_Flags : constant := MSG_NOSIGNAL; - -- Flags set on all send(2) calls - - -------------------- - -- Socket options -- - -------------------- - - TCP_NODELAY : constant := 1; -- Do not coalesce packets - SO_REUSEADDR : constant := 2; -- Bind reuse local address - SO_REUSEPORT : constant := -1; -- Bind reuse port number - SO_KEEPALIVE : constant := 9; -- Enable keep-alive msgs - SO_LINGER : constant := 13; -- Defer close to flush data - SO_BROADCAST : constant := 6; -- Can send broadcast msgs - SO_SNDBUF : constant := 7; -- Set/get send buffer size - SO_RCVBUF : constant := 8; -- Set/get recv buffer size - SO_SNDTIMEO : constant := 19; -- Emission timeout - SO_RCVTIMEO : constant := 18; -- Reception timeout - SO_ERROR : constant := 4; -- Get/clear error status - IP_MULTICAST_IF : constant := 32; -- Set/get mcast interface - IP_MULTICAST_TTL : constant := 33; -- Set/get multicast TTL - IP_MULTICAST_LOOP : constant := 34; -- Set/get mcast loopback - IP_ADD_MEMBERSHIP : constant := 35; -- Join a multicast group - IP_DROP_MEMBERSHIP : constant := 36; -- Leave a multicast group - IP_PKTINFO : constant := 8; -- Get datagram info - - ------------------- - -- System limits -- - ------------------- - - IOV_MAX : constant := 2147483647; -- Maximum writev iovcnt - - ---------------------- - -- Type definitions -- - ---------------------- - - -- Sizes (in bytes) of the components of struct timeval - - SIZEOF_tv_sec : constant := 4; -- tv_sec - SIZEOF_tv_usec : constant := 4; -- tv_usec - - -- Sizes of protocol specific address types (for sockaddr.sa_len) - - SIZEOF_sockaddr_in : constant := 16; -- struct sockaddr_in - SIZEOF_sockaddr_in6 : constant := 28; -- struct sockaddr_in6 - - -- Size of file descriptor sets - - SIZEOF_fd_set : constant := 128; -- fd_set - - -- Fields of struct hostent - - subtype H_Addrtype_T is Interfaces.C.int; - subtype H_Length_T is Interfaces.C.int; - - ---------------------------------------- - -- Properties of supported interfaces -- - ---------------------------------------- - - Need_Netdb_Buffer : constant := 1; -- Need buffer for Netdb ops - Has_Sockaddr_Len : constant := 0; -- Sockaddr has sa_len field - - Thread_Blocking_IO : constant Boolean := True; - -- Set False for contexts where socket i/o are process blocking - -end GNAT.Sockets.Constants; diff --git a/gcc/ada/g-soccon-linux-x86.ads b/gcc/ada/g-soccon-linux-x86.ads deleted file mode 100644 index ed2b8d9..0000000 --- a/gcc/ada/g-soccon-linux-x86.ads +++ /dev/null @@ -1,208 +0,0 @@ ------------------------------------------------------------------------------- --- -- --- GNAT COMPILER COMPONENTS -- --- -- --- G N A T . S O C K E T S . C O N S T A N T S -- --- -- --- S p e c -- --- -- --- Copyright (C) 2000-2008, Free Software Foundation, Inc. -- --- -- --- GNAT is free software; you can redistribute it and/or modify it under -- --- terms of the GNU General Public License as published by the Free Soft- -- --- ware Foundation; either version 2, or (at your option) any later ver- -- --- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- --- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- --- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- --- for more details. You should have received a copy of the GNU General -- --- Public License distributed with GNAT; see file COPYING. If not, write -- --- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, -- --- Boston, MA 02110-1301, USA. -- --- -- --- As a special exception, if other files instantiate generics from this -- --- unit, or you link this unit with other files to produce an executable, -- --- this unit does not by itself cause the resulting executable to be -- --- covered by the GNU General Public License. This exception does not -- --- however invalidate any other reasons why the executable file might be -- --- covered by the GNU Public License. -- --- -- --- GNAT was originally developed by the GNAT team at New York University. -- --- Extensive contributions were provided by Ada Core Technologies Inc. -- --- -- ------------------------------------------------------------------------------- - --- This package provides target dependent definitions of constant for use --- by the GNAT.Sockets package (g-socket.ads). This package should not be --- directly with'ed by an applications program. - --- This is the version for i686-pc-linux-gnu --- This file is generated automatically, do not modify it by hand! Instead, --- make changes to gen-soccon.c and re-run it on each target. - -with Interfaces.C; -package GNAT.Sockets.Constants is - - -------------- - -- Families -- - -------------- - - AF_INET : constant := 2; -- IPv4 address family - AF_INET6 : constant := 10; -- IPv6 address family - - ----------- - -- Modes -- - ----------- - - SOCK_STREAM : constant := 1; -- Stream socket - SOCK_DGRAM : constant := 2; -- Datagram socket - - ------------------- - -- Socket errors -- - ------------------- - - EACCES : constant := 13; -- Permission denied - EADDRINUSE : constant := 98; -- Address already in use - EADDRNOTAVAIL : constant := 99; -- Cannot assign address - EAFNOSUPPORT : constant := 97; -- Addr family not supported - EALREADY : constant := 114; -- Operation in progress - EBADF : constant := 9; -- Bad file descriptor - ECONNABORTED : constant := 103; -- Connection aborted - ECONNREFUSED : constant := 111; -- Connection refused - ECONNRESET : constant := 104; -- Connection reset by peer - EDESTADDRREQ : constant := 89; -- Destination addr required - EFAULT : constant := 14; -- Bad address - EHOSTDOWN : constant := 112; -- Host is down - EHOSTUNREACH : constant := 113; -- No route to host - EINPROGRESS : constant := 115; -- Operation now in progress - EINTR : constant := 4; -- Interrupted system call - EINVAL : constant := 22; -- Invalid argument - EIO : constant := 5; -- Input output error - EISCONN : constant := 106; -- Socket already connected - ELOOP : constant := 40; -- Too many symbolic links - EMFILE : constant := 24; -- Too many open files - EMSGSIZE : constant := 90; -- Message too long - ENAMETOOLONG : constant := 36; -- Name too long - ENETDOWN : constant := 100; -- Network is down - ENETRESET : constant := 102; -- Disconn. on network reset - ENETUNREACH : constant := 101; -- Network is unreachable - ENOBUFS : constant := 105; -- No buffer space available - ENOPROTOOPT : constant := 92; -- Protocol not available - ENOTCONN : constant := 107; -- Socket not connected - ENOTSOCK : constant := 88; -- Operation on non socket - EOPNOTSUPP : constant := 95; -- Operation not supported - EPFNOSUPPORT : constant := 96; -- Unknown protocol family - EPROTONOSUPPORT : constant := 93; -- Unknown protocol - EPROTOTYPE : constant := 91; -- Unknown protocol type - ESHUTDOWN : constant := 108; -- Cannot send once shutdown - ESOCKTNOSUPPORT : constant := 94; -- Socket type not supported - ETIMEDOUT : constant := 110; -- Connection timed out - ETOOMANYREFS : constant := 109; -- Too many references - EWOULDBLOCK : constant := 11; -- Operation would block - - ----------------- - -- Host errors -- - ----------------- - - HOST_NOT_FOUND : constant := 1; -- Unknown host - TRY_AGAIN : constant := 2; -- Host name lookup failure - NO_DATA : constant := 4; -- No data record for name - NO_RECOVERY : constant := 3; -- Non recoverable errors - - ------------------- - -- Control flags -- - ------------------- - - FIONBIO : constant := 21537; -- Set/clear non-blocking io - FIONREAD : constant := 21531; -- How many bytes to read - - -------------------- - -- Shutdown modes -- - -------------------- - - SHUT_RD : constant := 0; -- No more recv - SHUT_WR : constant := 1; -- No more send - SHUT_RDWR : constant := 2; -- No more recv/send - - --------------------- - -- Protocol levels -- - --------------------- - - SOL_SOCKET : constant := 1; -- Options for socket level - IPPROTO_IP : constant := 0; -- Dummy protocol for IP - IPPROTO_UDP : constant := 17; -- UDP - IPPROTO_TCP : constant := 6; -- TCP - - ------------------- - -- Request flags -- - ------------------- - - MSG_OOB : constant := 1; -- Process out-of-band data - MSG_PEEK : constant := 2; -- Peek at incoming data - MSG_EOR : constant := 128; -- Send end of record - MSG_WAITALL : constant := 256; -- Wait for full reception - MSG_NOSIGNAL : constant := 16384; -- No SIGPIPE on send - MSG_Forced_Flags : constant := MSG_NOSIGNAL; - -- Flags set on all send(2) calls - - -------------------- - -- Socket options -- - -------------------- - - TCP_NODELAY : constant := 1; -- Do not coalesce packets - SO_REUSEADDR : constant := 2; -- Bind reuse local address - SO_REUSEPORT : constant := -1; -- Bind reuse port number - SO_KEEPALIVE : constant := 9; -- Enable keep-alive msgs - SO_LINGER : constant := 13; -- Defer close to flush data - SO_BROADCAST : constant := 6; -- Can send broadcast msgs - SO_SNDBUF : constant := 7; -- Set/get send buffer size - SO_RCVBUF : constant := 8; -- Set/get recv buffer size - SO_SNDTIMEO : constant := 21; -- Emission timeout - SO_RCVTIMEO : constant := 20; -- Reception timeout - SO_ERROR : constant := 4; -- Get/clear error status - IP_MULTICAST_IF : constant := 32; -- Set/get mcast interface - IP_MULTICAST_TTL : constant := 33; -- Set/get multicast TTL - IP_MULTICAST_LOOP : constant := 34; -- Set/get mcast loopback - IP_ADD_MEMBERSHIP : constant := 35; -- Join a multicast group - IP_DROP_MEMBERSHIP : constant := 36; -- Leave a multicast group - IP_PKTINFO : constant := 8; -- Get datagram info - - ------------------- - -- System limits -- - ------------------- - - IOV_MAX : constant := 2147483647; -- Maximum writev iovcnt - - ---------------------- - -- Type definitions -- - ---------------------- - - -- Sizes (in bytes) of the components of struct timeval - - SIZEOF_tv_sec : constant := 4; -- tv_sec - SIZEOF_tv_usec : constant := 4; -- tv_usec - - -- Sizes of protocol specific address types (for sockaddr.sa_len) - - SIZEOF_sockaddr_in : constant := 16; -- struct sockaddr_in - SIZEOF_sockaddr_in6 : constant := 28; -- struct sockaddr_in6 - - -- Size of file descriptor sets - - SIZEOF_fd_set : constant := 128; -- fd_set - - -- Fields of struct hostent - - subtype H_Addrtype_T is Interfaces.C.int; - subtype H_Length_T is Interfaces.C.int; - - ---------------------------------------- - -- Properties of supported interfaces -- - ---------------------------------------- - - Need_Netdb_Buffer : constant := 1; -- Need buffer for Netdb ops - Has_Sockaddr_Len : constant := 0; -- Sockaddr has sa_len field - - Thread_Blocking_IO : constant Boolean := True; - -- Set False for contexts where socket i/o are process blocking - -end GNAT.Sockets.Constants; diff --git a/gcc/ada/g-soccon-lynxos.ads b/gcc/ada/g-soccon-lynxos.ads deleted file mode 100644 index 04c75bf..0000000 --- a/gcc/ada/g-soccon-lynxos.ads +++ /dev/null @@ -1,208 +0,0 @@ ------------------------------------------------------------------------------- --- -- --- GNAT COMPILER COMPONENTS -- --- -- --- G N A T . S O C K E T S . C O N S T A N T S -- --- -- --- S p e c -- --- -- --- Copyright (C) 2000-2008, Free Software Foundation, Inc. -- --- -- --- GNAT is free software; you can redistribute it and/or modify it under -- --- terms of the GNU General Public License as published by the Free Soft- -- --- ware Foundation; either version 2, or (at your option) any later ver- -- --- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- --- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- --- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- --- for more details. You should have received a copy of the GNU General -- --- Public License distributed with GNAT; see file COPYING. If not, write -- --- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, -- --- Boston, MA 02110-1301, USA. -- --- -- --- As a special exception, if other files instantiate generics from this -- --- unit, or you link this unit with other files to produce an executable, -- --- this unit does not by itself cause the resulting executable to be -- --- covered by the GNU General Public License. This exception does not -- --- however invalidate any other reasons why the executable file might be -- --- covered by the GNU Public License. -- --- -- --- GNAT was originally developed by the GNAT team at New York University. -- --- Extensive contributions were provided by Ada Core Technologies Inc. -- --- -- ------------------------------------------------------------------------------- - --- This package provides target dependent definitions of constant for use --- by the GNAT.Sockets package (g-socket.ads). This package should not be --- directly with'ed by an applications program. - --- This is the version for i386-elf-lynxos --- This file is generated automatically, do not modify it by hand! Instead, --- make changes to gen-soccon.c and re-run it on each target. - -with Interfaces.C; -package GNAT.Sockets.Constants is - - -------------- - -- Families -- - -------------- - - AF_INET : constant := 2; -- IPv4 address family - AF_INET6 : constant := 28; -- IPv6 address family - - ----------- - -- Modes -- - ----------- - - SOCK_STREAM : constant := 1; -- Stream socket - SOCK_DGRAM : constant := 2; -- Datagram socket - - ------------------- - -- Socket errors -- - ------------------- - - EACCES : constant := 13; -- Permission denied - EADDRINUSE : constant := 98; -- Address already in use - EADDRNOTAVAIL : constant := 99; -- Cannot assign address - EAFNOSUPPORT : constant := 97; -- Addr family not supported - EALREADY : constant := 114; -- Operation in progress - EBADF : constant := 9; -- Bad file descriptor - ECONNABORTED : constant := 103; -- Connection aborted - ECONNREFUSED : constant := 111; -- Connection refused - ECONNRESET : constant := 104; -- Connection reset by peer - EDESTADDRREQ : constant := 89; -- Destination addr required - EFAULT : constant := 14; -- Bad address - EHOSTDOWN : constant := 112; -- Host is down - EHOSTUNREACH : constant := 113; -- No route to host - EINPROGRESS : constant := 115; -- Operation now in progress - EINTR : constant := 4; -- Interrupted system call - EINVAL : constant := 22; -- Invalid argument - EIO : constant := 5; -- Input output error - EISCONN : constant := 106; -- Socket already connected - ELOOP : constant := 40; -- Too many symbolic links - EMFILE : constant := 24; -- Too many open files - EMSGSIZE : constant := 90; -- Message too long - ENAMETOOLONG : constant := 36; -- Name too long - ENETDOWN : constant := 100; -- Network is down - ENETRESET : constant := 102; -- Disconn. on network reset - ENETUNREACH : constant := 101; -- Network is unreachable - ENOBUFS : constant := 105; -- No buffer space available - ENOPROTOOPT : constant := 92; -- Protocol not available - ENOTCONN : constant := 107; -- Socket not connected - ENOTSOCK : constant := 88; -- Operation on non socket - EOPNOTSUPP : constant := 95; -- Operation not supported - EPFNOSUPPORT : constant := 96; -- Unknown protocol family - EPROTONOSUPPORT : constant := 93; -- Unknown protocol - EPROTOTYPE : constant := 91; -- Unknown protocol type - ESHUTDOWN : constant := 108; -- Cannot send once shutdown - ESOCKTNOSUPPORT : constant := 94; -- Socket type not supported - ETIMEDOUT : constant := 110; -- Connection timed out - ETOOMANYREFS : constant := 109; -- Too many references - EWOULDBLOCK : constant := 11; -- Operation would block - - ----------------- - -- Host errors -- - ----------------- - - HOST_NOT_FOUND : constant := 1; -- Unknown host - TRY_AGAIN : constant := 2; -- Host name lookup failure - NO_DATA : constant := 4; -- No data record for name - NO_RECOVERY : constant := 3; -- Non recoverable errors - - ------------------- - -- Control flags -- - ------------------- - - FIONBIO : constant := 21537; -- Set/clear non-blocking io - FIONREAD : constant := 21531; -- How many bytes to read - - -------------------- - -- Shutdown modes -- - -------------------- - - SHUT_RD : constant := 0; -- No more recv - SHUT_WR : constant := 1; -- No more send - SHUT_RDWR : constant := 2; -- No more recv/send - - --------------------- - -- Protocol levels -- - --------------------- - - SOL_SOCKET : constant := 65535; -- Options for socket level - IPPROTO_IP : constant := 0; -- Dummy protocol for IP - IPPROTO_UDP : constant := 17; -- UDP - IPPROTO_TCP : constant := 6; -- TCP - - ------------------- - -- Request flags -- - ------------------- - - MSG_OOB : constant := 1; -- Process out-of-band data - MSG_PEEK : constant := 2; -- Peek at incoming data - MSG_EOR : constant := 128; -- Send end of record - MSG_WAITALL : constant := 256; -- Wait for full reception - MSG_NOSIGNAL : constant := -1; -- No SIGPIPE on send - MSG_Forced_Flags : constant := 0; - -- Flags set on all send(2) calls - - -------------------- - -- Socket options -- - -------------------- - - TCP_NODELAY : constant := 1; -- Do not coalesce packets - SO_REUSEADDR : constant := 4; -- Bind reuse local address - SO_REUSEPORT : constant := 512; -- Bind reuse port number - SO_KEEPALIVE : constant := 8; -- Enable keep-alive msgs - SO_LINGER : constant := 128; -- Defer close to flush data - SO_BROADCAST : constant := 32; -- Can send broadcast msgs - SO_SNDBUF : constant := 4097; -- Set/get send buffer size - SO_RCVBUF : constant := 4098; -- Set/get recv buffer size - SO_SNDTIMEO : constant := 4101; -- Emission timeout - SO_RCVTIMEO : constant := 4102; -- Reception timeout - SO_ERROR : constant := 4103; -- Get/clear error status - IP_MULTICAST_IF : constant := 9; -- Set/get mcast interface - IP_MULTICAST_TTL : constant := 10; -- Set/get multicast TTL - IP_MULTICAST_LOOP : constant := 11; -- Set/get mcast loopback - IP_ADD_MEMBERSHIP : constant := 12; -- Join a multicast group - IP_DROP_MEMBERSHIP : constant := 13; -- Leave a multicast group - IP_PKTINFO : constant := -1; -- Get datagram info - - ------------------- - -- System limits -- - ------------------- - - IOV_MAX : constant := 2147483647; -- Maximum writev iovcnt - - ---------------------- - -- Type definitions -- - ---------------------- - - -- Sizes (in bytes) of the components of struct timeval - - SIZEOF_tv_sec : constant := 4; -- tv_sec - SIZEOF_tv_usec : constant := 4; -- tv_usec - - -- Sizes of protocol specific address types (for sockaddr.sa_len) - - SIZEOF_sockaddr_in : constant := 16; -- struct sockaddr_in - SIZEOF_sockaddr_in6 : constant := 28; -- struct sockaddr_in6 - - -- Size of file descriptor sets - - SIZEOF_fd_set : constant := 512; -- fd_set - - -- Fields of struct hostent - - subtype H_Addrtype_T is Interfaces.C.int; - subtype H_Length_T is Interfaces.C.int; - - ---------------------------------------- - -- Properties of supported interfaces -- - ---------------------------------------- - - Need_Netdb_Buffer : constant := 1; -- Need buffer for Netdb ops - Has_Sockaddr_Len : constant := 0; -- Sockaddr has sa_len field - - Thread_Blocking_IO : constant Boolean := True; - -- Set False for contexts where socket i/o are process blocking - -end GNAT.Sockets.Constants; diff --git a/gcc/ada/g-soccon-mingw-64.ads b/gcc/ada/g-soccon-mingw-64.ads deleted file mode 100644 index cc84740..0000000 --- a/gcc/ada/g-soccon-mingw-64.ads +++ /dev/null @@ -1,220 +0,0 @@ ------------------------------------------------------------------------------- --- -- --- GNAT COMPILER COMPONENTS -- --- -- --- G N A T . S O C K E T S . C O N S T A N T S -- --- -- --- S p e c -- --- -- --- Copyright (C) 2000-2008, Free Software Foundation, Inc. -- --- -- --- GNAT is free software; you can redistribute it and/or modify it under -- --- terms of the GNU General Public License as published by the Free Soft- -- --- ware Foundation; either version 2, or (at your option) any later ver- -- --- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- --- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- --- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- --- for more details. You should have received a copy of the GNU General -- --- Public License distributed with GNAT; see file COPYING. If not, write -- --- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, -- --- Boston, MA 02110-1301, USA. -- --- -- --- As a special exception, if other files instantiate generics from this -- --- unit, or you link this unit with other files to produce an executable, -- --- this unit does not by itself cause the resulting executable to be -- --- covered by the GNU General Public License. This exception does not -- --- however invalidate any other reasons why the executable file might be -- --- covered by the GNU Public License. -- --- -- --- GNAT was originally developed by the GNAT team at New York University. -- --- Extensive contributions were provided by Ada Core Technologies Inc. -- --- -- ------------------------------------------------------------------------------- - --- This package provides target dependent definitions of constant for use --- by the GNAT.Sockets package (g-socket.ads). This package should not be --- directly with'ed by an applications program. - --- This is the version for x86_64-mingw32msv --- This file is generated automatically, do not modify it by hand! Instead, --- make changes to gen-soccon.c and re-run it on each target. - -with Interfaces.C; -package GNAT.Sockets.Constants is - - -------------- - -- Families -- - -------------- - - AF_INET : constant := 2; -- IPv4 address family - AF_INET6 : constant := 23; -- IPv6 address family - - ----------- - -- Modes -- - ----------- - - SOCK_STREAM : constant := 1; -- Stream socket - SOCK_DGRAM : constant := 2; -- Datagram socket - - ------------------- - -- Socket errors -- - ------------------- - - EACCES : constant := 10013; -- Permission denied - EADDRINUSE : constant := 10048; -- Address already in use - EADDRNOTAVAIL : constant := 10049; -- Cannot assign address - EAFNOSUPPORT : constant := 10047; -- Addr family not supported - EALREADY : constant := 10037; -- Operation in progress - EBADF : constant := 10009; -- Bad file descriptor - ECONNABORTED : constant := 10053; -- Connection aborted - ECONNREFUSED : constant := 10061; -- Connection refused - ECONNRESET : constant := 10054; -- Connection reset by peer - EDESTADDRREQ : constant := 10039; -- Destination addr required - EFAULT : constant := 10014; -- Bad address - EHOSTDOWN : constant := 10064; -- Host is down - EHOSTUNREACH : constant := 10065; -- No route to host - EINPROGRESS : constant := 10036; -- Operation now in progress - EINTR : constant := 10004; -- Interrupted system call - EINVAL : constant := 10022; -- Invalid argument - EIO : constant := 10101; -- Input output error - EISCONN : constant := 10056; -- Socket already connected - ELOOP : constant := 10062; -- Too many symbolic links - EMFILE : constant := 10024; -- Too many open files - EMSGSIZE : constant := 10040; -- Message too long - ENAMETOOLONG : constant := 10063; -- Name too long - ENETDOWN : constant := 10050; -- Network is down - ENETRESET : constant := 10052; -- Disconn. on network reset - ENETUNREACH : constant := 10051; -- Network is unreachable - ENOBUFS : constant := 10055; -- No buffer space available - ENOPROTOOPT : constant := 10042; -- Protocol not available - ENOTCONN : constant := 10057; -- Socket not connected - ENOTSOCK : constant := 10038; -- Operation on non socket - EOPNOTSUPP : constant := 10045; -- Operation not supported - EPFNOSUPPORT : constant := 10046; -- Unknown protocol family - EPROTONOSUPPORT : constant := 10043; -- Unknown protocol - EPROTOTYPE : constant := 10041; -- Unknown protocol type - ESHUTDOWN : constant := 10058; -- Cannot send once shutdown - ESOCKTNOSUPPORT : constant := 10044; -- Socket type not supported - ETIMEDOUT : constant := 10060; -- Connection timed out - ETOOMANYREFS : constant := 10059; -- Too many references - EWOULDBLOCK : constant := 10035; -- Operation would block - - ----------------- - -- Host errors -- - ----------------- - - HOST_NOT_FOUND : constant := 11001; -- Unknown host - TRY_AGAIN : constant := 11002; -- Host name lookup failure - NO_DATA : constant := 11004; -- No data record for name - NO_RECOVERY : constant := 11003; -- Non recoverable errors - - ------------------- - -- Control flags -- - ------------------- - - FIONBIO : constant := -2147195266; -- Set/clear non-blocking io - FIONREAD : constant := 1074030207; -- How many bytes to read - - -------------------- - -- Shutdown modes -- - -------------------- - - SHUT_RD : constant := 0; -- No more recv - SHUT_WR : constant := 1; -- No more send - SHUT_RDWR : constant := 2; -- No more recv/send - - --------------------- - -- Protocol levels -- - --------------------- - - SOL_SOCKET : constant := 65535; -- Options for socket level - IPPROTO_IP : constant := 0; -- Dummy protocol for IP - IPPROTO_UDP : constant := 17; -- UDP - IPPROTO_TCP : constant := 6; -- TCP - - ------------------- - -- Request flags -- - ------------------- - - MSG_OOB : constant := 1; -- Process out-of-band data - MSG_PEEK : constant := 2; -- Peek at incoming data - MSG_EOR : constant := -1; -- Send end of record - MSG_WAITALL : constant := 8; -- Wait for full reception - MSG_NOSIGNAL : constant := -1; -- No SIGPIPE on send - MSG_Forced_Flags : constant := 0; - -- Flags set on all send(2) calls - - -------------------- - -- Socket options -- - -------------------- - - TCP_NODELAY : constant := 1; -- Do not coalesce packets - SO_REUSEADDR : constant := 4; -- Bind reuse local address - SO_REUSEPORT : constant := -1; -- Bind reuse port number - SO_KEEPALIVE : constant := 8; -- Enable keep-alive msgs - SO_LINGER : constant := 128; -- Defer close to flush data - SO_BROADCAST : constant := 32; -- Can send broadcast msgs - SO_SNDBUF : constant := 4097; -- Set/get send buffer size - SO_RCVBUF : constant := 4098; -- Set/get recv buffer size - SO_SNDTIMEO : constant := 4101; -- Emission timeout - SO_RCVTIMEO : constant := 4102; -- Reception timeout - SO_ERROR : constant := 4103; -- Get/clear error status - IP_MULTICAST_IF : constant := 9; -- Set/get mcast interface - IP_MULTICAST_TTL : constant := 10; -- Set/get multicast TTL - IP_MULTICAST_LOOP : constant := 11; -- Set/get mcast loopback - IP_ADD_MEMBERSHIP : constant := 12; -- Join a multicast group - IP_DROP_MEMBERSHIP : constant := 13; -- Leave a multicast group - IP_PKTINFO : constant := 19; -- Get datagram info - - ------------------- - -- System limits -- - ------------------- - - IOV_MAX : constant := 2147483647; -- Maximum writev iovcnt - - ---------------------- - -- Type definitions -- - ---------------------- - - -- Sizes (in bytes) of the components of struct timeval - - SIZEOF_tv_sec : constant := 4; -- tv_sec - SIZEOF_tv_usec : constant := 4; -- tv_usec - - -- Sizes of protocol specific address types (for sockaddr.sa_len) - - SIZEOF_sockaddr_in : constant := 16; -- struct sockaddr_in - SIZEOF_sockaddr_in6 : constant := 28; -- struct sockaddr_in6 - - -- Size of file descriptor sets - - SIZEOF_fd_set : constant := 8200; -- fd_set - - -- Fields of struct hostent - - subtype H_Addrtype_T is Interfaces.C.short; - subtype H_Length_T is Interfaces.C.short; - - ---------------------------------------- - -- Properties of supported interfaces -- - ---------------------------------------- - - Need_Netdb_Buffer : constant := 0; -- Need buffer for Netdb ops - Has_Sockaddr_Len : constant := 0; -- Sockaddr has sa_len field - - Thread_Blocking_IO : constant Boolean := True; - -- Set False for contexts where socket i/o are process blocking - - ------------------------------ - -- MinGW-specific constants -- - ------------------------------ - - -- These constants may be used only within the MinGW version of - -- GNAT.Sockets.Thin. - - WSASYSNOTREADY : constant := 10091; -- System not ready - WSAVERNOTSUPPORTED : constant := 10092; -- Version not supported - WSANOTINITIALISED : constant := 10093; -- Winsock not initialized - WSAEDISCON : constant := 10101; -- Disconnected - -end GNAT.Sockets.Constants; diff --git a/gcc/ada/g-soccon-mingw.ads b/gcc/ada/g-soccon-mingw.ads deleted file mode 100644 index 732ef67..0000000 --- a/gcc/ada/g-soccon-mingw.ads +++ /dev/null @@ -1,220 +0,0 @@ ------------------------------------------------------------------------------- --- -- --- GNAT COMPILER COMPONENTS -- --- -- --- G N A T . S O C K E T S . C O N S T A N T S -- --- -- --- S p e c -- --- -- --- Copyright (C) 2000-2008, Free Software Foundation, Inc. -- --- -- --- GNAT is free software; you can redistribute it and/or modify it under -- --- terms of the GNU General Public License as published by the Free Soft- -- --- ware Foundation; either version 2, or (at your option) any later ver- -- --- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- --- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- --- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- --- for more details. You should have received a copy of the GNU General -- --- Public License distributed with GNAT; see file COPYING. If not, write -- --- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, -- --- Boston, MA 02110-1301, USA. -- --- -- --- As a special exception, if other files instantiate generics from this -- --- unit, or you link this unit with other files to produce an executable, -- --- this unit does not by itself cause the resulting executable to be -- --- covered by the GNU General Public License. This exception does not -- --- however invalidate any other reasons why the executable file might be -- --- covered by the GNU Public License. -- --- -- --- GNAT was originally developed by the GNAT team at New York University. -- --- Extensive contributions were provided by Ada Core Technologies Inc. -- --- -- ------------------------------------------------------------------------------- - --- This package provides target dependent definitions of constant for use --- by the GNAT.Sockets package (g-socket.ads). This package should not be --- directly with'ed by an applications program. - --- This is the version for pentium-mingw32msv --- This file is generated automatically, do not modify it by hand! Instead, --- make changes to gen-soccon.c and re-run it on each target. - -with Interfaces.C; -package GNAT.Sockets.Constants is - - -------------- - -- Families -- - -------------- - - AF_INET : constant := 2; -- IPv4 address family - AF_INET6 : constant := 23; -- IPv6 address family - - ----------- - -- Modes -- - ----------- - - SOCK_STREAM : constant := 1; -- Stream socket - SOCK_DGRAM : constant := 2; -- Datagram socket - - ------------------- - -- Socket errors -- - ------------------- - - EACCES : constant := 10013; -- Permission denied - EADDRINUSE : constant := 10048; -- Address already in use - EADDRNOTAVAIL : constant := 10049; -- Cannot assign address - EAFNOSUPPORT : constant := 10047; -- Addr family not supported - EALREADY : constant := 10037; -- Operation in progress - EBADF : constant := 10009; -- Bad file descriptor - ECONNABORTED : constant := 10053; -- Connection aborted - ECONNREFUSED : constant := 10061; -- Connection refused - ECONNRESET : constant := 10054; -- Connection reset by peer - EDESTADDRREQ : constant := 10039; -- Destination addr required - EFAULT : constant := 10014; -- Bad address - EHOSTDOWN : constant := 10064; -- Host is down - EHOSTUNREACH : constant := 10065; -- No route to host - EINPROGRESS : constant := 10036; -- Operation now in progress - EINTR : constant := 10004; -- Interrupted system call - EINVAL : constant := 10022; -- Invalid argument - EIO : constant := 10101; -- Input output error - EISCONN : constant := 10056; -- Socket already connected - ELOOP : constant := 10062; -- Too many symbolic links - EMFILE : constant := 10024; -- Too many open files - EMSGSIZE : constant := 10040; -- Message too long - ENAMETOOLONG : constant := 10063; -- Name too long - ENETDOWN : constant := 10050; -- Network is down - ENETRESET : constant := 10052; -- Disconn. on network reset - ENETUNREACH : constant := 10051; -- Network is unreachable - ENOBUFS : constant := 10055; -- No buffer space available - ENOPROTOOPT : constant := 10042; -- Protocol not available - ENOTCONN : constant := 10057; -- Socket not connected - ENOTSOCK : constant := 10038; -- Operation on non socket - EOPNOTSUPP : constant := 10045; -- Operation not supported - EPFNOSUPPORT : constant := 10046; -- Unknown protocol family - EPROTONOSUPPORT : constant := 10043; -- Unknown protocol - EPROTOTYPE : constant := 10041; -- Unknown protocol type - ESHUTDOWN : constant := 10058; -- Cannot send once shutdown - ESOCKTNOSUPPORT : constant := 10044; -- Socket type not supported - ETIMEDOUT : constant := 10060; -- Connection timed out - ETOOMANYREFS : constant := 10059; -- Too many references - EWOULDBLOCK : constant := 10035; -- Operation would block - - ----------------- - -- Host errors -- - ----------------- - - HOST_NOT_FOUND : constant := 11001; -- Unknown host - TRY_AGAIN : constant := 11002; -- Host name lookup failure - NO_DATA : constant := 11004; -- No data record for name - NO_RECOVERY : constant := 11003; -- Non recoverable errors - - ------------------- - -- Control flags -- - ------------------- - - FIONBIO : constant := -2147195266; -- Set/clear non-blocking io - FIONREAD : constant := 1074030207; -- How many bytes to read - - -------------------- - -- Shutdown modes -- - -------------------- - - SHUT_RD : constant := 0; -- No more recv - SHUT_WR : constant := 1; -- No more send - SHUT_RDWR : constant := 2; -- No more recv/send - - --------------------- - -- Protocol levels -- - --------------------- - - SOL_SOCKET : constant := 65535; -- Options for socket level - IPPROTO_IP : constant := 0; -- Dummy protocol for IP - IPPROTO_UDP : constant := 17; -- UDP - IPPROTO_TCP : constant := 6; -- TCP - - ------------------- - -- Request flags -- - ------------------- - - MSG_OOB : constant := 1; -- Process out-of-band data - MSG_PEEK : constant := 2; -- Peek at incoming data - MSG_EOR : constant := -1; -- Send end of record - MSG_WAITALL : constant := 8; -- Wait for full reception - MSG_NOSIGNAL : constant := -1; -- No SIGPIPE on send - MSG_Forced_Flags : constant := 0; - -- Flags set on all send(2) calls - - -------------------- - -- Socket options -- - -------------------- - - TCP_NODELAY : constant := 1; -- Do not coalesce packets - SO_REUSEADDR : constant := 4; -- Bind reuse local address - SO_REUSEPORT : constant := -1; -- Bind reuse port number - SO_KEEPALIVE : constant := 8; -- Enable keep-alive msgs - SO_LINGER : constant := 128; -- Defer close to flush data - SO_BROADCAST : constant := 32; -- Can send broadcast msgs - SO_SNDBUF : constant := 4097; -- Set/get send buffer size - SO_RCVBUF : constant := 4098; -- Set/get recv buffer size - SO_SNDTIMEO : constant := 4101; -- Emission timeout - SO_RCVTIMEO : constant := 4102; -- Reception timeout - SO_ERROR : constant := 4103; -- Get/clear error status - IP_MULTICAST_IF : constant := 9; -- Set/get mcast interface - IP_MULTICAST_TTL : constant := 10; -- Set/get multicast TTL - IP_MULTICAST_LOOP : constant := 11; -- Set/get mcast loopback - IP_ADD_MEMBERSHIP : constant := 12; -- Join a multicast group - IP_DROP_MEMBERSHIP : constant := 13; -- Leave a multicast group - IP_PKTINFO : constant := 19; -- Get datagram info - - ------------------- - -- System limits -- - ------------------- - - IOV_MAX : constant := 2147483647; -- Maximum writev iovcnt - - ---------------------- - -- Type definitions -- - ---------------------- - - -- Sizes (in bytes) of the components of struct timeval - - SIZEOF_tv_sec : constant := 4; -- tv_sec - SIZEOF_tv_usec : constant := 4; -- tv_usec - - -- Sizes of protocol specific address types (for sockaddr.sa_len) - - SIZEOF_sockaddr_in : constant := 16; -- struct sockaddr_in - SIZEOF_sockaddr_in6 : constant := 28; -- struct sockaddr_in6 - - -- Size of file descriptor sets - - SIZEOF_fd_set : constant := 4100; -- fd_set - - -- Fields of struct hostent - - subtype H_Addrtype_T is Interfaces.C.short; - subtype H_Length_T is Interfaces.C.short; - - ---------------------------------------- - -- Properties of supported interfaces -- - ---------------------------------------- - - Need_Netdb_Buffer : constant := 0; -- Need buffer for Netdb ops - Has_Sockaddr_Len : constant := 0; -- Sockaddr has sa_len field - - Thread_Blocking_IO : constant Boolean := True; - -- Set False for contexts where socket i/o are process blocking - - ------------------------------ - -- MinGW-specific constants -- - ------------------------------ - - -- These constants may be used only within the MinGW version of - -- GNAT.Sockets.Thin. - - WSASYSNOTREADY : constant := 10091; -- System not ready - WSAVERNOTSUPPORTED : constant := 10092; -- Version not supported - WSANOTINITIALISED : constant := 10093; -- Winsock not initialized - WSAEDISCON : constant := 10101; -- Disconnected - -end GNAT.Sockets.Constants; diff --git a/gcc/ada/g-soccon-rtems.ads b/gcc/ada/g-soccon-rtems.ads deleted file mode 100644 index a404eec..0000000 --- a/gcc/ada/g-soccon-rtems.ads +++ /dev/null @@ -1,196 +0,0 @@ ------------------------------------------------------------------------------- --- -- --- GNAT COMPILER COMPONENTS -- --- -- --- G N A T . S O C K E T S . C O N S T A N T S -- --- -- --- S p e c -- --- -- --- Copyright (C) 2000-2008, Free Software Foundation, Inc. -- --- -- --- GNAT is free software; you can redistribute it and/or modify it under -- --- terms of the GNU General Public License as published by the Free Soft- -- --- ware Foundation; either version 2, or (at your option) any later ver- -- --- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- --- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- --- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- --- for more details. You should have received a copy of the GNU General -- --- Public License distributed with GNAT; see file COPYING. If not, write -- --- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, -- --- Boston, MA 02110-1301, USA. -- --- -- --- As a special exception, if other files instantiate generics from this -- --- unit, or you link this unit with other files to produce an executable, -- --- this unit does not by itself cause the resulting executable to be -- --- covered by the GNU General Public License. This exception does not -- --- however invalidate any other reasons why the executable file might be -- --- covered by the GNU Public License. -- --- -- --- GNAT was originally developed by the GNAT team at New York University. -- --- Extensive contributions were provided by Ada Core Technologies Inc. -- --- -- ------------------------------------------------------------------------------- - --- This package provides target dependent definitions of constant for use --- by the GNAT.Sockets package (g-socket.ads). This package should not be --- directly with'ed by an applications program. - --- This is the version for RTEMS --- This file is generated automatically, do not modify it by hand! Instead, --- make changes to gen-soccon.c and re-run it on each target. - -package GNAT.Sockets.Constants is - - -------------- - -- Families -- - -------------- - - AF_INET : constant := 2; -- IPv4 address family - AF_INET6 : constant := 28; -- IPv6 address family - - ----------- - -- Modes -- - ----------- - - SOCK_STREAM : constant := 1; -- Stream socket - SOCK_DGRAM : constant := 2; -- Datagram socket - - ------------------- - -- Socket errors -- - ------------------- - - EACCES : constant := 13; -- Permission denied - EADDRINUSE : constant := 112; -- Address already in use - EADDRNOTAVAIL : constant := 125; -- Cannot assign address - EAFNOSUPPORT : constant := 106; -- Addr family not supported - EALREADY : constant := 120; -- Operation in progress - EBADF : constant := 9; -- Bad file descriptor - ECONNABORTED : constant := 113; -- Connection aborted - ECONNREFUSED : constant := 111; -- Connection refused - ECONNRESET : constant := 104; -- Connection reset by peer - EDESTADDRREQ : constant := 121; -- Destination addr required - EFAULT : constant := 14; -- Bad address - EHOSTDOWN : constant := 117; -- Host is down - EHOSTUNREACH : constant := 118; -- No route to host - EINPROGRESS : constant := 119; -- Operation now in progress - EINTR : constant := 4; -- Interrupted system call - EINVAL : constant := 22; -- Invalid argument - EIO : constant := 5; -- Input output error - EISCONN : constant := 127; -- Socket already connected - ELOOP : constant := 92; -- Too many symbolic links - EMFILE : constant := 24; -- Too many open files - EMSGSIZE : constant := 122; -- Message too long - ENAMETOOLONG : constant := 91; -- Name too long - ENETDOWN : constant := 115; -- Network is down - ENETRESET : constant := 126; -- Disconn. on network reset - ENETUNREACH : constant := 114; -- Network is unreachable - ENOBUFS : constant := 105; -- No buffer space available - ENOPROTOOPT : constant := 109; -- Protocol not available - ENOTCONN : constant := 128; -- Socket not connected - ENOTSOCK : constant := 108; -- Operation on non socket - EOPNOTSUPP : constant := 95; -- Operation not supported - EPFNOSUPPORT : constant := 96; -- Unknown protocol family - EPROTONOSUPPORT : constant := 123; -- Unknown protocol - EPROTOTYPE : constant := 107; -- Unknown protocol type - ESHUTDOWN : constant := 110; -- Cannot send once shutdown - ESOCKTNOSUPPORT : constant := 124; -- Socket type not supported - ETIMEDOUT : constant := 116; -- Connection timed out - ETOOMANYREFS : constant := 129; -- Too many references - EWOULDBLOCK : constant := 11; -- Operation would block - - ----------------- - -- Host errors -- - ----------------- - - HOST_NOT_FOUND : constant := 1; -- Unknown host - TRY_AGAIN : constant := 2; -- Host name lookup failure - NO_DATA : constant := 4; -- No data record for name - NO_RECOVERY : constant := 3; -- Non recoverable errors - - ------------------- - -- Control flags -- - ------------------- - - FIONBIO : constant := -2147195266; -- Set/clear non-blocking io - FIONREAD : constant := 1074030207; -- How many bytes to read - - -------------------- - -- Shutdown modes -- - -------------------- - - SHUT_RD : constant := 0; -- No more recv - SHUT_WR : constant := 1; -- No more send - SHUT_RDWR : constant := 2; -- No more recv/send - - --------------------- - -- Protocol levels -- - --------------------- - - SOL_SOCKET : constant := 65535; -- Options for socket level - IPPROTO_IP : constant := 0; -- Dummy protocol for IP - IPPROTO_UDP : constant := 17; -- UDP - IPPROTO_TCP : constant := 6; -- TCP - - ------------------- - -- Request flags -- - ------------------- - - MSG_OOB : constant := 1; -- Process out-of-band data - MSG_PEEK : constant := 2; -- Peek at incoming data - MSG_EOR : constant := 8; -- Send end of record - MSG_WAITALL : constant := 64; -- Wait for full reception - MSG_NOSIGNAL : constant := -1; -- No SIGPIPE on send - MSG_Forced_Flags : constant := 0; - -- Flags set on all send(2) calls - - -------------------- - -- Socket options -- - -------------------- - - TCP_NODELAY : constant := 1; -- Do not coalesce packets - SO_REUSEADDR : constant := 4; -- Bind reuse local address - SO_REUSEPORT : constant := -1; -- Bind reuse port number - SO_KEEPALIVE : constant := 8; -- Enable keep-alive msgs - SO_LINGER : constant := 128; -- Defer close to flush data - SO_BROADCAST : constant := 32; -- Can send broadcast msgs - SO_SNDBUF : constant := 4097; -- Set/get send buffer size - SO_RCVBUF : constant := 4098; -- Set/get recv buffer size - SO_SNDTIMEO : constant := 4101; -- Emission timeout - SO_RCVTIMEO : constant := 4102; -- Reception timeout - SO_ERROR : constant := 4103; -- Get/clear error status - IP_MULTICAST_IF : constant := 9; -- Set/get mcast interface - IP_MULTICAST_TTL : constant := 10; -- Set/get multicast TTL - IP_MULTICAST_LOOP : constant := 11; -- Set/get mcast loopback - IP_ADD_MEMBERSHIP : constant := 12; -- Join a multicast group - IP_DROP_MEMBERSHIP : constant := 13; -- Leave a multicast group - IP_PKTINFO : constant := -1; -- Get datagram info - - ------------------- - -- System limits -- - ------------------- - - IOV_MAX : constant := 1024; -- Maximum writev iovcnt - - ---------------------- - -- Type definitions -- - ---------------------- - - -- Sizes (in bytes) of the components of struct timeval - - SIZEOF_tv_sec : constant := 4; -- tv_sec - SIZEOF_tv_usec : constant := 4; -- tv_usec - - ---------------------------------------- - -- Properties of supported interfaces -- - ---------------------------------------- - - Need_Netdb_Buffer : constant := 1; -- Need buffer for Netdb ops - - ---------------------- - -- Additional flags -- - ---------------------- - - Thread_Blocking_IO : constant Boolean := True; - -- Set False for contexts where socket i/o are process blocking - -end GNAT.Sockets.Constants; diff --git a/gcc/ada/g-soccon-solaris-64.ads b/gcc/ada/g-soccon-solaris-64.ads deleted file mode 100644 index 2d5f2d9..0000000 --- a/gcc/ada/g-soccon-solaris-64.ads +++ /dev/null @@ -1,208 +0,0 @@ ------------------------------------------------------------------------------- --- -- --- GNAT COMPILER COMPONENTS -- --- -- --- G N A T . S O C K E T S . C O N S T A N T S -- --- -- --- S p e c -- --- -- --- Copyright (C) 2000-2008, Free Software Foundation, Inc. -- --- -- --- GNAT is free software; you can redistribute it and/or modify it under -- --- terms of the GNU General Public License as published by the Free Soft- -- --- ware Foundation; either version 2, or (at your option) any later ver- -- --- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- --- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- --- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- --- for more details. You should have received a copy of the GNU General -- --- Public License distributed with GNAT; see file COPYING. If not, write -- --- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, -- --- Boston, MA 02110-1301, USA. -- --- -- --- As a special exception, if other files instantiate generics from this -- --- unit, or you link this unit with other files to produce an executable, -- --- this unit does not by itself cause the resulting executable to be -- --- covered by the GNU General Public License. This exception does not -- --- however invalidate any other reasons why the executable file might be -- --- covered by the GNU Public License. -- --- -- --- GNAT was originally developed by the GNAT team at New York University. -- --- Extensive contributions were provided by Ada Core Technologies Inc. -- --- -- ------------------------------------------------------------------------------- - --- This package provides target dependent definitions of constant for use --- by the GNAT.Sockets package (g-socket.ads). This package should not be --- directly with'ed by an applications program. - --- This is the version for sparc-sun-solaris2.8 --- This file is generated automatically, do not modify it by hand! Instead, --- make changes to gen-soccon.c and re-run it on each target. - -with Interfaces.C; -package GNAT.Sockets.Constants is - - -------------- - -- Families -- - -------------- - - AF_INET : constant := 2; -- IPv4 address family - AF_INET6 : constant := 26; -- IPv6 address family - - ----------- - -- Modes -- - ----------- - - SOCK_STREAM : constant := 2; -- Stream socket - SOCK_DGRAM : constant := 1; -- Datagram socket - - ------------------- - -- Socket errors -- - ------------------- - - EACCES : constant := 13; -- Permission denied - EADDRINUSE : constant := 125; -- Address already in use - EADDRNOTAVAIL : constant := 126; -- Cannot assign address - EAFNOSUPPORT : constant := 124; -- Addr family not supported - EALREADY : constant := 149; -- Operation in progress - EBADF : constant := 9; -- Bad file descriptor - ECONNABORTED : constant := 130; -- Connection aborted - ECONNREFUSED : constant := 146; -- Connection refused - ECONNRESET : constant := 131; -- Connection reset by peer - EDESTADDRREQ : constant := 96; -- Destination addr required - EFAULT : constant := 14; -- Bad address - EHOSTDOWN : constant := 147; -- Host is down - EHOSTUNREACH : constant := 148; -- No route to host - EINPROGRESS : constant := 150; -- Operation now in progress - EINTR : constant := 4; -- Interrupted system call - EINVAL : constant := 22; -- Invalid argument - EIO : constant := 5; -- Input output error - EISCONN : constant := 133; -- Socket already connected - ELOOP : constant := 90; -- Too many symbolic links - EMFILE : constant := 24; -- Too many open files - EMSGSIZE : constant := 97; -- Message too long - ENAMETOOLONG : constant := 78; -- Name too long - ENETDOWN : constant := 127; -- Network is down - ENETRESET : constant := 129; -- Disconn. on network reset - ENETUNREACH : constant := 128; -- Network is unreachable - ENOBUFS : constant := 132; -- No buffer space available - ENOPROTOOPT : constant := 99; -- Protocol not available - ENOTCONN : constant := 134; -- Socket not connected - ENOTSOCK : constant := 95; -- Operation on non socket - EOPNOTSUPP : constant := 122; -- Operation not supported - EPFNOSUPPORT : constant := 123; -- Unknown protocol family - EPROTONOSUPPORT : constant := 120; -- Unknown protocol - EPROTOTYPE : constant := 98; -- Unknown protocol type - ESHUTDOWN : constant := 143; -- Cannot send once shutdown - ESOCKTNOSUPPORT : constant := 121; -- Socket type not supported - ETIMEDOUT : constant := 145; -- Connection timed out - ETOOMANYREFS : constant := 144; -- Too many references - EWOULDBLOCK : constant := 11; -- Operation would block - - ----------------- - -- Host errors -- - ----------------- - - HOST_NOT_FOUND : constant := 1; -- Unknown host - TRY_AGAIN : constant := 2; -- Host name lookup failure - NO_DATA : constant := 4; -- No data record for name - NO_RECOVERY : constant := 3; -- Non recoverable errors - - ------------------- - -- Control flags -- - ------------------- - - FIONBIO : constant := -2147195266; -- Set/clear non-blocking io - FIONREAD : constant := 1074030207; -- How many bytes to read - - -------------------- - -- Shutdown modes -- - -------------------- - - SHUT_RD : constant := 0; -- No more recv - SHUT_WR : constant := 1; -- No more send - SHUT_RDWR : constant := 2; -- No more recv/send - - --------------------- - -- Protocol levels -- - --------------------- - - SOL_SOCKET : constant := 65535; -- Options for socket level - IPPROTO_IP : constant := 0; -- Dummy protocol for IP - IPPROTO_UDP : constant := 17; -- UDP - IPPROTO_TCP : constant := 6; -- TCP - - ------------------- - -- Request flags -- - ------------------- - - MSG_OOB : constant := 1; -- Process out-of-band data - MSG_PEEK : constant := 2; -- Peek at incoming data - MSG_EOR : constant := 8; -- Send end of record - MSG_WAITALL : constant := 64; -- Wait for full reception - MSG_NOSIGNAL : constant := -1; -- No SIGPIPE on send - MSG_Forced_Flags : constant := 0; - -- Flags set on all send(2) calls - - -------------------- - -- Socket options -- - -------------------- - - TCP_NODELAY : constant := 1; -- Do not coalesce packets - SO_REUSEADDR : constant := 4; -- Bind reuse local address - SO_REUSEPORT : constant := -1; -- Bind reuse port number - SO_KEEPALIVE : constant := 8; -- Enable keep-alive msgs - SO_LINGER : constant := 128; -- Defer close to flush data - SO_BROADCAST : constant := 32; -- Can send broadcast msgs - SO_SNDBUF : constant := 4097; -- Set/get send buffer size - SO_RCVBUF : constant := 4098; -- Set/get recv buffer size - SO_SNDTIMEO : constant := 4101; -- Emission timeout - SO_RCVTIMEO : constant := 4102; -- Reception timeout - SO_ERROR : constant := 4103; -- Get/clear error status - IP_MULTICAST_IF : constant := 16; -- Set/get mcast interface - IP_MULTICAST_TTL : constant := 17; -- Set/get multicast TTL - IP_MULTICAST_LOOP : constant := 18; -- Set/get mcast loopback - IP_ADD_MEMBERSHIP : constant := 19; -- Join a multicast group - IP_DROP_MEMBERSHIP : constant := 20; -- Leave a multicast group - IP_PKTINFO : constant := -1; -- Get datagram info - - ------------------- - -- System limits -- - ------------------- - - IOV_MAX : constant := 16; -- Maximum writev iovcnt - - ---------------------- - -- Type definitions -- - ---------------------- - - -- Sizes (in bytes) of the components of struct timeval - - SIZEOF_tv_sec : constant := 4; -- tv_sec - SIZEOF_tv_usec : constant := 4; -- tv_usec - - -- Sizes of protocol specific address types (for sockaddr.sa_len) - - SIZEOF_sockaddr_in : constant := 16; -- struct sockaddr_in - SIZEOF_sockaddr_in6 : constant := 32; -- struct sockaddr_in6 - - -- Size of file descriptor sets - - SIZEOF_fd_set : constant := 128; -- fd_set - - -- Fields of struct hostent - - subtype H_Addrtype_T is Interfaces.C.int; - subtype H_Length_T is Interfaces.C.int; - - ---------------------------------------- - -- Properties of supported interfaces -- - ---------------------------------------- - - Need_Netdb_Buffer : constant := 1; -- Need buffer for Netdb ops - Has_Sockaddr_Len : constant := 0; -- Sockaddr has sa_len field - - Thread_Blocking_IO : constant Boolean := True; - -- Set False for contexts where socket i/o are process blocking - -end GNAT.Sockets.Constants; diff --git a/gcc/ada/g-soccon-solaris.ads b/gcc/ada/g-soccon-solaris.ads deleted file mode 100644 index 2d5f2d9..0000000 --- a/gcc/ada/g-soccon-solaris.ads +++ /dev/null @@ -1,208 +0,0 @@ ------------------------------------------------------------------------------- --- -- --- GNAT COMPILER COMPONENTS -- --- -- --- G N A T . S O C K E T S . C O N S T A N T S -- --- -- --- S p e c -- --- -- --- Copyright (C) 2000-2008, Free Software Foundation, Inc. -- --- -- --- GNAT is free software; you can redistribute it and/or modify it under -- --- terms of the GNU General Public License as published by the Free Soft- -- --- ware Foundation; either version 2, or (at your option) any later ver- -- --- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- --- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- --- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- --- for more details. You should have received a copy of the GNU General -- --- Public License distributed with GNAT; see file COPYING. If not, write -- --- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, -- --- Boston, MA 02110-1301, USA. -- --- -- --- As a special exception, if other files instantiate generics from this -- --- unit, or you link this unit with other files to produce an executable, -- --- this unit does not by itself cause the resulting executable to be -- --- covered by the GNU General Public License. This exception does not -- --- however invalidate any other reasons why the executable file might be -- --- covered by the GNU Public License. -- --- -- --- GNAT was originally developed by the GNAT team at New York University. -- --- Extensive contributions were provided by Ada Core Technologies Inc. -- --- -- ------------------------------------------------------------------------------- - --- This package provides target dependent definitions of constant for use --- by the GNAT.Sockets package (g-socket.ads). This package should not be --- directly with'ed by an applications program. - --- This is the version for sparc-sun-solaris2.8 --- This file is generated automatically, do not modify it by hand! Instead, --- make changes to gen-soccon.c and re-run it on each target. - -with Interfaces.C; -package GNAT.Sockets.Constants is - - -------------- - -- Families -- - -------------- - - AF_INET : constant := 2; -- IPv4 address family - AF_INET6 : constant := 26; -- IPv6 address family - - ----------- - -- Modes -- - ----------- - - SOCK_STREAM : constant := 2; -- Stream socket - SOCK_DGRAM : constant := 1; -- Datagram socket - - ------------------- - -- Socket errors -- - ------------------- - - EACCES : constant := 13; -- Permission denied - EADDRINUSE : constant := 125; -- Address already in use - EADDRNOTAVAIL : constant := 126; -- Cannot assign address - EAFNOSUPPORT : constant := 124; -- Addr family not supported - EALREADY : constant := 149; -- Operation in progress - EBADF : constant := 9; -- Bad file descriptor - ECONNABORTED : constant := 130; -- Connection aborted - ECONNREFUSED : constant := 146; -- Connection refused - ECONNRESET : constant := 131; -- Connection reset by peer - EDESTADDRREQ : constant := 96; -- Destination addr required - EFAULT : constant := 14; -- Bad address - EHOSTDOWN : constant := 147; -- Host is down - EHOSTUNREACH : constant := 148; -- No route to host - EINPROGRESS : constant := 150; -- Operation now in progress - EINTR : constant := 4; -- Interrupted system call - EINVAL : constant := 22; -- Invalid argument - EIO : constant := 5; -- Input output error - EISCONN : constant := 133; -- Socket already connected - ELOOP : constant := 90; -- Too many symbolic links - EMFILE : constant := 24; -- Too many open files - EMSGSIZE : constant := 97; -- Message too long - ENAMETOOLONG : constant := 78; -- Name too long - ENETDOWN : constant := 127; -- Network is down - ENETRESET : constant := 129; -- Disconn. on network reset - ENETUNREACH : constant := 128; -- Network is unreachable - ENOBUFS : constant := 132; -- No buffer space available - ENOPROTOOPT : constant := 99; -- Protocol not available - ENOTCONN : constant := 134; -- Socket not connected - ENOTSOCK : constant := 95; -- Operation on non socket - EOPNOTSUPP : constant := 122; -- Operation not supported - EPFNOSUPPORT : constant := 123; -- Unknown protocol family - EPROTONOSUPPORT : constant := 120; -- Unknown protocol - EPROTOTYPE : constant := 98; -- Unknown protocol type - ESHUTDOWN : constant := 143; -- Cannot send once shutdown - ESOCKTNOSUPPORT : constant := 121; -- Socket type not supported - ETIMEDOUT : constant := 145; -- Connection timed out - ETOOMANYREFS : constant := 144; -- Too many references - EWOULDBLOCK : constant := 11; -- Operation would block - - ----------------- - -- Host errors -- - ----------------- - - HOST_NOT_FOUND : constant := 1; -- Unknown host - TRY_AGAIN : constant := 2; -- Host name lookup failure - NO_DATA : constant := 4; -- No data record for name - NO_RECOVERY : constant := 3; -- Non recoverable errors - - ------------------- - -- Control flags -- - ------------------- - - FIONBIO : constant := -2147195266; -- Set/clear non-blocking io - FIONREAD : constant := 1074030207; -- How many bytes to read - - -------------------- - -- Shutdown modes -- - -------------------- - - SHUT_RD : constant := 0; -- No more recv - SHUT_WR : constant := 1; -- No more send - SHUT_RDWR : constant := 2; -- No more recv/send - - --------------------- - -- Protocol levels -- - --------------------- - - SOL_SOCKET : constant := 65535; -- Options for socket level - IPPROTO_IP : constant := 0; -- Dummy protocol for IP - IPPROTO_UDP : constant := 17; -- UDP - IPPROTO_TCP : constant := 6; -- TCP - - ------------------- - -- Request flags -- - ------------------- - - MSG_OOB : constant := 1; -- Process out-of-band data - MSG_PEEK : constant := 2; -- Peek at incoming data - MSG_EOR : constant := 8; -- Send end of record - MSG_WAITALL : constant := 64; -- Wait for full reception - MSG_NOSIGNAL : constant := -1; -- No SIGPIPE on send - MSG_Forced_Flags : constant := 0; - -- Flags set on all send(2) calls - - -------------------- - -- Socket options -- - -------------------- - - TCP_NODELAY : constant := 1; -- Do not coalesce packets - SO_REUSEADDR : constant := 4; -- Bind reuse local address - SO_REUSEPORT : constant := -1; -- Bind reuse port number - SO_KEEPALIVE : constant := 8; -- Enable keep-alive msgs - SO_LINGER : constant := 128; -- Defer close to flush data - SO_BROADCAST : constant := 32; -- Can send broadcast msgs - SO_SNDBUF : constant := 4097; -- Set/get send buffer size - SO_RCVBUF : constant := 4098; -- Set/get recv buffer size - SO_SNDTIMEO : constant := 4101; -- Emission timeout - SO_RCVTIMEO : constant := 4102; -- Reception timeout - SO_ERROR : constant := 4103; -- Get/clear error status - IP_MULTICAST_IF : constant := 16; -- Set/get mcast interface - IP_MULTICAST_TTL : constant := 17; -- Set/get multicast TTL - IP_MULTICAST_LOOP : constant := 18; -- Set/get mcast loopback - IP_ADD_MEMBERSHIP : constant := 19; -- Join a multicast group - IP_DROP_MEMBERSHIP : constant := 20; -- Leave a multicast group - IP_PKTINFO : constant := -1; -- Get datagram info - - ------------------- - -- System limits -- - ------------------- - - IOV_MAX : constant := 16; -- Maximum writev iovcnt - - ---------------------- - -- Type definitions -- - ---------------------- - - -- Sizes (in bytes) of the components of struct timeval - - SIZEOF_tv_sec : constant := 4; -- tv_sec - SIZEOF_tv_usec : constant := 4; -- tv_usec - - -- Sizes of protocol specific address types (for sockaddr.sa_len) - - SIZEOF_sockaddr_in : constant := 16; -- struct sockaddr_in - SIZEOF_sockaddr_in6 : constant := 32; -- struct sockaddr_in6 - - -- Size of file descriptor sets - - SIZEOF_fd_set : constant := 128; -- fd_set - - -- Fields of struct hostent - - subtype H_Addrtype_T is Interfaces.C.int; - subtype H_Length_T is Interfaces.C.int; - - ---------------------------------------- - -- Properties of supported interfaces -- - ---------------------------------------- - - Need_Netdb_Buffer : constant := 1; -- Need buffer for Netdb ops - Has_Sockaddr_Len : constant := 0; -- Sockaddr has sa_len field - - Thread_Blocking_IO : constant Boolean := True; - -- Set False for contexts where socket i/o are process blocking - -end GNAT.Sockets.Constants; diff --git a/gcc/ada/g-soccon-tru64.ads b/gcc/ada/g-soccon-tru64.ads deleted file mode 100644 index a14e610..0000000 --- a/gcc/ada/g-soccon-tru64.ads +++ /dev/null @@ -1,208 +0,0 @@ ------------------------------------------------------------------------------- --- -- --- GNAT COMPILER COMPONENTS -- --- -- --- G N A T . S O C K E T S . C O N S T A N T S -- --- -- --- S p e c -- --- -- --- Copyright (C) 2000-2008, Free Software Foundation, Inc. -- --- -- --- GNAT is free software; you can redistribute it and/or modify it under -- --- terms of the GNU General Public License as published by the Free Soft- -- --- ware Foundation; either version 2, or (at your option) any later ver- -- --- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- --- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- --- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- --- for more details. You should have received a copy of the GNU General -- --- Public License distributed with GNAT; see file COPYING. If not, write -- --- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, -- --- Boston, MA 02110-1301, USA. -- --- -- --- As a special exception, if other files instantiate generics from this -- --- unit, or you link this unit with other files to produce an executable, -- --- this unit does not by itself cause the resulting executable to be -- --- covered by the GNU General Public License. This exception does not -- --- however invalidate any other reasons why the executable file might be -- --- covered by the GNU Public License. -- --- -- --- GNAT was originally developed by the GNAT team at New York University. -- --- Extensive contributions were provided by Ada Core Technologies Inc. -- --- -- ------------------------------------------------------------------------------- - --- This package provides target dependent definitions of constant for use --- by the GNAT.Sockets package (g-socket.ads). This package should not be --- directly with'ed by an applications program. - --- This is the version for alphaev56-dec-osf5.1 --- This file is generated automatically, do not modify it by hand! Instead, --- make changes to gen-soccon.c and re-run it on each target. - -with Interfaces.C; -package GNAT.Sockets.Constants is - - -------------- - -- Families -- - -------------- - - AF_INET : constant := 2; -- IPv4 address family - AF_INET6 : constant := 26; -- IPv6 address family - - ----------- - -- Modes -- - ----------- - - SOCK_STREAM : constant := 1; -- Stream socket - SOCK_DGRAM : constant := 2; -- Datagram socket - - ------------------- - -- Socket errors -- - ------------------- - - EACCES : constant := 13; -- Permission denied - EADDRINUSE : constant := 48; -- Address already in use - EADDRNOTAVAIL : constant := 49; -- Cannot assign address - EAFNOSUPPORT : constant := 47; -- Addr family not supported - EALREADY : constant := 37; -- Operation in progress - EBADF : constant := 9; -- Bad file descriptor - ECONNABORTED : constant := 53; -- Connection aborted - ECONNREFUSED : constant := 61; -- Connection refused - ECONNRESET : constant := 54; -- Connection reset by peer - EDESTADDRREQ : constant := 39; -- Destination addr required - EFAULT : constant := 14; -- Bad address - EHOSTDOWN : constant := 64; -- Host is down - EHOSTUNREACH : constant := 65; -- No route to host - EINPROGRESS : constant := 36; -- Operation now in progress - EINTR : constant := 4; -- Interrupted system call - EINVAL : constant := 22; -- Invalid argument - EIO : constant := 5; -- Input output error - EISCONN : constant := 56; -- Socket already connected - ELOOP : constant := 62; -- Too many symbolic links - EMFILE : constant := 24; -- Too many open files - EMSGSIZE : constant := 40; -- Message too long - ENAMETOOLONG : constant := 63; -- Name too long - ENETDOWN : constant := 50; -- Network is down - ENETRESET : constant := 52; -- Disconn. on network reset - ENETUNREACH : constant := 51; -- Network is unreachable - ENOBUFS : constant := 55; -- No buffer space available - ENOPROTOOPT : constant := 42; -- Protocol not available - ENOTCONN : constant := 57; -- Socket not connected - ENOTSOCK : constant := 38; -- Operation on non socket - EOPNOTSUPP : constant := 45; -- Operation not supported - EPFNOSUPPORT : constant := 46; -- Unknown protocol family - EPROTONOSUPPORT : constant := 43; -- Unknown protocol - EPROTOTYPE : constant := 41; -- Unknown protocol type - ESHUTDOWN : constant := 58; -- Cannot send once shutdown - ESOCKTNOSUPPORT : constant := 44; -- Socket type not supported - ETIMEDOUT : constant := 60; -- Connection timed out - ETOOMANYREFS : constant := 59; -- Too many references - EWOULDBLOCK : constant := 35; -- Operation would block - - ----------------- - -- Host errors -- - ----------------- - - HOST_NOT_FOUND : constant := 1; -- Unknown host - TRY_AGAIN : constant := 2; -- Host name lookup failure - NO_DATA : constant := 4; -- No data record for name - NO_RECOVERY : constant := 3; -- Non recoverable errors - - ------------------- - -- Control flags -- - ------------------- - - FIONBIO : constant := -2147195266; -- Set/clear non-blocking io - FIONREAD : constant := 1074030207; -- How many bytes to read - - -------------------- - -- Shutdown modes -- - -------------------- - - SHUT_RD : constant := 0; -- No more recv - SHUT_WR : constant := 1; -- No more send - SHUT_RDWR : constant := 2; -- No more recv/send - - --------------------- - -- Protocol levels -- - --------------------- - - SOL_SOCKET : constant := 65535; -- Options for socket level - IPPROTO_IP : constant := 0; -- Dummy protocol for IP - IPPROTO_UDP : constant := 17; -- UDP - IPPROTO_TCP : constant := 6; -- TCP - - ------------------- - -- Request flags -- - ------------------- - - MSG_OOB : constant := 1; -- Process out-of-band data - MSG_PEEK : constant := 2; -- Peek at incoming data - MSG_EOR : constant := 8; -- Send end of record - MSG_WAITALL : constant := 64; -- Wait for full reception - MSG_NOSIGNAL : constant := -1; -- No SIGPIPE on send - MSG_Forced_Flags : constant := 0; - -- Flags set on all send(2) calls - - -------------------- - -- Socket options -- - -------------------- - - TCP_NODELAY : constant := 1; -- Do not coalesce packets - SO_REUSEADDR : constant := 4; -- Bind reuse local address - SO_REUSEPORT : constant := 512; -- Bind reuse port number - SO_KEEPALIVE : constant := 8; -- Enable keep-alive msgs - SO_LINGER : constant := 128; -- Defer close to flush data - SO_BROADCAST : constant := 32; -- Can send broadcast msgs - SO_SNDBUF : constant := 4097; -- Set/get send buffer size - SO_RCVBUF : constant := 4098; -- Set/get recv buffer size - SO_SNDTIMEO : constant := 4101; -- Emission timeout - SO_RCVTIMEO : constant := 4102; -- Reception timeout - SO_ERROR : constant := 4103; -- Get/clear error status - IP_MULTICAST_IF : constant := 9; -- Set/get mcast interface - IP_MULTICAST_TTL : constant := 10; -- Set/get multicast TTL - IP_MULTICAST_LOOP : constant := 11; -- Set/get mcast loopback - IP_ADD_MEMBERSHIP : constant := 12; -- Join a multicast group - IP_DROP_MEMBERSHIP : constant := 13; -- Leave a multicast group - IP_PKTINFO : constant := -1; -- Get datagram info - - ------------------- - -- System limits -- - ------------------- - - IOV_MAX : constant := 1024; -- Maximum writev iovcnt - - ---------------------- - -- Type definitions -- - ---------------------- - - -- Sizes (in bytes) of the components of struct timeval - - SIZEOF_tv_sec : constant := 4; -- tv_sec - SIZEOF_tv_usec : constant := 4; -- tv_usec - - -- Sizes of protocol specific address types (for sockaddr.sa_len) - - SIZEOF_sockaddr_in : constant := 16; -- struct sockaddr_in - SIZEOF_sockaddr_in6 : constant := 32; -- struct sockaddr_in6 - - -- Size of file descriptor sets - - SIZEOF_fd_set : constant := 512; -- fd_set - - -- Fields of struct hostent - - subtype H_Addrtype_T is Interfaces.C.int; - subtype H_Length_T is Interfaces.C.int; - - ---------------------------------------- - -- Properties of supported interfaces -- - ---------------------------------------- - - Need_Netdb_Buffer : constant := 0; -- Need buffer for Netdb ops - Has_Sockaddr_Len : constant := 0; -- Sockaddr has sa_len field - - Thread_Blocking_IO : constant Boolean := True; - -- Set False for contexts where socket i/o are process blocking - -end GNAT.Sockets.Constants; diff --git a/gcc/ada/g-soccon-vms.ads b/gcc/ada/g-soccon-vms.ads deleted file mode 100644 index 072ee49..0000000 --- a/gcc/ada/g-soccon-vms.ads +++ /dev/null @@ -1,208 +0,0 @@ ------------------------------------------------------------------------------- --- -- --- GNAT COMPILER COMPONENTS -- --- -- --- G N A T . S O C K E T S . C O N S T A N T S -- --- -- --- S p e c -- --- -- --- Copyright (C) 2000-2008, Free Software Foundation, Inc. -- --- -- --- GNAT is free software; you can redistribute it and/or modify it under -- --- terms of the GNU General Public License as published by the Free Soft- -- --- ware Foundation; either version 2, or (at your option) any later ver- -- --- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- --- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- --- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- --- for more details. You should have received a copy of the GNU General -- --- Public License distributed with GNAT; see file COPYING. If not, write -- --- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, -- --- Boston, MA 02110-1301, USA. -- --- -- --- As a special exception, if other files instantiate generics from this -- --- unit, or you link this unit with other files to produce an executable, -- --- this unit does not by itself cause the resulting executable to be -- --- covered by the GNU General Public License. This exception does not -- --- however invalidate any other reasons why the executable file might be -- --- covered by the GNU Public License. -- --- -- --- GNAT was originally developed by the GNAT team at New York University. -- --- Extensive contributions were provided by Ada Core Technologies Inc. -- --- -- ------------------------------------------------------------------------------- - --- This package provides target dependent definitions of constant for use --- by the GNAT.Sockets package (g-socket.ads). This package should not be --- directly with'ed by an applications program. - --- This is the version for OpenVMS --- This file is generated automatically, do not modify it by hand! Instead, --- make changes to gen-soccon.c and re-run it on each target. - -with Interfaces.C; -package GNAT.Sockets.Constants is - - -------------- - -- Families -- - -------------- - - AF_INET : constant := 2; -- IPv4 address family - AF_INET6 : constant := 26; -- IPv6 address family - - ----------- - -- Modes -- - ----------- - - SOCK_STREAM : constant := 1; -- Stream socket - SOCK_DGRAM : constant := 2; -- Datagram socket - - ------------------- - -- Socket errors -- - ------------------- - - EACCES : constant := 13; -- Permission denied - EADDRINUSE : constant := 48; -- Address already in use - EADDRNOTAVAIL : constant := 49; -- Cannot assign address - EAFNOSUPPORT : constant := 47; -- Addr family not supported - EALREADY : constant := 37; -- Operation in progress - EBADF : constant := 9; -- Bad file descriptor - ECONNABORTED : constant := 53; -- Connection aborted - ECONNREFUSED : constant := 61; -- Connection refused - ECONNRESET : constant := 54; -- Connection reset by peer - EDESTADDRREQ : constant := 39; -- Destination addr required - EFAULT : constant := 14; -- Bad address - EHOSTDOWN : constant := 64; -- Host is down - EHOSTUNREACH : constant := 65; -- No route to host - EINPROGRESS : constant := 36; -- Operation now in progress - EINTR : constant := 4; -- Interrupted system call - EINVAL : constant := 22; -- Invalid argument - EIO : constant := 5; -- Input output error - EISCONN : constant := 56; -- Socket already connected - ELOOP : constant := 62; -- Too many symbolic links - EMFILE : constant := 24; -- Too many open files - EMSGSIZE : constant := 40; -- Message too long - ENAMETOOLONG : constant := 63; -- Name too long - ENETDOWN : constant := 50; -- Network is down - ENETRESET : constant := 52; -- Disconn. on network reset - ENETUNREACH : constant := 51; -- Network is unreachable - ENOBUFS : constant := 55; -- No buffer space available - ENOPROTOOPT : constant := 42; -- Protocol not available - ENOTCONN : constant := 57; -- Socket not connected - ENOTSOCK : constant := 38; -- Operation on non socket - EOPNOTSUPP : constant := 45; -- Operation not supported - EPFNOSUPPORT : constant := 46; -- Unknown protocol family - EPROTONOSUPPORT : constant := 43; -- Unknown protocol - EPROTOTYPE : constant := 41; -- Unknown protocol type - ESHUTDOWN : constant := 58; -- Cannot send once shutdown - ESOCKTNOSUPPORT : constant := 44; -- Socket type not supported - ETIMEDOUT : constant := 60; -- Connection timed out - ETOOMANYREFS : constant := 59; -- Too many references - EWOULDBLOCK : constant := 35; -- Operation would block - - ----------------- - -- Host errors -- - ----------------- - - HOST_NOT_FOUND : constant := 1; -- Unknown host - TRY_AGAIN : constant := 2; -- Host name lookup failure - NO_DATA : constant := 4; -- No data record for name - NO_RECOVERY : constant := 3; -- Non recoverable errors - - ------------------- - -- Control flags -- - ------------------- - - FIONBIO : constant := -2147195266; -- Set/clear non-blocking io - FIONREAD : constant := 1074030207; -- How many bytes to read - - -------------------- - -- Shutdown modes -- - -------------------- - - SHUT_RD : constant := 0; -- No more recv - SHUT_WR : constant := 1; -- No more send - SHUT_RDWR : constant := 2; -- No more recv/send - - --------------------- - -- Protocol levels -- - --------------------- - - SOL_SOCKET : constant := 65535; -- Options for socket level - IPPROTO_IP : constant := 0; -- Dummy protocol for IP - IPPROTO_UDP : constant := 17; -- UDP - IPPROTO_TCP : constant := 6; -- TCP - - ------------------- - -- Request flags -- - ------------------- - - MSG_OOB : constant := 1; -- Process out-of-band data - MSG_PEEK : constant := 2; -- Peek at incoming data - MSG_EOR : constant := 8; -- Send end of record - MSG_WAITALL : constant := 128; -- Wait for full reception - MSG_NOSIGNAL : constant := -1; -- No SIGPIPE on send - MSG_Forced_Flags : constant := 0; - -- Flags set on all send(2) calls - - -------------------- - -- Socket options -- - -------------------- - - TCP_NODELAY : constant := 1; -- Do not coalesce packets - SO_REUSEADDR : constant := 4; -- Bind reuse local address - SO_REUSEPORT : constant := 512; -- Bind reuse port number - SO_KEEPALIVE : constant := 8; -- Enable keep-alive msgs - SO_LINGER : constant := 128; -- Defer close to flush data - SO_BROADCAST : constant := 32; -- Can send broadcast msgs - SO_SNDBUF : constant := 4097; -- Set/get send buffer size - SO_RCVBUF : constant := 4098; -- Set/get recv buffer size - SO_SNDTIMEO : constant := 4101; -- Emission timeout - SO_RCVTIMEO : constant := 4102; -- Reception timeout - SO_ERROR : constant := 4103; -- Get/clear error status - IP_MULTICAST_IF : constant := 9; -- Set/get mcast interface - IP_MULTICAST_TTL : constant := 10; -- Set/get multicast TTL - IP_MULTICAST_LOOP : constant := 11; -- Set/get mcast loopback - IP_ADD_MEMBERSHIP : constant := 12; -- Join a multicast group - IP_DROP_MEMBERSHIP : constant := 13; -- Leave a multicast group - IP_PKTINFO : constant := -1; -- Get datagram info - - ------------------- - -- System limits -- - ------------------- - - IOV_MAX : constant := 1024; -- Maximum writev iovcnt - - ---------------------- - -- Type definitions -- - ---------------------- - - -- Sizes (in bytes) of the components of struct timeval - - SIZEOF_tv_sec : constant := 4; -- tv_sec - SIZEOF_tv_usec : constant := 4; -- tv_usec - - -- Sizes of protocol specific address types (for sockaddr.sa_len) - - SIZEOF_sockaddr_in : constant := 16; -- struct sockaddr_in - SIZEOF_sockaddr_in6 : constant := 28; -- struct sockaddr_in6 - - -- Size of file descriptor sets - - SIZEOF_fd_set : constant := 512; -- fd_set - - -- Fields of struct hostent - - subtype H_Addrtype_T is Interfaces.C.int; - subtype H_Length_T is Interfaces.C.int; - - ---------------------------------------- - -- Properties of supported interfaces -- - ---------------------------------------- - - Need_Netdb_Buffer : constant := 1; -- Need buffer for Netdb ops - Has_Sockaddr_Len : constant := 0; -- Sockaddr has sa_len field - - Thread_Blocking_IO : constant Boolean := True; - -- Set False for contexts where socket i/o are process blocking - -end GNAT.Sockets.Constants; diff --git a/gcc/ada/g-soccon-vxworks.ads b/gcc/ada/g-soccon-vxworks.ads deleted file mode 100644 index 8af1743..0000000 --- a/gcc/ada/g-soccon-vxworks.ads +++ /dev/null @@ -1,218 +0,0 @@ ------------------------------------------------------------------------------- --- -- --- GNAT COMPILER COMPONENTS -- --- -- --- G N A T . S O C K E T S . C O N S T A N T S -- --- -- --- S p e c -- --- -- --- Copyright (C) 2000-2008, Free Software Foundation, Inc. -- --- -- --- GNAT is free software; you can redistribute it and/or modify it under -- --- terms of the GNU General Public License as published by the Free Soft- -- --- ware Foundation; either version 2, or (at your option) any later ver- -- --- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- --- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- --- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- --- for more details. You should have received a copy of the GNU General -- --- Public License distributed with GNAT; see file COPYING. If not, write -- --- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, -- --- Boston, MA 02110-1301, USA. -- --- -- --- As a special exception, if other files instantiate generics from this -- --- unit, or you link this unit with other files to produce an executable, -- --- this unit does not by itself cause the resulting executable to be -- --- covered by the GNU General Public License. This exception does not -- --- however invalidate any other reasons why the executable file might be -- --- covered by the GNU Public License. -- --- -- --- GNAT was originally developed by the GNAT team at New York University. -- --- Extensive contributions were provided by Ada Core Technologies Inc. -- --- -- ------------------------------------------------------------------------------- - --- This package provides target dependent definitions of constant for use --- by the GNAT.Sockets package (g-socket.ads). This package should not be --- directly with'ed by an applications program. - --- This is the version for VxWorks --- This file is generated automatically, do not modify it by hand! Instead, --- make changes to gen-soccon.c and re-run it on each target. - -with Interfaces.C; -package GNAT.Sockets.Constants is - - -------------- - -- Families -- - -------------- - - AF_INET : constant := 2; -- IPv4 address family - AF_INET6 : constant := 28; -- IPv6 address family - - ----------- - -- Modes -- - ----------- - - SOCK_STREAM : constant := 1; -- Stream socket - SOCK_DGRAM : constant := 2; -- Datagram socket - - ------------------- - -- Socket errors -- - ------------------- - - EACCES : constant := 13; -- Permission denied - EADDRINUSE : constant := 48; -- Address already in use - EADDRNOTAVAIL : constant := 49; -- Cannot assign address - EAFNOSUPPORT : constant := 47; -- Addr family not supported - EALREADY : constant := 69; -- Operation in progress - EBADF : constant := 9; -- Bad file descriptor - ECONNABORTED : constant := 53; -- Connection aborted - ECONNREFUSED : constant := 61; -- Connection refused - ECONNRESET : constant := 54; -- Connection reset by peer - EDESTADDRREQ : constant := 40; -- Destination addr required - EFAULT : constant := 14; -- Bad address - EHOSTDOWN : constant := 67; -- Host is down - EHOSTUNREACH : constant := 65; -- No route to host - EINPROGRESS : constant := 68; -- Operation now in progress - EINTR : constant := 4; -- Interrupted system call - EINVAL : constant := 22; -- Invalid argument - EIO : constant := 5; -- Input output error - EISCONN : constant := 56; -- Socket already connected - ELOOP : constant := 64; -- Too many symbolic links - EMFILE : constant := 24; -- Too many open files - EMSGSIZE : constant := 36; -- Message too long - ENAMETOOLONG : constant := 26; -- Name too long - ENETDOWN : constant := 62; -- Network is down - ENETRESET : constant := 52; -- Disconn. on network reset - ENETUNREACH : constant := 51; -- Network is unreachable - ENOBUFS : constant := 55; -- No buffer space available - ENOPROTOOPT : constant := 42; -- Protocol not available - ENOTCONN : constant := 57; -- Socket not connected - ENOTSOCK : constant := 50; -- Operation on non socket - EOPNOTSUPP : constant := 45; -- Operation not supported - EPFNOSUPPORT : constant := 46; -- Unknown protocol family - EPROTONOSUPPORT : constant := 43; -- Unknown protocol - EPROTOTYPE : constant := 41; -- Unknown protocol type - ESHUTDOWN : constant := 58; -- Cannot send once shutdown - ESOCKTNOSUPPORT : constant := 44; -- Socket type not supported - ETIMEDOUT : constant := 60; -- Connection timed out - ETOOMANYREFS : constant := 59; -- Too many references - EWOULDBLOCK : constant := 70; -- Operation would block - - ----------------- - -- Host errors -- - ----------------- - - HOST_NOT_FOUND : constant := 1; -- Unknown host - TRY_AGAIN : constant := 2; -- Host name lookup failure - NO_DATA : constant := 4; -- No data record for name - NO_RECOVERY : constant := 3; -- Non recoverable errors - - ------------------- - -- Control flags -- - ------------------- - - FIONBIO : constant := 16; -- Set/clear non-blocking io - FIONREAD : constant := 1; -- How many bytes to read - - -------------------- - -- Shutdown modes -- - -------------------- - - SHUT_RD : constant := 0; -- No more recv - SHUT_WR : constant := 1; -- No more send - SHUT_RDWR : constant := 2; -- No more recv/send - - --------------------- - -- Protocol levels -- - --------------------- - - SOL_SOCKET : constant := 65535; -- Options for socket level - IPPROTO_IP : constant := 0; -- Dummy protocol for IP - IPPROTO_UDP : constant := 17; -- UDP - IPPROTO_TCP : constant := 6; -- TCP - - ------------------- - -- Request flags -- - ------------------- - - MSG_OOB : constant := 1; -- Process out-of-band data - MSG_PEEK : constant := 2; -- Peek at incoming data - MSG_EOR : constant := 8; -- Send end of record - MSG_WAITALL : constant := 64; -- Wait for full reception - MSG_NOSIGNAL : constant := -1; -- No SIGPIPE on send - MSG_Forced_Flags : constant := 0; - -- Flags set on all send(2) calls - - -------------------- - -- Socket options -- - -------------------- - - TCP_NODELAY : constant := 1; -- Do not coalesce packets - SO_REUSEADDR : constant := 4; -- Bind reuse local address - SO_REUSEPORT : constant := 512; -- Bind reuse port number - SO_KEEPALIVE : constant := 8; -- Enable keep-alive msgs - SO_LINGER : constant := 128; -- Defer close to flush data - SO_BROADCAST : constant := 32; -- Can send broadcast msgs - SO_SNDBUF : constant := 4097; -- Set/get send buffer size - SO_RCVBUF : constant := 4098; -- Set/get recv buffer size - SO_SNDTIMEO : constant := 4101; -- Emission timeout - SO_RCVTIMEO : constant := 4102; -- Reception timeout - SO_ERROR : constant := 4103; -- Get/clear error status - IP_MULTICAST_IF : constant := 9; -- Set/get mcast interface - IP_MULTICAST_TTL : constant := 10; -- Set/get multicast TTL - IP_MULTICAST_LOOP : constant := 11; -- Set/get mcast loopback - IP_ADD_MEMBERSHIP : constant := 12; -- Join a multicast group - IP_DROP_MEMBERSHIP : constant := 13; -- Leave a multicast group - IP_PKTINFO : constant := -1; -- Get datagram info - - ------------------- - -- System limits -- - ------------------- - - IOV_MAX : constant := 2147483647; -- Maximum writev iovcnt - - ---------------------- - -- Type definitions -- - ---------------------- - - -- Sizes (in bytes) of the components of struct timeval - - SIZEOF_tv_sec : constant := 4; -- tv_sec - SIZEOF_tv_usec : constant := 4; -- tv_usec - - -- Sizes of protocol specific address types (for sockaddr.sa_len) - - SIZEOF_sockaddr_in : constant := 16; -- struct sockaddr_in - SIZEOF_sockaddr_in6 : constant := 28; -- struct sockaddr_in6 - - -- Size of file descriptor sets - - SIZEOF_fd_set : constant := 256; -- fd_set - - -- Fields of struct hostent - - subtype H_Addrtype_T is Interfaces.C.int; - subtype H_Length_T is Interfaces.C.int; - - ---------------------------------------- - -- Properties of supported interfaces -- - ---------------------------------------- - - Need_Netdb_Buffer : constant := 1; -- Need buffer for Netdb ops - Has_Sockaddr_Len : constant := 1; -- Sockaddr has sa_len field - - Thread_Blocking_IO : constant Boolean := True; - -- Set False for contexts where socket i/o are process blocking - - -------------------------------- - -- VxWorks-specific constants -- - -------------------------------- - - -- These constants may be used only within the VxWorks version of - -- GNAT.Sockets.Thin. - - OK : constant := 0; -- VxWorks generic success - ERROR : constant := -1; -- VxWorks generic error - -end GNAT.Sockets.Constants; diff --git a/gcc/ada/g-soccon.ads b/gcc/ada/g-soccon.ads deleted file mode 100644 index b7f8fe4..0000000 --- a/gcc/ada/g-soccon.ads +++ /dev/null @@ -1,215 +0,0 @@ ------------------------------------------------------------------------------- --- -- --- GNAT COMPILER COMPONENTS -- --- -- --- G N A T . S O C K E T S . C O N S T A N T S -- --- -- --- S p e c -- --- -- --- Copyright (C) 2000-2008, Free Software Foundation, Inc. -- --- -- --- GNAT is free software; you can redistribute it and/or modify it under -- --- terms of the GNU General Public License as published by the Free Soft- -- --- ware Foundation; either version 2, or (at your option) any later ver- -- --- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- --- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- --- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- --- for more details. You should have received a copy of the GNU General -- --- Public License distributed with GNAT; see file COPYING. If not, write -- --- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, -- --- Boston, MA 02110-1301, USA. -- --- -- --- As a special exception, if other files instantiate generics from this -- --- unit, or you link this unit with other files to produce an executable, -- --- this unit does not by itself cause the resulting executable to be -- --- covered by the GNU General Public License. This exception does not -- --- however invalidate any other reasons why the executable file might be -- --- covered by the GNU Public License. -- --- -- --- GNAT was originally developed by the GNAT team at New York University. -- --- Extensive contributions were provided by Ada Core Technologies Inc. -- --- -- ------------------------------------------------------------------------------- - --- This package provides target dependent definitions of constant for use --- by the GNAT.Sockets package (g-socket.ads). This package should not be --- directly with'ed by an applications program. - --- WARNING! This file is a default version that must be replaced for --- each platform by running gen-soccon.c which automatically generates --- the appropriate target specific values. - --- The values below were computed from a i686-pc-linux-gnu environment, --- but are for illustration purposes only. As noted above, part of a port --- to a new target is to replace this file appropriately. - --- This file is generated automatically, do not modify it by hand! Instead, --- make changes to gen-soccon.c and re-run it on each target. - -with Interfaces.C; -package GNAT.Sockets.Constants is - - -------------- - -- Families -- - -------------- - - AF_INET : constant := 2; -- IPv4 address family - AF_INET6 : constant := 10; -- IPv6 address family - - ----------- - -- Modes -- - ----------- - - SOCK_STREAM : constant := 1; -- Stream socket - SOCK_DGRAM : constant := 2; -- Datagram socket - - ------------------- - -- Socket errors -- - ------------------- - - EACCES : constant := 13; -- Permission denied - EADDRINUSE : constant := 98; -- Address already in use - EADDRNOTAVAIL : constant := 99; -- Cannot assign address - EAFNOSUPPORT : constant := 97; -- Addr family not supported - EALREADY : constant := 114; -- Operation in progress - EBADF : constant := 9; -- Bad file descriptor - ECONNABORTED : constant := 103; -- Connection aborted - ECONNREFUSED : constant := 111; -- Connection refused - ECONNRESET : constant := 104; -- Connection reset by peer - EDESTADDRREQ : constant := 89; -- Destination addr required - EFAULT : constant := 14; -- Bad address - EHOSTDOWN : constant := 112; -- Host is down - EHOSTUNREACH : constant := 113; -- No route to host - EINPROGRESS : constant := 115; -- Operation now in progress - EINTR : constant := 4; -- Interrupted system call - EINVAL : constant := 22; -- Invalid argument - EIO : constant := 5; -- Input output error - EISCONN : constant := 106; -- Socket already connected - ELOOP : constant := 40; -- Too many symbolic links - EMFILE : constant := 24; -- Too many open files - EMSGSIZE : constant := 90; -- Message too long - ENAMETOOLONG : constant := 36; -- Name too long - ENETDOWN : constant := 100; -- Network is down - ENETRESET : constant := 102; -- Disconn. on network reset - ENETUNREACH : constant := 101; -- Network is unreachable - ENOBUFS : constant := 105; -- No buffer space available - ENOPROTOOPT : constant := 92; -- Protocol not available - ENOTCONN : constant := 107; -- Socket not connected - ENOTSOCK : constant := 88; -- Operation on non socket - EOPNOTSUPP : constant := 95; -- Operation not supported - EPFNOSUPPORT : constant := 96; -- Unknown protocol family - EPROTONOSUPPORT : constant := 93; -- Unknown protocol - EPROTOTYPE : constant := 91; -- Unknown protocol type - ESHUTDOWN : constant := 108; -- Cannot send once shutdown - ESOCKTNOSUPPORT : constant := 94; -- Socket type not supported - ETIMEDOUT : constant := 110; -- Connection timed out - ETOOMANYREFS : constant := 109; -- Too many references - EWOULDBLOCK : constant := 11; -- Operation would block - - ----------------- - -- Host errors -- - ----------------- - - HOST_NOT_FOUND : constant := 1; -- Unknown host - TRY_AGAIN : constant := 2; -- Host name lookup failure - NO_DATA : constant := 4; -- No data record for name - NO_RECOVERY : constant := 3; -- Non recoverable errors - - ------------------- - -- Control flags -- - ------------------- - - FIONBIO : constant := 21537; -- Set/clear non-blocking io - FIONREAD : constant := 21531; -- How many bytes to read - - -------------------- - -- Shutdown modes -- - -------------------- - - SHUT_RD : constant := 0; -- No more recv - SHUT_WR : constant := 1; -- No more send - SHUT_RDWR : constant := 2; -- No more recv/send - - --------------------- - -- Protocol levels -- - --------------------- - - SOL_SOCKET : constant := 1; -- Options for socket level - IPPROTO_IP : constant := 0; -- Dummy protocol for IP - IPPROTO_UDP : constant := 17; -- UDP - IPPROTO_TCP : constant := 6; -- TCP - - ------------------- - -- Request flags -- - ------------------- - - MSG_OOB : constant := 1; -- Process out-of-band data - MSG_PEEK : constant := 2; -- Peek at incoming data - MSG_EOR : constant := 128; -- Send end of record - MSG_WAITALL : constant := 256; -- Wait for full reception - MSG_NOSIGNAL : constant := 16384; -- No SIGPIPE on send - MSG_Forced_Flags : constant := MSG_NOSIGNAL; - -- Flags set on all send(2) calls - - -------------------- - -- Socket options -- - -------------------- - - TCP_NODELAY : constant := 1; -- Do not coalesce packets - SO_REUSEADDR : constant := 2; -- Bind reuse local address - SO_REUSEPORT : constant := -1; -- Bind reuse port number - SO_KEEPALIVE : constant := 9; -- Enable keep-alive msgs - SO_LINGER : constant := 13; -- Defer close to flush data - SO_BROADCAST : constant := 6; -- Can send broadcast msgs - SO_SNDBUF : constant := 7; -- Set/get send buffer size - SO_RCVBUF : constant := 8; -- Set/get recv buffer size - SO_SNDTIMEO : constant := 21; -- Emission timeout - SO_RCVTIMEO : constant := 20; -- Reception timeout - SO_ERROR : constant := 4; -- Get/clear error status - IP_MULTICAST_IF : constant := 32; -- Set/get mcast interface - IP_MULTICAST_TTL : constant := 33; -- Set/get multicast TTL - IP_MULTICAST_LOOP : constant := 34; -- Set/get mcast loopback - IP_ADD_MEMBERSHIP : constant := 35; -- Join a multicast group - IP_DROP_MEMBERSHIP : constant := 36; -- Leave a multicast group - IP_PKTINFO : constant := 8; -- Get datagram info - - ------------------- - -- System limits -- - ------------------- - - IOV_MAX : constant := 2147483647; -- Maximum writev iovcnt - - ---------------------- - -- Type definitions -- - ---------------------- - - -- Sizes (in bytes) of the components of struct timeval - - SIZEOF_tv_sec : constant := 4; -- tv_sec - SIZEOF_tv_usec : constant := 4; -- tv_usec - - -- Sizes of protocol specific address types (for sockaddr.sa_len) - - SIZEOF_sockaddr_in : constant := 16; -- struct sockaddr_in - SIZEOF_sockaddr_in6 : constant := 28; -- struct sockaddr_in6 - - -- Size of file descriptor sets - - SIZEOF_fd_set : constant := 128; -- fd_set - - -- Fields of struct hostent - - subtype H_Addrtype_T is Interfaces.C.int; - subtype H_Length_T is Interfaces.C.int; - - ---------------------------------------- - -- Properties of supported interfaces -- - ---------------------------------------- - - Need_Netdb_Buffer : constant := 1; -- Need buffer for Netdb ops - Has_Sockaddr_Len : constant := 0; -- Sockaddr has sa_len field - - Thread_Blocking_IO : constant Boolean := True; - -- Set False for contexts where socket i/o are process blocking - -end GNAT.Sockets.Constants; diff --git a/gcc/ada/g-socket.adb b/gcc/ada/g-socket.adb index 4b39940..e1fc409 100644 --- a/gcc/ada/g-socket.adb +++ b/gcc/ada/g-socket.adb @@ -37,7 +37,6 @@ with Ada.Unchecked_Conversion; with Interfaces.C.Strings; -with GNAT.Sockets.Constants; with GNAT.Sockets.Thin_Common; use GNAT.Sockets.Thin_Common; with GNAT.Sockets.Thin; use GNAT.Sockets.Thin; with GNAT.Sockets.Thin.Task_Safe_NetDB; use GNAT.Sockets.Thin.Task_Safe_NetDB; diff --git a/gcc/ada/g-socket.ads b/gcc/ada/g-socket.ads index 58255f0..5ec8405 100644 --- a/gcc/ada/g-socket.ads +++ b/gcc/ada/g-socket.ads @@ -52,6 +52,8 @@ with Ada.Exceptions; with Ada.Streams; with Ada.Unchecked_Deallocation; +with System.OS_Constants; + package GNAT.Sockets is -- Sockets are designed to provide a consistent communication facility @@ -367,6 +369,12 @@ package GNAT.Sockets is -- Finalize; -- end PingPong; + package Constants renames System.OS_Constants; + -- Renaming used to provide short-hand notations thoughout the sockets + -- binding. Note that System.OS_Constants is an internal unit, and the + -- entities declared therein are not meant for direct access by users, + -- including through this renaming. + procedure Initialize; -- Initialize must be called before using any other socket routines. -- Note that this operation is a no-op on UNIX platforms, but applications @@ -404,9 +412,12 @@ package GNAT.Sockets is -- structure. Moreover, negative values are not allowed to avoid system -- incompatibilities. - Immediate : constant := 0.0; - Forever : constant := Duration (Integer'Last) * 1.0; - -- Should be Duration 2 ** (Constants.SIZEOF_tv_sec * 8 - 1) - 1 ??? + Immediate : constant Duration := 0.0; + + Timeval_Forever : constant := + 2.0 ** (Constants.SIZEOF_tv_sec * 8 - 1) - 1.0; + Forever : constant Duration := + Duration'Min (Duration'Last, Timeval_Forever); subtype Timeval_Duration is Duration range Immediate .. Forever; diff --git a/gcc/ada/g-socthi-mingw.adb b/gcc/ada/g-socthi-mingw.adb index ad99f9b..3e13641 100644 --- a/gcc/ada/g-socthi-mingw.adb +++ b/gcc/ada/g-socthi-mingw.adb @@ -39,7 +39,6 @@ with Interfaces.C.Strings; use Interfaces.C.Strings; with System; use System; -with GNAT.Sockets.Constants; package body GNAT.Sockets.Thin is diff --git a/gcc/ada/g-socthi-vms.adb b/gcc/ada/g-socthi-vms.adb index f71bb23..b94e0d0 100644 --- a/gcc/ada/g-socthi-vms.adb +++ b/gcc/ada/g-socthi-vms.adb @@ -34,7 +34,6 @@ -- Temporary version for Alpha/VMS with GNAT.OS_Lib; use GNAT.OS_Lib; -with GNAT.Sockets.Constants; with GNAT.Task_Lock; with Interfaces.C; use Interfaces.C; diff --git a/gcc/ada/g-socthi-vxworks.adb b/gcc/ada/g-socthi-vxworks.adb index 0077e27..1872b8b 100644 --- a/gcc/ada/g-socthi-vxworks.adb +++ b/gcc/ada/g-socthi-vxworks.adb @@ -38,7 +38,6 @@ -- This version is for VxWorks with GNAT.OS_Lib; use GNAT.OS_Lib; -with GNAT.Sockets.Constants; with GNAT.Task_Lock; with Interfaces.C; use Interfaces.C; diff --git a/gcc/ada/g-socthi.adb b/gcc/ada/g-socthi.adb index 19642aa..cc90c64 100644 --- a/gcc/ada/g-socthi.adb +++ b/gcc/ada/g-socthi.adb @@ -38,7 +38,6 @@ -- This is the default version with GNAT.OS_Lib; use GNAT.OS_Lib; -with GNAT.Sockets.Constants; with GNAT.Task_Lock; with Interfaces.C; use Interfaces.C; diff --git a/gcc/ada/g-sothco.ads b/gcc/ada/g-sothco.ads index fee3761..5780c03 100644 --- a/gcc/ada/g-sothco.ads +++ b/gcc/ada/g-sothco.ads @@ -40,8 +40,6 @@ with Interfaces.C; with Interfaces.C.Pointers; with Interfaces.C.Strings; -with GNAT.Sockets.Constants; - package GNAT.Sockets.Thin_Common is package C renames Interfaces.C; diff --git a/gcc/ada/g-sttsne-vxworks.adb b/gcc/ada/g-sttsne-vxworks.adb index 7f14255..161029d 100644 --- a/gcc/ada/g-sttsne-vxworks.adb +++ b/gcc/ada/g-sttsne-vxworks.adb @@ -36,7 +36,6 @@ with Ada.Unchecked_Conversion; with Interfaces.C; use Interfaces.C; -with GNAT.Sockets.Constants; package body GNAT.Sockets.Thin.Task_Safe_NetDB is diff --git a/gcc/ada/gcc-interface/Makefile.in b/gcc/ada/gcc-interface/Makefile.in index 913add5..49a32cc 100644 --- a/gcc/ada/gcc-interface/Makefile.in +++ b/gcc/ada/gcc-interface/Makefile.in @@ -368,7 +368,7 @@ PREFIX_REAL_OBJS = ../prefix.o \ # sockets, reset this variable to empty and add DUMMY_SOCKETS_TARGET_PAIRS # to LIBGNAT_TARGET_PAIRS. -GNATRTL_SOCKETS_OBJS = g-soccon$(objext) g-socket$(objext) g-socthi$(objext) \ +GNATRTL_SOCKETS_OBJS = g-socket$(objext) g-socthi$(objext) \ g-soliop$(objext) g-sothco$(objext) g-sttsne$(objext) DUMMY_SOCKETS_TARGET_PAIRS = \ @@ -405,7 +405,6 @@ ifeq ($(strip $(filter-out m68k% wrs vx%,$(targ))),) s-taspri.ads -#include -#include -#include -#include - -#if !defined (__vxworks) && !defined (__VMS) -# include -#endif - -#include "gsocket.h" - -typedef enum { NUM, TXT } kind_t; - -struct line { - char *text; - char *value; - char *comment; - kind_t kind; - struct line *next; -}; - -struct line *first = NULL, *last = NULL; - -#define TXT(_text) add_line(_text, NULL, NULL, TXT); -/* Plain text */ - -#define _NL TXT("") -/* Empty line */ - -#define itoad(n) f_itoa ("%d", (n)) -#define itoax(n) f_itoa ("16#%08x#", (n)) - -#define CND(name,comment) add_line(#name, itoad (name), comment, NUM); -/* Constant (decimal) */ - -#define CNX(name,comment) add_line(#name, itoax (name), comment, NUM); -/* Constant (hexadecimal) */ - -#define CN_(name,comment) add_line(#name, name, comment, TXT); -/* Constant (generic) */ - -#define STR(p) STR1(p) -#define STR1(p) #p - -void output (void); -/* Generate output spec */ - -char *f_itoa (char *, int); -/* int to string */ - -void add_line (char *, char*, char*, kind_t); - -#ifdef __MINGW32__ -unsigned int _CRT_fmode = _O_BINARY; -#endif - -int -main (void) { - -TXT("------------------------------------------------------------------------------") -TXT("-- --") -TXT("-- GNAT COMPILER COMPONENTS --") -TXT("-- --") -TXT("-- S Y S T E M . O S _ C O N S T A N T S --") -TXT("-- --") -TXT("-- S p e c --") -TXT("-- --") -TXT("-- Copyright (C) 2000-2008, Free Software Foundation, Inc. --") -TXT("-- --") -TXT("-- GNAT is free software; you can redistribute it and/or modify it under --") -TXT("-- terms of the GNU General Public License as published by the Free Soft- --") -TXT("-- ware Foundation; either version 2, or (at your option) any later ver- --") -TXT("-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --") -TXT("-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --") -TXT("-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --") -TXT("-- for more details. You should have received a copy of the GNU General --") -TXT("-- Public License distributed with GNAT; see file COPYING. If not, write --") -TXT("-- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, --") -TXT("-- Boston, MA 02110-1301, USA. --") -TXT("-- --") -TXT("-- As a special exception, if other files instantiate generics from this --") -TXT("-- unit, or you link this unit with other files to produce an executable, --") -TXT("-- this unit does not by itself cause the resulting executable to be --") -TXT("-- covered by the GNU General Public License. This exception does not --") -TXT("-- however invalidate any other reasons why the executable file might be --") -TXT("-- covered by the GNU Public License. --") -TXT("-- --") -TXT("-- GNAT was originally developed by the GNAT team at New York University. --") -TXT("-- Extensive contributions were provided by Ada Core Technologies Inc. --") -TXT("-- --") -TXT("------------------------------------------------------------------------------") -_NL -TXT("-- This package provides target dependent definitions of constant for use") -TXT("-- by the GNAT runtime library. This package should not be directly with'd") -TXT("-- by an application program.") -_NL -TXT("-- This is the version for " TARGET) -TXT("-- This file is generated automatically, do not modify it by hand! Instead,") -TXT("-- make changes to gen-oscon.c and re-run it on each target.") -_NL -TXT("with Interfaces.C;") -TXT("package System.OS_Constants is") -_NL -TXT(" pragma Pure;") -_NL -TXT(" ---------------------") -TXT(" -- File open modes --") -TXT(" ---------------------") -_NL - -#ifndef O_RDWR -# define O_RDWR -1 -#endif -CND(O_RDWR, "Read/write") - -#ifndef O_NOCTTY -# define O_NOCTTY -1 -#endif -CND(O_NOCTTY, "Don't change ctrl tty") - -#ifndef O_NDELAY -# define O_NDELAY -1 -#endif -CND(O_NDELAY, "Nonblocking") - -_NL -TXT(" ----------------------") -TXT(" -- Fcntl operations --") -TXT(" ----------------------") -_NL - -#ifndef F_GETFL -# define F_GETFL -1 -#endif -CND(F_GETFL, "Get flags") - -#ifndef F_SETFL -# define F_SETFL -1 -#endif -CND(F_SETFL, "Set flags") - -_NL -TXT(" -----------------") -TXT(" -- Fcntl flags --") -TXT(" -----------------") -_NL - -#ifndef FNDELAY -# define FNDELAY -1 -#endif -CND(FNDELAY, "Nonblocking") - -#if !defined(__vxworks) && !defined(__VMS) - -_NL -TXT(" ----------------------") -TXT(" -- Termical control --") -TXT(" ----------------------") -_NL - -#ifndef TCSANOW -# define TCSANOW -1 -#endif -CND(TCSANOW, "Immediate") - -#ifndef TCIFLUSH -# define TCIFLUSH -1 -#endif -CND(TCIFLUSH, "Flush input") - -#ifndef CLOCAL -# define CLOCAL -1 -#endif -CND(CLOCAL, "Local") - -#ifndef CRTSCTS -# define CRTSCTS -1 -#endif -CND(CRTSCTS, "Hardware flow control") - -#ifndef CREAD -# define CREAD -1 -#endif -CND(CREAD, "Read") - -#ifndef CS5 -# define CS5 -1 -#endif -CND(CS5, "5 data bits") - -#ifndef CS6 -# define CS6 -1 -#endif -CND(CS6, "6 data bits") - -#ifndef CS7 -# define CS7 -1 -#endif -CND(CS7, "7 data bits") - -#ifndef CS8 -# define CS8 -1 -#endif -CND(CS8, "8 data bits") - -#ifndef CSTOPB -# define CSTOPB -1 -#endif -CND(CSTOPB, "2 stop bits") - -#ifndef PARENB -# define PARENB -1 -#endif -CND(PARENB, "Parity enable") - -#ifndef PARODD -# define PARODD -1 -#endif -CND(PARODD, "Parity odd") - -#ifndef B0 -# define B0 -1 -#endif -CND(B0, "0 bps") - -#ifndef B50 -# define B50 -1 -#endif -CND(B50, "50 bps") - -#ifndef B75 -# define B75 -1 -#endif -CND(B75, "75 bps") - -#ifndef B110 -# define B110 -1 -#endif -CND(B110, "110 bps") - -#ifndef B134 -# define B134 -1 -#endif -CND(B134, "134 bps") - -#ifndef B150 -# define B150 -1 -#endif -CND(B150, "150 bps") - -#ifndef B200 -# define B200 -1 -#endif -CND(B200, "200 bps") - -#ifndef B300 -# define B300 -1 -#endif -CND(B300, "300 bps") - -#ifndef B600 -# define B600 -1 -#endif -CND(B600, "600 bps") - -#ifndef B1200 -# define B1200 -1 -#endif -CND(B1200, "1200 bps") - -#ifndef B1800 -# define B1800 -1 -#endif -CND(B1800, "1800 bps") - -#ifndef B2400 -# define B2400 -1 -#endif -CND(B2400, "2400 bps") - -#ifndef B4800 -# define B4800 -1 -#endif -CND(B4800, "4800 bps") - -#ifndef B9600 -# define B9600 -1 -#endif -CND(B9600, "9600 bps") - -#ifndef B19200 -# define B19200 -1 -#endif -CND(B19200, "19200 bps") - -#ifndef B38400 -# define B38400 -1 -#endif -CND(B38400, "38400 bps") - -#ifndef B57600 -# define B57600 -1 -#endif -CND(B57600, "57600 bps") - -#ifndef B115200 -# define B115200 -1 -#endif -CND(B115200, "115200 bps") - -#ifndef B230400 -# define B230400 -1 -#endif -CND(B230400, "230400 bps") - -#ifndef B460800 -# define B460800 -1 -#endif -CND(B460800, "460800 bps") - -#ifndef B500000 -# define B500000 -1 -#endif -CND(B500000, "500000 bps") - -#ifndef B576000 -# define B576000 -1 -#endif -CND(B576000, "576000 bps") - -#ifndef B921600 -# define B921600 -1 -#endif -CND(B921600, "921600 bps") - -#ifndef B1000000 -# define B1000000 -1 -#endif -CND(B1000000, "1000000 bps") - -#ifndef B1152000 -# define B1152000 -1 -#endif -CND(B1152000, "1152000 bps") - -#ifndef B1500000 -# define B1500000 -1 -#endif -CND(B1500000, "1500000 bps") - -#ifndef B2000000 -# define B2000000 -1 -#endif -CND(B2000000, "2000000 bps") - -#ifndef B2500000 -# define B2500000 -1 -#endif -CND(B2500000, "2500000 bps") - -#ifndef B3000000 -# define B3000000 -1 -#endif -CND(B3000000, "3000000 bps") - -#ifndef B3500000 -# define B3500000 -1 -#endif -CND(B3500000, "3500000 bps") - -#ifndef B4000000 -# define B4000000 -1 -#endif -CND(B4000000, "4000000 bps") - -_NL -TXT(" ---------------------------------") -TXT(" -- Terminal control characters --") -TXT(" ---------------------------------") -_NL - -#ifndef VINTR -# define VINTR -1 -#endif -CND(VINTR, "Interrupt") - -#ifndef VQUIT -# define VQUIT -1 -#endif -CND(VQUIT, "Quit") - -#ifndef VERASE -# define VERASE -1 -#endif -CND(VERASE, "Erase") - -#ifndef VKILL -# define VKILL -1 -#endif -CND(VKILL, "Kill") - -#ifndef VEOF -# define VEOF -1 -#endif -CND(VEOF, "EOF") - -#ifndef VTIME -# define VTIME -1 -#endif -CND(VTIME, "Read timeout") - -#ifndef VMIN -# define VMIN -1 -#endif -CND(VMIN, "Read min chars") - -#ifndef VSWTC -# define VSWTC -1 -#endif -CND(VSWTC, "Switch") - -#ifndef VSTART -# define VSTART -1 -#endif -CND(VSTART, "Flow control start") - -#ifndef VSTOP -# define VSTOP -1 -#endif -CND(VSTOP, "Flow control stop") - -#ifndef VSUSP -# define VSUSP -1 -#endif -CND(VSUSP, "Suspend") - -#ifndef VEOL -# define VEOL -1 -#endif -CND(VEOL, "EOL") - -#ifndef VREPRINT -# define VREPRINT -1 -#endif -CND(VREPRINT, "Reprint unread") - -#ifndef VDISCARD -# define VDISCARD -1 -#endif -CND(VDISCARD, "Discard pending") - -#ifndef VWERASE -# define VWERASE -1 -#endif -CND(VWERASE, "Word erase") - -#ifndef VLNEXT -# define VLNEXT -1 -#endif -CND(VLNEXT, "Literal next") - -#ifndef VEOL2 -# define VEOL2 -1 -#endif -CND(VEOL2, "Alternative EOL") - -#endif /* !defined(__vxworks) && !defined(__VMS) */ - -_NL -TXT(" --------------") -TXT(" -- Families --") -TXT(" --------------") -_NL - -#ifndef AF_INET -# define AF_INET -1 -#endif -CND(AF_INET, "IPv4 address family") - -#ifndef AF_INET6 -# define AF_INET6 -1 -#else -# define HAVE_AF_INET6 1 -#endif -CND(AF_INET6, "IPv6 address family") -_NL -TXT(" ------------------") -TXT(" -- Socket modes --") -TXT(" ------------------") -_NL - -#ifndef SOCK_STREAM -# define SOCK_STREAM -1 -#endif -CND(SOCK_STREAM, "Stream socket") - -#ifndef SOCK_DGRAM -# define SOCK_DGRAM -1 -#endif -CND(SOCK_DGRAM, "Datagram socket") -_NL -TXT(" ------------------") -TXT(" -- Errno values --") -TXT(" ------------------") -_NL - -#ifndef EACCES -# define EACCES -1 -#endif -CND(EACCES, "Permission denied") - -#ifndef EADDRINUSE -# define EADDRINUSE -1 -#endif -CND(EADDRINUSE, "Address already in use") - -#ifndef EADDRNOTAVAIL -# define EADDRNOTAVAIL -1 -#endif -CND(EADDRNOTAVAIL, "Cannot assign address") - -#ifndef EAFNOSUPPORT -# define EAFNOSUPPORT -1 -#endif -CND(EAFNOSUPPORT, "Addr family not supported") - -#ifndef EAGAIN -# define EAGAIN -1 -#endif -CND(EAGAIN, "Try again") - -#ifndef EALREADY -# define EALREADY -1 -#endif -CND(EALREADY, "Operation in progress") - -#ifndef EBADF -# define EBADF -1 -#endif -CND(EBADF, "Bad file descriptor") - -#ifndef ECONNABORTED -# define ECONNABORTED -1 -#endif -CND(ECONNABORTED, "Connection aborted") - -#ifndef ECONNREFUSED -# define ECONNREFUSED -1 -#endif -CND(ECONNREFUSED, "Connection refused") - -#ifndef ECONNRESET -# define ECONNRESET -1 -#endif -CND(ECONNRESET, "Connection reset by peer") - -#ifndef EDESTADDRREQ -# define EDESTADDRREQ -1 -#endif -CND(EDESTADDRREQ, "Destination addr required") - -#ifndef EFAULT -# define EFAULT -1 -#endif -CND(EFAULT, "Bad address") - -#ifndef EHOSTDOWN -# define EHOSTDOWN -1 -#endif -CND(EHOSTDOWN, "Host is down") - -#ifndef EHOSTUNREACH -# define EHOSTUNREACH -1 -#endif -CND(EHOSTUNREACH, "No route to host") - -#ifndef EINPROGRESS -# define EINPROGRESS -1 -#endif -CND(EINPROGRESS, "Operation now in progress") - -#ifndef EINTR -# define EINTR -1 -#endif -CND(EINTR, "Interrupted system call") - -#ifndef EINVAL -# define EINVAL -1 -#endif -CND(EINVAL, "Invalid argument") - -#ifndef EIO -# define EIO -1 -#endif -CND(EIO, "Input output error") - -#ifndef EISCONN -# define EISCONN -1 -#endif -CND(EISCONN, "Socket already connected") - -#ifndef ELOOP -# define ELOOP -1 -#endif -CND(ELOOP, "Too many symbolic links") - -#ifndef EMFILE -# define EMFILE -1 -#endif -CND(EMFILE, "Too many open files") - -#ifndef EMSGSIZE -# define EMSGSIZE -1 -#endif -CND(EMSGSIZE, "Message too long") - -#ifndef ENAMETOOLONG -# define ENAMETOOLONG -1 -#endif -CND(ENAMETOOLONG, "Name too long") - -#ifndef ENETDOWN -# define ENETDOWN -1 -#endif -CND(ENETDOWN, "Network is down") - -#ifndef ENETRESET -# define ENETRESET -1 -#endif -CND(ENETRESET, "Disconn. on network reset") - -#ifndef ENETUNREACH -# define ENETUNREACH -1 -#endif -CND(ENETUNREACH, "Network is unreachable") - -#ifndef ENOBUFS -# define ENOBUFS -1 -#endif -CND(ENOBUFS, "No buffer space available") - -#ifndef ENOENT -# define ENOENT -1 -#endif -CND(ENOENT, "File not found") - -#ifndef ENOMEM -# define ENOMEM -1 -#endif -CND(ENOMEM, "Out of memory") - -#ifndef ENOPROTOOPT -# define ENOPROTOOPT -1 -#endif -CND(ENOPROTOOPT, "Protocol not available") - -#ifndef ENOTCONN -# define ENOTCONN -1 -#endif -CND(ENOTCONN, "Socket not connected") - -#ifndef ENOTSOCK -# define ENOTSOCK -1 -#endif -CND(ENOTSOCK, "Operation on non socket") - -#ifndef EOPNOTSUPP -# define EOPNOTSUPP -1 -#endif -CND(EOPNOTSUPP, "Operation not supported") - -#ifndef EPFNOSUPPORT -# define EPFNOSUPPORT -1 -#endif -CND(EPFNOSUPPORT, "Unknown protocol family") - -#ifndef EPROTONOSUPPORT -# define EPROTONOSUPPORT -1 -#endif -CND(EPROTONOSUPPORT, "Unknown protocol") - -#ifndef EPROTOTYPE -# define EPROTOTYPE -1 -#endif -CND(EPROTOTYPE, "Unknown protocol type") - -#ifndef ESHUTDOWN -# define ESHUTDOWN -1 -#endif -CND(ESHUTDOWN, "Cannot send once shutdown") - -#ifndef ESOCKTNOSUPPORT -# define ESOCKTNOSUPPORT -1 -#endif -CND(ESOCKTNOSUPPORT, "Socket type not supported") - -#ifndef ETIMEDOUT -# define ETIMEDOUT -1 -#endif -CND(ETIMEDOUT, "Connection timed out") - -#ifndef ETOOMANYREFS -# define ETOOMANYREFS -1 -#endif -CND(ETOOMANYREFS, "Too many references") - -#ifndef EWOULDBLOCK -# define EWOULDBLOCK -1 -#endif -CND(EWOULDBLOCK, "Operation would block") -_NL -TXT(" -----------------") -TXT(" -- Host errors --") -TXT(" -----------------") -_NL - -#ifndef HOST_NOT_FOUND -# define HOST_NOT_FOUND -1 -#endif -CND(HOST_NOT_FOUND, "Unknown host") - -#ifndef TRY_AGAIN -# define TRY_AGAIN -1 -#endif -CND(TRY_AGAIN, "Host name lookup failure") - -#ifndef NO_DATA -# define NO_DATA -1 -#endif -CND(NO_DATA, "No data record for name") - -#ifndef NO_RECOVERY -# define NO_RECOVERY -1 -#endif -CND(NO_RECOVERY, "Non recoverable errors") -_NL -TXT(" ----------------------") -TXT(" -- Ioctl operatings --") -TXT(" ----------------------") -_NL - -#ifndef FIONBIO -# define FIONBIO -1 -#endif -CND(FIONBIO, "Set/clear non-blocking io") - -#ifndef FIONREAD -# define FIONREAD -1 -#endif -CND(FIONREAD, "How many bytes to read") -_NL -TXT(" --------------------") -TXT(" -- Shutdown modes --") -TXT(" --------------------") -_NL - -#ifndef SHUT_RD -# define SHUT_RD -1 -#endif -CND(SHUT_RD, "No more recv") - -#ifndef SHUT_WR -# define SHUT_WR -1 -#endif -CND(SHUT_WR, "No more send") - -#ifndef SHUT_RDWR -# define SHUT_RDWR -1 -#endif -CND(SHUT_RDWR, "No more recv/send") -_NL -TXT(" ---------------------") -TXT(" -- Protocol levels --") -TXT(" ---------------------") -_NL - -#ifndef SOL_SOCKET -# define SOL_SOCKET -1 -#endif -CND(SOL_SOCKET, "Options for socket level") - -#ifndef IPPROTO_IP -# define IPPROTO_IP -1 -#endif -CND(IPPROTO_IP, "Dummy protocol for IP") - -#ifndef IPPROTO_UDP -# define IPPROTO_UDP -1 -#endif -CND(IPPROTO_UDP, "UDP") - -#ifndef IPPROTO_TCP -# define IPPROTO_TCP -1 -#endif -CND(IPPROTO_TCP, "TCP") -_NL -TXT(" -------------------") -TXT(" -- Request flags --") -TXT(" -------------------") -_NL - -#ifndef MSG_OOB -# define MSG_OOB -1 -#endif -CND(MSG_OOB, "Process out-of-band data") - -#ifndef MSG_PEEK -# define MSG_PEEK -1 -#endif -CND(MSG_PEEK, "Peek at incoming data") - -#ifndef MSG_EOR -# define MSG_EOR -1 -#endif -CND(MSG_EOR, "Send end of record") - -#ifndef MSG_WAITALL -# define MSG_WAITALL -1 -#endif -CND(MSG_WAITALL, "Wait for full reception") - -#ifndef MSG_NOSIGNAL -# define MSG_NOSIGNAL -1 -#endif -CND(MSG_NOSIGNAL, "No SIGPIPE on send") - -#ifdef __linux__ -# define MSG_Forced_Flags "MSG_NOSIGNAL" -#else -# define MSG_Forced_Flags "0" -#endif -CN_(MSG_Forced_Flags, "") -TXT(" -- Flags set on all send(2) calls") - -_NL -TXT(" --------------------") -TXT(" -- Socket options --") -TXT(" --------------------") -_NL - -#ifndef TCP_NODELAY -# define TCP_NODELAY -1 -#endif -CND(TCP_NODELAY, "Do not coalesce packets") - -#ifndef SO_REUSEADDR -# define SO_REUSEADDR -1 -#endif -CND(SO_REUSEADDR, "Bind reuse local address") - -#ifndef SO_REUSEPORT -# define SO_REUSEPORT -1 -#endif -CND(SO_REUSEPORT, "Bind reuse port number") - -#ifndef SO_KEEPALIVE -# define SO_KEEPALIVE -1 -#endif -CND(SO_KEEPALIVE, "Enable keep-alive msgs") - -#ifndef SO_LINGER -# define SO_LINGER -1 -#endif -CND(SO_LINGER, "Defer close to flush data") - -#ifndef SO_BROADCAST -# define SO_BROADCAST -1 -#endif -CND(SO_BROADCAST, "Can send broadcast msgs") - -#ifndef SO_SNDBUF -# define SO_SNDBUF -1 -#endif -CND(SO_SNDBUF, "Set/get send buffer size") - -#ifndef SO_RCVBUF -# define SO_RCVBUF -1 -#endif -CND(SO_RCVBUF, "Set/get recv buffer size") - -#ifndef SO_SNDTIMEO -# define SO_SNDTIMEO -1 -#endif -CND(SO_SNDTIMEO, "Emission timeout") - -#ifndef SO_RCVTIMEO -# define SO_RCVTIMEO -1 -#endif -CND(SO_RCVTIMEO, "Reception timeout") - -#ifndef SO_ERROR -# define SO_ERROR -1 -#endif -CND(SO_ERROR, "Get/clear error status") - -#ifndef IP_MULTICAST_IF -# define IP_MULTICAST_IF -1 -#endif -CND(IP_MULTICAST_IF, "Set/get mcast interface") - -#ifndef IP_MULTICAST_TTL -# define IP_MULTICAST_TTL -1 -#endif -CND(IP_MULTICAST_TTL, "Set/get multicast TTL") - -#ifndef IP_MULTICAST_LOOP -# define IP_MULTICAST_LOOP -1 -#endif -CND(IP_MULTICAST_LOOP, "Set/get mcast loopback") - -#ifndef IP_ADD_MEMBERSHIP -# define IP_ADD_MEMBERSHIP -1 -#endif -CND(IP_ADD_MEMBERSHIP, "Join a multicast group") - -#ifndef IP_DROP_MEMBERSHIP -# define IP_DROP_MEMBERSHIP -1 -#endif -CND(IP_DROP_MEMBERSHIP, "Leave a multicast group") - -#ifndef IP_PKTINFO -# define IP_PKTINFO -1 -#endif -CND(IP_PKTINFO, "Get datagram info") - -_NL -TXT(" -------------------") -TXT(" -- System limits --") -TXT(" -------------------") -_NL - -#ifndef IOV_MAX -# define IOV_MAX INT_MAX -#endif -CND(IOV_MAX, "Maximum writev iovcnt") - -_NL -TXT(" ----------------------") -TXT(" -- Type definitions --") -TXT(" ----------------------") -_NL - -{ - struct timeval tv; -TXT(" -- Sizes (in bytes) of the components of struct timeval") -_NL -#define SIZEOF_tv_sec (sizeof tv.tv_sec) -CND(SIZEOF_tv_sec, "tv_sec") -#define SIZEOF_tv_usec (sizeof tv.tv_usec) -CND(SIZEOF_tv_usec, "tv_usec") -} -_NL -TXT(" -- Sizes of protocol specific address types (for sockaddr.sa_len)") -_NL -#define SIZEOF_sockaddr_in (sizeof (struct sockaddr_in)) -CND(SIZEOF_sockaddr_in, "struct sockaddr_in") -#ifdef HAVE_AF_INET6 -# define SIZEOF_sockaddr_in6 (sizeof (struct sockaddr_in6)) -#else -# define SIZEOF_sockaddr_in6 0 -#endif -CND(SIZEOF_sockaddr_in6, "struct sockaddr_in6") -_NL -TXT(" -- Size of file descriptor sets") -_NL -#define SIZEOF_fd_set (sizeof (fd_set)) -CND(SIZEOF_fd_set, "fd_set"); -_NL -TXT(" -- Fields of struct hostent") -_NL -#ifdef __MINGW32__ -# define h_addrtype_t "short" -# define h_length_t "short" -#else -# define h_addrtype_t "int" -# define h_length_t "int" -#endif -TXT(" subtype H_Addrtype_T is Interfaces.C." h_addrtype_t ";") -TXT(" subtype H_Length_T is Interfaces.C." h_length_t ";") -_NL -TXT(" ----------------------------------------") -TXT(" -- Properties of supported interfaces --") -TXT(" ----------------------------------------") -_NL - -CND(Need_Netdb_Buffer, "Need buffer for Netdb ops") -CND(Has_Sockaddr_Len, "Sockaddr has sa_len field") -_NL -TXT(" Thread_Blocking_IO : constant Boolean := True;") -TXT(" -- Set False for contexts where socket i/o are process blocking") - -#ifdef __vxworks -_NL -TXT(" --------------------------------") -TXT(" -- VxWorks-specific constants --") -TXT(" --------------------------------") -_NL -TXT(" -- These constants may be used only within the VxWorks version of") -TXT(" -- GNAT.Sockets.Thin.") -_NL - -CND(OK, "VxWorks generic success") -CND(ERROR, "VxWorks generic error") -#endif - -#ifdef __MINGW32__ -_NL -TXT(" ------------------------------") -TXT(" -- MinGW-specific constants --") -TXT(" ------------------------------") -_NL -TXT(" -- These constants may be used only within the MinGW version of") -TXT(" -- GNAT.Sockets.Thin.") -_NL - -CND(WSASYSNOTREADY, "System not ready") -CND(WSAVERNOTSUPPORTED, "Version not supported") -CND(WSANOTINITIALISED, "Winsock not initialized") -CND(WSAEDISCON, "Disconnected") -#endif - -_NL -TXT("end System.OS_Constants;") - - output (); - return 0; -} - -void -output (void) { - int text_max = 0, value_max = 0, l; - struct line *p; - char fmt[64]; -#define UPD_MAX(x) do { \ - l = strlen (p->x); \ - if (l > x ## _max) x ## _max = l; \ -} while (0) - - for (p = first; p != NULL; p = p->next) { - if (p->value != NULL) { - UPD_MAX(text); - if (p->kind == NUM) - UPD_MAX(value); - } - } - sprintf (fmt, " %%-%ds : constant := %%%ds;%%s%%s\n", - text_max, value_max); - - for (p = first; p != NULL; p = p->next) { - if (p->value == NULL) { - printf ("%s\n", p->text); - } else { - char *comment_sep = (strlen (p->comment) > 0) - ? " -- " : ""; - printf (fmt, p->text, p->value, comment_sep, p->comment); - } - } -} - -char * -f_itoa (char *fmt, int n) { - char buf[32], *ret; - sprintf (buf, fmt, n); - ret = malloc (strlen (buf) + 1); - if (ret != NULL) - strcpy (ret, buf); - return ret; -} - -void -add_line (char *_text, char *_value, char *_comment, kind_t _kind) { - struct line *l = (struct line *) malloc (sizeof (struct line)); - - l->text = _text; - l->value = _value; - l->comment = _comment; - l->kind = _kind; - l->next = NULL; - - if (last == NULL) - first = last = l; - else { - last->next = l; - last = l; - } -}