r135612 - in /trunk/gcc/ada: Makefile.rtl g-soc...
charlet@gcc.gnu.org
charlet@gcc.gnu.org
Tue May 20 12:43:00 GMT 2008
Author: charlet
Date: Tue May 20 12:43:29 2008
New Revision: 135612
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=135612
Log:
2008-05-20 Thomas Quinot <quinot@adacore.com>
* Makefile.rtl (GNAT.Sockets.Thin_Common): New unit.
* g-sttsne-vxworks.adb: Add missing dependency on Sockets.Constants.
Add missing "with" of Ada.Unchecked_Conversion
* g-soccon-linux-ppc.ads, g-soccon-linux-64.ads, g-soccon-lynxos.ads,
g-soccon-linux-x86.ads, g-soccon-hpux-ia64.ads,
g-soccon-solaris-64.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
g-socthi-vxworks.adb, g-soccon-freebsd.ads, g-soccon.ads:
Move common code out of GNAT.Sockets.Thin implementations and into
Thin_Common.
New constant SIZEOF_fd_set
New flag Has_Sockaddr_Len
New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
* g-stsifd-sockets.adb
(Create): Remove call to Set_Length; use Set_Family to set the family
and (on appropriate platforms) length fields in struct sockaddr.
* g-socthi.adb, g-socthi.ads, g-socthi-vms.ads, g-socthi-vms.adb,
g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.adb,
g-soccon-darwin.ads, g-soccon-darwin.ads: New constant SIZEOF_fd_set
Move common code out of GNAT.Sockets.Thin implementations and into
Thin_Common.
* g-socket.ads, g-socket.adb:
Move common code out of GNAT.Sockets.Thin implementations and into
Thin_Common.
(Connect_Socket, Accept_Socket): Provide new versions of these two
routines that operate with a user specified timeout.
(Bind_Socket, Connect_Socket, Send_Socket): Remove calls to Set_Length,
this is now handled automatically by Set_Family on platforms that
require it.
* gen-soccon.c:
Move common code out of GNAT.Sockets.Thin implementations and into
Thin_Common.
(SIZEOF_sockaddr_in6): On platforms where IPv6 is not supported, define
this constant to 0 (not -1) because we use it to initialize an
unsigned_char value.
Align values for numeric constants only.
Handle the case of systems that do not support AF_INET6.
New constant SIZEOF_fd_set
New flag Has_Sockaddr_Len
New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
* gsocket.h: New flag Has_Sockaddr_Len
New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
Modified:
trunk/gcc/ada/Makefile.rtl
trunk/gcc/ada/g-soccon-aix.ads
trunk/gcc/ada/g-soccon-darwin.ads
trunk/gcc/ada/g-soccon-freebsd.ads
trunk/gcc/ada/g-soccon-hpux-ia64.ads
trunk/gcc/ada/g-soccon-hpux.ads
trunk/gcc/ada/g-soccon-irix.ads
trunk/gcc/ada/g-soccon-linux-64.ads
trunk/gcc/ada/g-soccon-linux-ppc.ads
trunk/gcc/ada/g-soccon-linux-x86.ads
trunk/gcc/ada/g-soccon-lynxos.ads
trunk/gcc/ada/g-soccon-mingw.ads
trunk/gcc/ada/g-soccon-solaris-64.ads
trunk/gcc/ada/g-soccon-solaris.ads
trunk/gcc/ada/g-soccon-tru64.ads
trunk/gcc/ada/g-soccon-vms.ads
trunk/gcc/ada/g-soccon-vxworks.ads
trunk/gcc/ada/g-soccon.ads
trunk/gcc/ada/g-socket.adb
trunk/gcc/ada/g-socket.ads
trunk/gcc/ada/g-socthi-mingw.adb
trunk/gcc/ada/g-socthi-mingw.ads
trunk/gcc/ada/g-socthi-vms.adb
trunk/gcc/ada/g-socthi-vms.ads
trunk/gcc/ada/g-socthi-vxworks.adb
trunk/gcc/ada/g-socthi.adb
trunk/gcc/ada/g-socthi.ads
trunk/gcc/ada/g-stsifd-sockets.adb
trunk/gcc/ada/g-sttsne-vxworks.adb
trunk/gcc/ada/gen-soccon.c
trunk/gcc/ada/gsocket.h
More information about the Gcc-cvs
mailing list