• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

修订版57f2f80383b53392dfad8e786166e1bc45db6fd2 (tree)
时间2018-02-18 03:36:16
作者Waldemar Brodkorb <wbx@ucli...>
CommiterWaldemar Brodkorb

Log Message

bits/socket.h: add missing defines

Newer iproute2 package make use of some of defines.
Sync missing defines with GNU C library.

更改概述

差异

--- a/libc/sysdeps/linux/common/bits/socket.h
+++ b/libc/sysdeps/linux/common/bits/socket.h
@@ -1,7 +1,6 @@
11 /* System-specific socket constants and types. Linux version.
22 Copyright (C) 1991,1992,1994-2001,2004,2006-2012
33 Free Software Foundation, Inc.
4- This file is part of the GNU C Library.
54
65 The GNU C Library is free software; you can redistribute it and/or
76 modify it under the terms of the GNU Lesser General Public
@@ -81,7 +80,11 @@ typedef __socklen_t socklen_t;
8180 #define PF_CAIF 37 /* CAIF sockets. */
8281 #define PF_ALG 38 /* Algorithm sockets. */
8382 #define PF_NFC 39 /* NFC sockets. */
84-#define PF_MAX 40 /* For now.. */
83+#define PF_VSOCK 40 /* vSockets. */
84+#define PF_KCM 41 /* Kernel Connection Multiplexor. */
85+#define PF_QIPCRTR 42 /* Qualcomm IPC Router. */
86+#define PF_SMC 43 /* SMC sockets. */
87+#define PF_MAX 44 /* For now.. */
8588
8689 /* Address families. */
8790 #define AF_UNSPEC PF_UNSPEC
@@ -125,7 +128,11 @@ typedef __socklen_t socklen_t;
125128 #define AF_CAIF PF_CAIF
126129 #define AF_ALG PF_ALG
127130 #define AF_NFC PF_NFC
128-#define AF_MAX PF_MAX
131+#define AF_VSOCK PF_VSOCK
132+#define AF_KCM PF_KCM
133+#define AF_QIPCRTR PF_QIPCRTR
134+#define AF_SMC PF_SMC
135+#define AF_MAX PF_MAX
129136
130137 /* Socket level values. Others are defined in the appropriate headers.
131138
@@ -138,6 +145,22 @@ typedef __socklen_t socklen_t;
138145 #define SOL_ATM 264 /* ATM layer (cell level). */
139146 #define SOL_AAL 265 /* ATM Adaption Layer (packet level). */
140147 #define SOL_IRDA 266
148+#define SOL_NETBEUI 267
149+#define SOL_LLC 268
150+#define SOL_DCCP 269
151+#define SOL_NETLINK 270
152+#define SOL_TIPC 271
153+#define SOL_RXRPC 272
154+#define SOL_PPPOL2TP 273
155+#define SOL_BLUETOOTH 274
156+#define SOL_PNPIPE 275
157+#define SOL_RDS 276
158+#define SOL_IUCV 277
159+#define SOL_CAIF 278
160+#define SOL_ALG 279
161+#define SOL_NFC 280
162+#define SOL_KCM 281
163+#define SOL_TLS 282
141164
142165 /* Maximum queue length specifiable by listen. */
143166 #define SOMAXCONN 128
@@ -213,6 +236,12 @@ enum
213236 #define MSG_MORE MSG_MORE
214237 MSG_WAITFORONE = 0x10000, /* Wait for at least one packet to return.*/
215238 #define MSG_WAITFORONE MSG_WAITFORONE
239+ MSG_BATCH = 0x40000, /* sendmmsg: more messages coming. */
240+#define MSG_BATCH MSG_BATCH
241+ MSG_ZEROCOPY = 0x4000000, /* Use user data in kernel path. */
242+#define MSG_ZEROCOPY MSG_ZEROCOPY
243+ MSG_FASTOPEN = 0x20000000, /* Send data in TCP SYN. */
244+#define MSG_FASTOPEN MSG_FASTOPEN
216245 MSG_CMSG_CLOEXEC = 0x40000000 /* Set close_on_exit for file
217246 descriptor received through
218247 SCM_RIGHTS. */