From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/10062 Path: news.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: [PATCH 7/7] update sys/socket.h to linux v4.6 Date: Thu, 26 May 2016 22:07:32 +0200 Message-ID: <735f38967e5be9f005b53536f6713dac1639f796.1464291783.git.nsz@port70.net> References: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1464293272 8237 80.91.229.3 (26 May 2016 20:07:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 26 May 2016 20:07:52 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-10075-gllmg-musl=m.gmane.org@lists.openwall.com Thu May 26 22:07:52 2016 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1b61ZQ-00079l-0w for gllmg-musl@m.gmane.org; Thu, 26 May 2016 22:07:52 +0200 Original-Received: (qmail 22130 invoked by uid 550); 26 May 2016 20:07:49 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 21966 invoked from network); 26 May 2016 20:07:43 -0000 Mail-Followup-To: musl@lists.openwall.com Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Xref: news.gmane.org gmane.linux.lib.musl.general:10062 Archived-At: kernel connection multiplexor macros AF_KCM, PF_KCM, SOL_KCM were added in linux commit ab7ac4eb9832e32a09f4e8042705484d2fb0aad3 MSG_BATCH sendmsg flag for performance optimization was added in linux commit f092276d85b82504e8a07498f4e9e0c51f06745c SOL_* macros are now synced with linux socket.h which is not a uapi header and glibc did not have the macros either, but that has changed http://sourceware.org/ml/libc-alpha/2016-05/msg00322.html --- include/sys/socket.h | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/include/sys/socket.h b/include/sys/socket.h index 1904b74..e96c268 100644 --- a/include/sys/socket.h +++ b/include/sys/socket.h @@ -109,7 +109,8 @@ struct linger #define PF_ALG 38 #define PF_NFC 39 #define PF_VSOCK 40 -#define PF_MAX 41 +#define PF_KCM 41 +#define PF_MAX 42 #define AF_UNSPEC PF_UNSPEC #define AF_LOCAL PF_LOCAL @@ -155,6 +156,7 @@ struct linger #define AF_ALG PF_ALG #define AF_NFC PF_NFC #define AF_VSOCK PF_VSOCK +#define AF_KCM PF_KCM #define AF_MAX PF_MAX #ifndef SO_DEBUG @@ -239,6 +241,21 @@ struct linger #define SOL_ATM 264 #define SOL_AAL 265 #define SOL_IRDA 266 +#define SOL_NETBEUI 267 +#define SOL_LLC 268 +#define SOL_DCCP 269 +#define SOL_NETLINK 270 +#define SOL_TIPC 271 +#define SOL_RXRPC 272 +#define SOL_PPPOL2TP 273 +#define SOL_BLUETOOTH 274 +#define SOL_PNPIPE 275 +#define SOL_RDS 276 +#define SOL_IUCV 277 +#define SOL_CAIF 278 +#define SOL_ALG 279 +#define SOL_NFC 280 +#define SOL_KCM 281 #define SOMAXCONN 128 @@ -259,6 +276,7 @@ struct linger #define MSG_NOSIGNAL 0x4000 #define MSG_MORE 0x8000 #define MSG_WAITFORONE 0x10000 +#define MSG_BATCH 0x40000 #define MSG_FASTOPEN 0x20000000 #define MSG_CMSG_CLOEXEC 0x40000000 -- 2.8.1