aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/socket.c
diff options
context:
space:
mode:
authorThomas Quinot <quinot@adacore.com>2005-09-05 09:50:26 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2005-09-05 09:50:26 +0200
commit826757551170eec3ec794d961b5b6dc24d1244cd (patch)
treeae1698c6bf9c081f3fb4cdc10113b63b9801baf6 /gcc/ada/socket.c
parentb9260c3d60418dd0e549bbdb69c8f696a76d5106 (diff)
downloadgcc-826757551170eec3ec794d961b5b6dc24d1244cd.zip
gcc-826757551170eec3ec794d961b5b6dc24d1244cd.tar.gz
gcc-826757551170eec3ec794d961b5b6dc24d1244cd.tar.bz2
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
Diffstat (limited to 'gcc/ada/socket.c')
-rw-r--r--gcc/ada/socket.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/ada/socket.c b/gcc/ada/socket.c
index f26e7f6..6931743 100644
--- a/gcc/ada/socket.c
+++ b/gcc/ada/socket.c
@@ -33,7 +33,11 @@
/* This file provides a portable binding to the sockets API */
#include "gsocket.h"
+/* Include all the necessary system-specific headers and define the
+ necessary macros (shared with gen-soccon). */
+
#include "raise.h"
+/* Required for __gnat_malloc() */
extern void __gnat_disable_sigpipe (int fd);
extern void __gnat_free_socket_set (fd_set *);