summaryrefslogtreecommitdiffstats
path: root/gcc/ada/socket.c
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2005-09-05 07:50:26 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2005-09-05 07:50:26 +0000
commitdd23de097c021a32856d3ffd7471af555f58d0b3 (patch)
treeae1698c6bf9c081f3fb4cdc10113b63b9801baf6 /gcc/ada/socket.c
parent8ffbc40148d6b02adac96d583313108c57e79936 (diff)
downloadppe42-gcc-dd23de097c021a32856d3ffd7471af555f58d0b3.tar.gz
ppe42-gcc-dd23de097c021a32856d3ffd7471af555f58d0b3.zip
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@103853 138bc75d-0d04-0410-961f-82ee72b054a4
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 f26e7f6f533..69317439a09 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 *);
OpenPOWER on IntegriCloud