From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 102952 invoked by alias); 24 Aug 2018 13:12:02 -0000 Mailing-List: contact newlib-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: newlib-cvs-owner@sourceware.org Received: (qmail 102296 invoked by uid 10080); 24 Aug 2018 13:12:01 -0000 Date: Fri, 24 Aug 2018 13:12:00 -0000 Message-ID: <20180824131201.102258.qmail@sourceware.org> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Sebastian Huber To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] Add SOL_SOCKET level socket option X-Act-Checkin: newlib-cygwin X-Git-Author: tuexen X-Git-Refname: refs/heads/master X-Git-Oldrev: 823b09647103311555076967369cbc4db70c007a X-Git-Newrev: fe3e8b90dc47bda41f697cffe1f5b6c0c32be70a X-SW-Source: 2018-q3/txt/msg00090.txt.bz2 https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=fe3e8b90dc47bda41f697cffe1f5b6c0c32be70a commit fe3e8b90dc47bda41f697cffe1f5b6c0c32be70a Author: tuexen Date: Tue Aug 21 14:04:30 2018 +0000 Add SOL_SOCKET level socket option with name SO_DOMAIN to get the domain of a socket. This is helpful when testing and Solaris and Linux have the same socket option using the same name. Reviewed by: bcr@, rrs@ Sponsored by: Netflix, Inc. Differential Revision: https://reviews.freebsd.org/D16791 Diff: --- newlib/libc/sys/rtems/include/sys/socket.h | 1 + 1 file changed, 1 insertion(+) diff --git a/newlib/libc/sys/rtems/include/sys/socket.h b/newlib/libc/sys/rtems/include/sys/socket.h index a1ffbbd..f329e3a 100644 --- a/newlib/libc/sys/rtems/include/sys/socket.h +++ b/newlib/libc/sys/rtems/include/sys/socket.h @@ -171,6 +171,7 @@ typedef __uintptr_t uintptr_t; #define SO_PROTOTYPE SO_PROTOCOL /* alias for SO_PROTOCOL (SunOS name) */ #define SO_TS_CLOCK 0x1017 /* clock type used for SO_TIMESTAMP */ #define SO_MAX_PACING_RATE 0x1018 /* socket's max TX pacing rate (Linux name) */ +#define SO_DOMAIN 0x1019 /* get socket domain */ #endif #if __BSD_VISIBLE