g-soccon-vms.adb: Renamed to g-soccon-vms.ads
authorThomas Quinot <quinot@adacore.com>
Mon, 5 Sep 2005 07:50:26 +0000 (09:50 +0200)
committerArnaud Charlet <charlet@gcc.gnu.org>
Mon, 5 Sep 2005 07:50:26 +0000 (09:50 +0200)
commit826757551170eec3ec794d961b5b6dc24d1244cd
treeae1698c6bf9c081f3fb4cdc10113b63b9801baf6
parentb9260c3d60418dd0e549bbdb69c8f696a76d5106
g-soccon-vms.adb: Renamed to g-soccon-vms.ads

2005-09-01  Thomas Quinot  <quinot@adacore.com>

* g-soccon-vms.adb: Renamed to g-soccon-vms.ads

* g-soccon-vms.ads: Renamed from g-soccon-vms.adb

* g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
g-soccon-freebsd.ads: Add new constants:
 IP_MULTICAST_IF
 SO_RCVTIMEO/SO_SNDTIMEO
 IOV_MAX

* gen-soccon.c:
Move all target-specific file inclusions and macro definitions to
gsocket.h, in order to ensure that any C code in socket.c will see a
set of constants that is consistent with the contents of g-soccon.ads.

* gsocket.h: Code imported from gen-soccon.c:
Move all target-specific file inclusions and macro definitions to
gsocket.h, in order to ensure that any C code in socket.c will see a set
of constants that is consistent with the contents of g-soccon.ads.
This change also makes gen-soccon self-contained (removing dependencies
upon GCC internal headers).

* g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
iovecs at a time.
(To_Inet_Addr): Now a procedure instead of a function, more efficient.

* socket.c: Minor reformatting.

From-SVN: r103853
16 files changed:
gcc/ada/g-soccon-aix.ads
gcc/ada/g-soccon-darwin.ads
gcc/ada/g-soccon-freebsd.ads
gcc/ada/g-soccon-hpux.ads
gcc/ada/g-soccon-irix.ads
gcc/ada/g-soccon-mingw.ads
gcc/ada/g-soccon-solaris.ads
gcc/ada/g-soccon-tru64.ads
gcc/ada/g-soccon-vms.adb [deleted file]
gcc/ada/g-soccon-vms.ads [new file with mode: 0644]
gcc/ada/g-soccon-vxworks.ads
gcc/ada/g-soccon.ads
gcc/ada/g-socket.adb
gcc/ada/gen-soccon.c
gcc/ada/gsocket.h
gcc/ada/socket.c