aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/g-soccon.ads
diff options
context:
space:
mode:
authorThomas Quinot <quinot@act-europe.fr>2004-10-04 16:49:35 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2004-10-04 16:49:35 +0200
commitd6c7ed5017ae925f18acde16f02f9a0ed2f1b960 (patch)
tree7d917cde2a4fa0a26ee9117ad99650660d705a3f /gcc/ada/g-soccon.ads
parentfded8de7d64cf357aaeb7ccb51b6e850d9557e4a (diff)
downloadgcc-d6c7ed5017ae925f18acde16f02f9a0ed2f1b960.zip
gcc-d6c7ed5017ae925f18acde16f02f9a0ed2f1b960.tar.gz
gcc-d6c7ed5017ae925f18acde16f02f9a0ed2f1b960.tar.bz2
g-socket.ads, [...]: Add new sockets constant MSG_NOSIGNAL (Linux-specific).
2004-10-04 Thomas Quinot <quinot@act-europe.fr> * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c, g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb, g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads, g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new sockets constant MSG_NOSIGNAL (Linux-specific). Add new sockets constant MSG_Forced_Flags, list of flags to be set on all Send operations. For Linux, set MSG_NOSIGNAL on all send operations to prevent them from trigerring SIGPIPE. Rename components to avoid clash with Ada 2005 possible reserved word 'interface'. (Check_Selector): When the select system call returns with an error condition, propagate Socket_Error to the caller. From-SVN: r88485
Diffstat (limited to 'gcc/ada/g-soccon.ads')
-rw-r--r--gcc/ada/g-soccon.ads4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/ada/g-soccon.ads b/gcc/ada/g-soccon.ads
index abe651d..54c931a 100644
--- a/gcc/ada/g-soccon.ads
+++ b/gcc/ada/g-soccon.ads
@@ -6,7 +6,7 @@
-- --
-- S p e c --
-- --
--- Copyright (C) 2000-2003 Free Software Foundation, Inc. --
+-- Copyright (C) 2000-2004 Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
@@ -137,6 +137,8 @@ package GNAT.Sockets.Constants is
MSG_PEEK : constant := 2; -- Peek at incoming data
MSG_EOR : constant := 128; -- Send end of record
MSG_WAITALL : constant := 256; -- Wait for full reception
+ MSG_NOSIGNAL : constant := 16384; -- No SIGPIPE on send
+ MSG_Forced_Flags : constant := MSG_NOSIGNAL;
--------------------
-- Socket options --