aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/g-soccon-linux-x86.ads
AgeCommit message (Collapse)AuthorFilesLines
2008-08-06Makefile.in, [...]: Remove GNAT.Sockets.Constants.Arnaud Charlet1-208/+0
2008-08-06 Thomas Quinot <quinot@adacore.com> * 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. From-SVN: r138792
2008-05-20Makefile.rtl (GNAT.Sockets.Thin_Common): New unit.Thomas Quinot1-87/+99
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 From-SVN: r135612
2008-03-30a-textio.ads, [...]: Fix comment typos.Ralf Wildenhues1-1/+1
gcc/ada/ * a-textio.ads, a-witeio.ads, a-ztexio.ads, ali.ads, einfo.ads, erroutc.adb, erroutc.ads, exp_attr.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_smem.adb, exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb, freeze.adb, freeze.ads, frontend.adb, g-alleve.adb, g-altcon.adb, g-altive.ads, g-alveop.ads, g-alvevi.ads, g-arrspl.adb, g-busorg.ads, g-calend.adb, g-calend.ads, g-casuti.ads, g-cgideb.adb, g-comlin.adb, g-comlin.ads, g-curexc.ads, g-debpoo.adb, g-debpoo.ads, g-decstr.adb, g-dirope.adb, g-dirope.ads, g-dynhta.ads, g-dyntab.adb, g-encstr.ads, g-excact.ads, g-except.ads, g-expect.ads, g-heasor.adb, g-hesora.adb, g-hesorg.adb, g-htable.ads, g-locfil.ads, g-md5.adb, g-md5.ads, g-memdum.ads, g-moreex.ads, g-os_lib.adb, g-pehage.adb, g-pehage.ads, g-regexp.adb, g-regexp.ads, g-regpat.adb, g-regpat.ads, g-soccon-aix.ads, g-soccon-darwin.ads, g-soccon-freebsd.ads, g-soccon-hpux-ia64.ads, g-soccon-hpux.ads, g-soccon-irix.ads, g-soccon-linux-64.ads, g-soccon-linux-ppc.ads, g-soccon-linux-x86.ads, g-soccon-lynxos.ads, g-soccon-mingw.ads, g-soccon-solaris-64.ads, g-soccon-solaris.ads, g-soccon-tru64.ads, g-soccon-vms.ads, g-soccon-vxworks.ads, g-soccon.ads, g-socket.adb, g-socket.ads, g-socthi-mingw.adb, g-socthi-vms.adb, g-socthi-vxworks.adb, g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-string.adb, g-stsifd-sockets.adb: Fix comment typos. From-SVN: r133735
2008-03-26re PR ada/33688 (Ada package Gnat.Sockets missing constant for IP_PKTINFO ↵Thomas Quinot1-0/+2
(patch)) 2008-03-26 Thomas Quinot <quinot@adacore.com> PR ada/33688 * g-socket.ads, g-socket.adb (Options, Set_Socket_Option, Get_Socket_Option): Add support for Receive_Packet_Info. * g-soccon.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-freebsd.ads, g-soccon-hpux-ia64.ads, g-soccon-solaris-64.ads, g-soccon-darwin.ads, g-soccon-lynxos.ads, g-soccon-linux-64.ads, g-soccon-linux-x86.ads: Add new constants SO_REUSEPORT and IP_PKTINFO From-SVN: r133545
2007-06-06Minor editing.Arnaud Charlet1-1/+14
Update constants. Update copyright notice. From-SVN: r125479
2005-11-15g-soccon.ads: Minor reformatting.Thomas Quinot1-0/+181
2005-11-14 Thomas Quinot <quinot@adacore.com> * g-soccon.ads: Minor reformatting. Update comments. * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to gain visibility on the declaration of struct timeval. * g-soccon-freebsd.ads, g-soccon-darwin.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 (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants. * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads, g-soccon-solaris-64.ads, g-soccon-linux-64.ads, g-soccon-linux-x86.ads: New files. * g-socthi-mingw.adb: (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads (time_t, suseconds_t): New types constructed to match the tv_sec and tv_usec fields of C struct timeval. (Timeval): Construct structure in terms of the new types. (Host_Errno): New function (imported from socket.c), returns last hosts database error. * g-socthi-vxworks.adb: Add error handling circuitry. * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for components of struct timeval. (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry. (Check_Selector): In error conditions, clear internal socket sets to avoid a memory leak. (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If, Send_Timeout, Receive_Timeout. * g-socthi.ads (time_t, suseconds_t): New types constructed to match the tv_sec and tv_usec fields of C struct timeval. (Timeval): Construct structure in terms of the new types. (Host_Errno): New function (imported from socket.c), returns last hosts database error. * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the hosts database last error code. * gen-soccon.c: Complete value expansion should not be performed on TARGET, as it has the form of a math expression, and some components may be platform-defined macros. For VxWorks, generate the OK and ERROR values. New constants giving the sizes of the components of C struct timeval. From-SVN: r106949