github.com/afumu/libc@v0.0.6/sys/socket/socket_openbsd_amd64.go (about) 1 // Code generated by 'ccgo sys/socket/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o sys/socket/socket_openbsd_amd64.go -pkgname socket', DO NOT EDIT. 2 3 package socket 4 5 import ( 6 "math" 7 "reflect" 8 "sync/atomic" 9 "unsafe" 10 ) 11 12 var _ = math.Pi 13 var _ reflect.Kind 14 var _ atomic.Value 15 var _ unsafe.Pointer 16 17 const ( 18 AF_APPLETALK = 16 // socket.h:181:1: 19 AF_BLUETOOTH = 32 // socket.h:199:1: 20 AF_CCITT = 10 // socket.h:175:1: 21 AF_CHAOS = 5 // socket.h:169:1: 22 AF_CNT = 21 // socket.h:186:1: 23 AF_COIP = 20 // socket.h:185:1: 24 AF_DATAKIT = 9 // socket.h:174:1: 25 AF_DECnet = 12 // socket.h:177:1: 26 AF_DLI = 13 // socket.h:178:1: 27 AF_E164 = 26 // socket.h:192:1: 28 AF_ECMA = 8 // socket.h:173:1: 29 AF_ENCAP = 28 // socket.h:194:1: 30 AF_HYLINK = 15 // socket.h:180:1: 31 AF_IMPLINK = 3 // socket.h:167:1: 32 AF_INET = 2 // socket.h:166:1: 33 AF_INET6 = 24 // socket.h:189:1: 34 AF_IPX = 23 // socket.h:188:1: 35 AF_ISDN = 26 // socket.h:191:1: 36 AF_ISO = 7 // socket.h:171:1: 37 AF_KEY = 30 // socket.h:196:1: 38 AF_LAT = 14 // socket.h:179:1: 39 AF_LINK = 18 // socket.h:183:1: 40 AF_LOCAL = 1 // socket.h:165:1: 41 AF_MAX = 36 // socket.h:203:1: 42 AF_MPLS = 33 // socket.h:200:1: 43 AF_NATM = 27 // socket.h:193:1: 44 AF_NS = 6 // socket.h:170:1: 45 AF_OSI = 7 // socket.h:172:1: 46 AF_PUP = 4 // socket.h:168:1: 47 AF_ROUTE = 17 // socket.h:182:1: 48 AF_SIP = 29 // socket.h:195:1: 49 AF_SNA = 11 // socket.h:176:1: 50 AF_UNIX = 1 // socket.h:164:1: 51 AF_UNSPEC = 0 // socket.h:163:1: 52 BIG_ENDIAN = 4321 // endian.h:45:1: 53 BYTE_ORDER = 1234 // endian.h:47:1: 54 LITTLE_ENDIAN = 1234 // endian.h:44:1: 55 MSG_BCAST = 0x100 // socket.h:508:1: 56 MSG_CMSG_CLOEXEC = 0x800 // socket.h:511:1: 57 MSG_CTRUNC = 0x20 // socket.h:505:1: 58 MSG_DONTROUTE = 0x4 // socket.h:502:1: 59 MSG_DONTWAIT = 0x80 // socket.h:507:1: 60 MSG_EOR = 0x8 // socket.h:503:1: 61 MSG_MCAST = 0x200 // socket.h:509:1: 62 MSG_NOSIGNAL = 0x400 // socket.h:510:1: 63 MSG_OOB = 0x1 // socket.h:500:1: 64 MSG_PEEK = 0x2 // socket.h:501:1: 65 MSG_TRUNC = 0x10 // socket.h:504:1: 66 MSG_WAITALL = 0x40 // socket.h:506:1: 67 MSG_WAITFORONE = 0x1000 // socket.h:512:1: 68 NET_BPF_BUFSIZE = 1 // socket.h:452:1: 69 NET_BPF_MAXBUFSIZE = 2 // socket.h:453:1: 70 NET_BPF_MAXID = 3 // socket.h:454:1: 71 NET_KEY_MAXID = 3 // socket.h:441:1: 72 NET_KEY_SADB_DUMP = 1 // socket.h:439:1: 73 NET_KEY_SPD_DUMP = 2 // socket.h:440:1: 74 NET_LINK_IFRXQ = 1 // socket.h:416:1: 75 NET_LINK_IFRXQ_MAXID = 3 // socket.h:428:1: 76 NET_LINK_IFRXQ_PRESSURE_DROP = 2 // socket.h:426:1: 77 NET_LINK_IFRXQ_PRESSURE_RETURN = 1 // socket.h:424:1: 78 NET_LINK_MAXID = 2 // socket.h:417:1: 79 NET_MAXID = 36 // socket.h:314:1: 80 NET_PFLOW_MAXID = 2 // socket.h:466:1: 81 NET_PFLOW_STATS = 1 // socket.h:465:1: 82 NET_RT_DUMP = 1 // socket.h:365:1: 83 NET_RT_FLAGS = 2 // socket.h:366:1: 84 NET_RT_IFLIST = 3 // socket.h:367:1: 85 NET_RT_IFNAMES = 6 // socket.h:370:1: 86 NET_RT_MAXID = 8 // socket.h:372:1: 87 NET_RT_SOURCE = 7 // socket.h:371:1: 88 NET_RT_STATS = 4 // socket.h:368:1: 89 NET_RT_TABLE = 5 // socket.h:369:1: 90 NET_UNIX_DEFERRED = 7 // socket.h:389:1: 91 NET_UNIX_INFLIGHT = 6 // socket.h:388:1: 92 NET_UNIX_MAXID = 8 // socket.h:390:1: 93 NET_UNIX_PROTO_MAXID = 3 // socket.h:405:1: 94 PDP_ENDIAN = 3412 // endian.h:46:1: 95 PF_APPLETALK = 16 // socket.h:267:1: 96 PF_BLUETOOTH = 32 // socket.h:283:1: 97 PF_BPF = 31 // socket.h:282:1: 98 PF_CCITT = 10 // socket.h:261:1: 99 PF_CHAOS = 5 // socket.h:255:1: 100 PF_CNT = 21 // socket.h:272:1: 101 PF_COIP = 20 // socket.h:271:1: 102 PF_DATAKIT = 9 // socket.h:260:1: 103 PF_DECnet = 12 // socket.h:263:1: 104 PF_DLI = 13 // socket.h:264:1: 105 PF_ECMA = 8 // socket.h:259:1: 106 PF_ENCAP = 28 // socket.h:279:1: 107 PF_HYLINK = 15 // socket.h:266:1: 108 PF_IMPLINK = 3 // socket.h:253:1: 109 PF_INET = 2 // socket.h:252:1: 110 PF_INET6 = 24 // socket.h:274:1: 111 PF_IPX = 23 // socket.h:273:1: 112 PF_ISDN = 26 // socket.h:277:1: 113 PF_ISO = 7 // socket.h:257:1: 114 PF_KEY = 30 // socket.h:281:1: 115 PF_LAT = 14 // socket.h:265:1: 116 PF_LINK = 18 // socket.h:269:1: 117 PF_LOCAL = 1 // socket.h:250:1: 118 PF_MAX = 36 // socket.h:287:1: 119 PF_MPLS = 33 // socket.h:284:1: 120 PF_NATM = 27 // socket.h:278:1: 121 PF_NS = 6 // socket.h:256:1: 122 PF_OSI = 7 // socket.h:258:1: 123 PF_PFLOW = 34 // socket.h:285:1: 124 PF_PIP = 25 // socket.h:276:1: 125 PF_PIPEX = 35 // socket.h:286:1: 126 PF_PUP = 4 // socket.h:254:1: 127 PF_ROUTE = 17 // socket.h:268:1: 128 PF_RTIP = 22 // socket.h:275:1: 129 PF_SIP = 29 // socket.h:280:1: 130 PF_SNA = 11 // socket.h:262:1: 131 PF_UNIX = 1 // socket.h:251:1: 132 PF_UNSPEC = 0 // socket.h:249:1: 133 PF_XTP = 19 // socket.h:270:1: 134 RT_TABLEID_BITS = 8 // socket.h:150:1: 135 RT_TABLEID_MASK = 0xff // socket.h:151:1: 136 RT_TABLEID_MAX = 255 // socket.h:149:1: 137 SCM_RIGHTS = 0x01 // socket.h:560:1: 138 SCM_TIMESTAMP = 0x04 // socket.h:561:1: 139 SHUT_RD = 0 // socket.h:292:1: 140 SHUT_RDWR = 2 // socket.h:294:1: 141 SHUT_WR = 1 // socket.h:293:1: 142 SOCK_CLOEXEC = 0x8000 // socket.h:76:1: 143 SOCK_DGRAM = 2 // socket.h:64:1: 144 SOCK_DNS = 0x1000 // socket.h:81:1: 145 SOCK_NONBLOCK = 0x4000 // socket.h:77:1: 146 SOCK_RAW = 3 // socket.h:65:1: 147 SOCK_RDM = 4 // socket.h:66:1: 148 SOCK_SEQPACKET = 5 // socket.h:67:1: 149 SOCK_STREAM = 1 // socket.h:63:1: 150 SOL_SOCKET = 0xffff // socket.h:158:1: 151 SOMAXCONN = 128 // socket.h:477:1: 152 SO_ACCEPTCONN = 0x0002 // socket.h:88:1: 153 SO_BINDANY = 0x1000 // socket.h:98:1: 154 SO_BROADCAST = 0x0020 // socket.h:92:1: 155 SO_DEBUG = 0x0001 // socket.h:87:1: 156 SO_DOMAIN = 0x1024 // socket.h:116:1: 157 SO_DONTROUTE = 0x0010 // socket.h:91:1: 158 SO_ERROR = 0x1007 // socket.h:110:1: 159 SO_KEEPALIVE = 0x0008 // socket.h:90:1: 160 SO_LINGER = 0x0080 // socket.h:94:1: 161 SO_NETPROC = 0x1020 // socket.h:112:1: 162 SO_OOBINLINE = 0x0100 // socket.h:95:1: 163 SO_PEERCRED = 0x1022 // socket.h:114:1: 164 SO_PROTOCOL = 0x1025 // socket.h:117:1: 165 SO_RCVBUF = 0x1002 // socket.h:105:1: 166 SO_RCVLOWAT = 0x1004 // socket.h:107:1: 167 SO_RCVTIMEO = 0x1006 // socket.h:109:1: 168 SO_REUSEADDR = 0x0004 // socket.h:89:1: 169 SO_REUSEPORT = 0x0200 // socket.h:96:1: 170 SO_RTABLE = 0x1021 // socket.h:113:1: 171 SO_SNDBUF = 0x1001 // socket.h:104:1: 172 SO_SNDLOWAT = 0x1003 // socket.h:106:1: 173 SO_SNDTIMEO = 0x1005 // socket.h:108:1: 174 SO_SPLICE = 0x1023 // socket.h:115:1: 175 SO_TIMESTAMP = 0x0800 // socket.h:97:1: 176 SO_TYPE = 0x1008 // socket.h:111:1: 177 SO_USELOOPBACK = 0x0040 // socket.h:93:1: 178 SO_ZEROIZE = 0x2000 // socket.h:99:1: 179 UIO_MAXIOV = 1024 // uio.h:84:1: 180 UNPCTL_RECVSPACE = 1 // socket.h:403:1: 181 UNPCTL_SENDSPACE = 2 // socket.h:404:1: 182 X_BIG_ENDIAN = 4321 // _endian.h:43:1: 183 X_BYTE_ORDER = 1234 // endian.h:58:1: 184 X_CLOCKID_T_DEFINED_ = 0 // types.h:162:1: 185 X_CLOCK_T_DEFINED_ = 0 // types.h:157:1: 186 X_FILE_OFFSET_BITS = 64 // <builtin>:25:1: 187 X_INT16_T_DEFINED_ = 0 // types.h:84:1: 188 X_INT32_T_DEFINED_ = 0 // types.h:94:1: 189 X_INT64_T_DEFINED_ = 0 // types.h:104:1: 190 X_INT8_T_DEFINED_ = 0 // types.h:74:1: 191 X_LITTLE_ENDIAN = 1234 // _endian.h:42:1: 192 X_LP64 = 1 // <predefined>:1:1: 193 X_MACHINE_CDEFS_H_ = 0 // cdefs.h:9:1: 194 X_MACHINE_ENDIAN_H_ = 0 // endian.h:28:1: 195 X_MACHINE__TYPES_H_ = 0 // _types.h:36:1: 196 X_MAX_PAGE_SHIFT = 12 // _types.h:52:1: 197 X_OFF_T_DEFINED_ = 0 // types.h:192:1: 198 X_PDP_ENDIAN = 3412 // _endian.h:44:1: 199 X_PID_T_DEFINED_ = 0 // types.h:167:1: 200 X_QUAD_HIGHWORD = 1 // _endian.h:95:1: 201 X_QUAD_LOWWORD = 0 // _endian.h:96:1: 202 X_RET_PROTECTOR = 1 // <predefined>:2:1: 203 X_SA_FAMILY_T_DEFINED_ = 0 // socket.h:51:1: 204 X_SIZE_T_DEFINED_ = 0 // uio.h:42:1: 205 X_SOCKLEN_T_DEFINED_ = 0 // socket.h:46:1: 206 X_SSIZE_T_DEFINED_ = 0 // uio.h:47:1: 207 X_STACKALIGNBYTES = 15 // _types.h:49:1: 208 X_SYS_CDEFS_H_ = 0 // cdefs.h:39:1: 209 X_SYS_ENDIAN_H_ = 0 // endian.h:38:1: 210 X_SYS_SOCKET_H_ = 0 // socket.h:36:1: 211 X_SYS_TYPES_H_ = 0 // types.h:41:1: 212 X_SYS_UIO_H_ = 0 // uio.h:36:1: 213 X_SYS__ENDIAN_H_ = 0 // _endian.h:34:1: 214 X_SYS__TYPES_H_ = 0 // _types.h:35:1: 215 X_TIMER_T_DEFINED_ = 0 // types.h:187:1: 216 X_TIMEVAL_DECLARED = 0 // socket.h:130:1: 217 X_TIME_T_DEFINED_ = 0 // types.h:182:1: 218 X_UINT16_T_DEFINED_ = 0 // types.h:89:1: 219 X_UINT32_T_DEFINED_ = 0 // types.h:99:1: 220 X_UINT64_T_DEFINED_ = 0 // types.h:109:1: 221 X_UINT8_T_DEFINED_ = 0 // types.h:79:1: 222 Pseudo_AF_HDRCMPLT = 31 // socket.h:197:1: 223 Pseudo_AF_PFLOW = 34 // socket.h:201:1: 224 Pseudo_AF_PIP = 25 // socket.h:190:1: 225 Pseudo_AF_PIPEX = 35 // socket.h:202:1: 226 Pseudo_AF_RTIP = 22 // socket.h:187:1: 227 Pseudo_AF_XTP = 19 // socket.h:184:1: 228 Unix = 1 // <predefined>:344:1: 229 ) 230 231 const ( /* uio.h:57:1: */ 232 UIO_READ = 0 233 UIO_WRITE = 1 234 ) 235 236 // Segment flag values. 237 const ( /* uio.h:60:1: */ 238 UIO_USERSPACE = 0 // from user data space 239 UIO_SYSSPACE = 1 240 ) 241 242 type Ptrdiff_t = int64 /* <builtin>:3:26 */ 243 244 type Size_t = uint64 /* <builtin>:9:23 */ 245 246 type Wchar_t = int32 /* <builtin>:15:24 */ 247 248 type X__int128_t = struct { 249 Flo int64 250 Fhi int64 251 } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128 252 type X__uint128_t = struct { 253 Flo uint64 254 Fhi uint64 255 } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128 256 257 type X__builtin_va_list = uintptr /* <builtin>:46:14 */ 258 type X__float128 = float64 /* <builtin>:47:21 */ 259 260 // $OpenBSD: socket.h,v 1.105 2022/09/03 21:13:48 mbuhl Exp $ 261 // $NetBSD: socket.h,v 1.14 1996/02/09 18:25:36 christos Exp $ 262 263 // Copyright (c) 1982, 1985, 1986, 1988, 1993, 1994 264 // The Regents of the University of California. All rights reserved. 265 // 266 // Redistribution and use in source and binary forms, with or without 267 // modification, are permitted provided that the following conditions 268 // are met: 269 // 1. Redistributions of source code must retain the above copyright 270 // notice, this list of conditions and the following disclaimer. 271 // 2. Redistributions in binary form must reproduce the above copyright 272 // notice, this list of conditions and the following disclaimer in the 273 // documentation and/or other materials provided with the distribution. 274 // 3. Neither the name of the University nor the names of its contributors 275 // may be used to endorse or promote products derived from this software 276 // without specific prior written permission. 277 // 278 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 279 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 280 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 281 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 282 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 283 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 284 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 285 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 286 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 287 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 288 // SUCH DAMAGE. 289 // 290 // @(#)socket.h 8.4 (Berkeley) 2/21/94 291 292 // get the definitions for struct iovec, size_t, ssize_t, and <sys/cdefs.h> 293 // $OpenBSD: uio.h,v 1.19 2018/08/20 16:00:22 mpi Exp $ 294 // $NetBSD: uio.h,v 1.12 1996/02/09 18:25:45 christos Exp $ 295 296 // Copyright (c) 1982, 1986, 1993, 1994 297 // The Regents of the University of California. All rights reserved. 298 // 299 // Redistribution and use in source and binary forms, with or without 300 // modification, are permitted provided that the following conditions 301 // are met: 302 // 1. Redistributions of source code must retain the above copyright 303 // notice, this list of conditions and the following disclaimer. 304 // 2. Redistributions in binary form must reproduce the above copyright 305 // notice, this list of conditions and the following disclaimer in the 306 // documentation and/or other materials provided with the distribution. 307 // 3. Neither the name of the University nor the names of its contributors 308 // may be used to endorse or promote products derived from this software 309 // without specific prior written permission. 310 // 311 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 312 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 313 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 314 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 315 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 316 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 317 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 318 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 319 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 320 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 321 // SUCH DAMAGE. 322 // 323 // @(#)uio.h 8.5 (Berkeley) 2/22/94 324 325 // $OpenBSD: cdefs.h,v 1.43 2018/10/29 17:10:40 guenther Exp $ 326 // $NetBSD: cdefs.h,v 1.16 1996/04/03 20:46:39 christos Exp $ 327 328 // Copyright (c) 1991, 1993 329 // The Regents of the University of California. All rights reserved. 330 // 331 // This code is derived from software contributed to Berkeley by 332 // Berkeley Software Design, Inc. 333 // 334 // Redistribution and use in source and binary forms, with or without 335 // modification, are permitted provided that the following conditions 336 // are met: 337 // 1. Redistributions of source code must retain the above copyright 338 // notice, this list of conditions and the following disclaimer. 339 // 2. Redistributions in binary form must reproduce the above copyright 340 // notice, this list of conditions and the following disclaimer in the 341 // documentation and/or other materials provided with the distribution. 342 // 3. Neither the name of the University nor the names of its contributors 343 // may be used to endorse or promote products derived from this software 344 // without specific prior written permission. 345 // 346 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 347 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 348 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 349 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 350 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 351 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 352 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 353 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 354 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 355 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 356 // SUCH DAMAGE. 357 // 358 // @(#)cdefs.h 8.7 (Berkeley) 1/21/94 359 360 // $OpenBSD: cdefs.h,v 1.3 2013/03/28 17:30:45 martynas Exp $ 361 362 // Written by J.T. Conklin <jtc@wimsey.com> 01/17/95. 363 // Public domain. 364 365 // Macro to test if we're using a specific version of gcc or later. 366 367 // The __CONCAT macro is used to concatenate parts of symbol names, e.g. 368 // with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo. 369 // The __CONCAT macro is a bit tricky -- make sure you don't put spaces 370 // in between its arguments. Do not use __CONCAT on double-quoted strings, 371 // such as those from the __STRING macro: to concatenate strings just put 372 // them next to each other. 373 374 // GCC1 and some versions of GCC2 declare dead (non-returning) and 375 // pure (no side effects) functions using "volatile" and "const"; 376 // unfortunately, these then cause warnings under "-ansi -pedantic". 377 // GCC >= 2.5 uses the __attribute__((attrs)) style. All of these 378 // work for GNU C++ (modulo a slight glitch in the C++ grammar in 379 // the distribution version of 2.5.5). 380 381 // __returns_twice makes the compiler not assume the function 382 // only returns once. This affects registerisation of variables: 383 // even local variables need to be in memory across such a call. 384 // Example: setjmp() 385 386 // __only_inline makes the compiler only use this function definition 387 // for inlining; references that can't be inlined will be left as 388 // external references instead of generating a local copy. The 389 // matching library should include a simple extern definition for 390 // the function to handle those references. c.f. ctype.h 391 392 // GNU C version 2.96 adds explicit branch prediction so that 393 // the CPU back-end can hint the processor and also so that 394 // code blocks can be reordered such that the predicted path 395 // sees a more linear flow, thus improving cache behavior, etc. 396 // 397 // The following two macros provide us with a way to utilize this 398 // compiler feature. Use __predict_true() if you expect the expression 399 // to evaluate to true, and __predict_false() if you expect the 400 // expression to evaluate to false. 401 // 402 // A few notes about usage: 403 // 404 // * Generally, __predict_false() error condition checks (unless 405 // you have some _strong_ reason to do otherwise, in which case 406 // document it), and/or __predict_true() `no-error' condition 407 // checks, assuming you want to optimize for the no-error case. 408 // 409 // * Other than that, if you don't know the likelihood of a test 410 // succeeding from empirical or other `hard' evidence, don't 411 // make predictions. 412 // 413 // * These are meant to be used in places that are run `a lot'. 414 // It is wasteful to make predictions in code that is run 415 // seldomly (e.g. at subsystem initialization time) as the 416 // basic block reordering that this affects can often generate 417 // larger code. 418 419 // Delete pseudo-keywords wherever they are not available or needed. 420 421 // The __packed macro indicates that a variable or structure members 422 // should have the smallest possible alignment, despite any host CPU 423 // alignment requirements. 424 // 425 // The __aligned(x) macro specifies the minimum alignment of a 426 // variable or structure. 427 // 428 // These macros together are useful for describing the layout and 429 // alignment of messages exchanged with hardware or other systems. 430 431 // "The nice thing about standards is that there are so many to choose from." 432 // There are a number of "feature test macros" specified by (different) 433 // standards that determine which interfaces and types the header files 434 // should expose. 435 // 436 // Because of inconsistencies in these macros, we define our own 437 // set in the private name space that end in _VISIBLE. These are 438 // always defined and so headers can test their values easily. 439 // Things can get tricky when multiple feature macros are defined. 440 // We try to take the union of all the features requested. 441 // 442 // The following macros are guaranteed to have a value after cdefs.h 443 // has been included: 444 // __POSIX_VISIBLE 445 // __XPG_VISIBLE 446 // __ISO_C_VISIBLE 447 // __BSD_VISIBLE 448 449 // X/Open Portability Guides and Single Unix Specifications. 450 // _XOPEN_SOURCE XPG3 451 // _XOPEN_SOURCE && _XOPEN_VERSION = 4 XPG4 452 // _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED = 1 XPG4v2 453 // _XOPEN_SOURCE == 500 XPG5 454 // _XOPEN_SOURCE == 520 XPG5v2 455 // _XOPEN_SOURCE == 600 POSIX 1003.1-2001 with XSI 456 // _XOPEN_SOURCE == 700 POSIX 1003.1-2008 with XSI 457 // 458 // The XPG spec implies a specific value for _POSIX_C_SOURCE. 459 460 // POSIX macros, these checks must follow the XOPEN ones above. 461 // 462 // _POSIX_SOURCE == 1 1003.1-1988 (superseded by _POSIX_C_SOURCE) 463 // _POSIX_C_SOURCE == 1 1003.1-1990 464 // _POSIX_C_SOURCE == 2 1003.2-1992 465 // _POSIX_C_SOURCE == 199309L 1003.1b-1993 466 // _POSIX_C_SOURCE == 199506L 1003.1c-1995, 1003.1i-1995, 467 // and the omnibus ISO/IEC 9945-1:1996 468 // _POSIX_C_SOURCE == 200112L 1003.1-2001 469 // _POSIX_C_SOURCE == 200809L 1003.1-2008 470 // 471 // The POSIX spec implies a specific value for __ISO_C_VISIBLE, though 472 // this may be overridden by the _ISOC99_SOURCE macro later. 473 474 // _ANSI_SOURCE means to expose ANSI C89 interfaces only. 475 // If the user defines it in addition to one of the POSIX or XOPEN 476 // macros, assume the POSIX/XOPEN macro(s) should take precedence. 477 478 // _ISOC99_SOURCE, _ISOC11_SOURCE, __STDC_VERSION__, and __cplusplus 479 // override any of the other macros since they are non-exclusive. 480 481 // Finally deal with BSD-specific interfaces that are not covered 482 // by any standards. We expose these when none of the POSIX or XPG 483 // macros is defined or if the user explicitly asks for them. 484 485 // Default values. 486 487 // $OpenBSD: _types.h,v 1.10 2022/08/06 13:31:13 semarie Exp $ 488 489 // - 490 // Copyright (c) 1990, 1993 491 // The Regents of the University of California. All rights reserved. 492 // 493 // Redistribution and use in source and binary forms, with or without 494 // modification, are permitted provided that the following conditions 495 // are met: 496 // 1. Redistributions of source code must retain the above copyright 497 // notice, this list of conditions and the following disclaimer. 498 // 2. Redistributions in binary form must reproduce the above copyright 499 // notice, this list of conditions and the following disclaimer in the 500 // documentation and/or other materials provided with the distribution. 501 // 3. Neither the name of the University nor the names of its contributors 502 // may be used to endorse or promote products derived from this software 503 // without specific prior written permission. 504 // 505 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 506 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 507 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 508 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 509 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 510 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 511 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 512 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 513 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 514 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 515 // SUCH DAMAGE. 516 // 517 // @(#)types.h 8.3 (Berkeley) 1/5/94 518 519 // $OpenBSD: _types.h,v 1.17 2018/03/05 01:15:25 deraadt Exp $ 520 521 // - 522 // Copyright (c) 1990, 1993 523 // The Regents of the University of California. All rights reserved. 524 // 525 // Redistribution and use in source and binary forms, with or without 526 // modification, are permitted provided that the following conditions 527 // are met: 528 // 1. Redistributions of source code must retain the above copyright 529 // notice, this list of conditions and the following disclaimer. 530 // 2. Redistributions in binary form must reproduce the above copyright 531 // notice, this list of conditions and the following disclaimer in the 532 // documentation and/or other materials provided with the distribution. 533 // 3. Neither the name of the University nor the names of its contributors 534 // may be used to endorse or promote products derived from this software 535 // without specific prior written permission. 536 // 537 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 538 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 539 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 540 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 541 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 542 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 543 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 544 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 545 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 546 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 547 // SUCH DAMAGE. 548 // 549 // @(#)types.h 8.3 (Berkeley) 1/5/94 550 // @(#)ansi.h 8.2 (Berkeley) 1/4/94 551 552 // _ALIGN(p) rounds p (pointer or byte index) up to a correctly-aligned 553 // value for all data types (int, long, ...). The result is an 554 // unsigned long and must be cast to any desired pointer type. 555 // 556 // _ALIGNED_POINTER is a boolean macro that checks whether an address 557 // is valid to fetch data elements of type t from on this architecture. 558 // This does not reflect the optimal alignment, just the possibility 559 // (within reasonable limits). 560 561 // 7.18.1.1 Exact-width integer types 562 type X__int8_t = int8 /* _types.h:61:22 */ 563 type X__uint8_t = uint8 /* _types.h:62:24 */ 564 type X__int16_t = int16 /* _types.h:63:17 */ 565 type X__uint16_t = uint16 /* _types.h:64:25 */ 566 type X__int32_t = int32 /* _types.h:65:15 */ 567 type X__uint32_t = uint32 /* _types.h:66:23 */ 568 type X__int64_t = int64 /* _types.h:67:20 */ 569 type X__uint64_t = uint64 /* _types.h:68:28 */ 570 571 // 7.18.1.2 Minimum-width integer types 572 type X__int_least8_t = X__int8_t /* _types.h:71:19 */ 573 type X__uint_least8_t = X__uint8_t /* _types.h:72:20 */ 574 type X__int_least16_t = X__int16_t /* _types.h:73:20 */ 575 type X__uint_least16_t = X__uint16_t /* _types.h:74:21 */ 576 type X__int_least32_t = X__int32_t /* _types.h:75:20 */ 577 type X__uint_least32_t = X__uint32_t /* _types.h:76:21 */ 578 type X__int_least64_t = X__int64_t /* _types.h:77:20 */ 579 type X__uint_least64_t = X__uint64_t /* _types.h:78:21 */ 580 581 // 7.18.1.3 Fastest minimum-width integer types 582 type X__int_fast8_t = X__int32_t /* _types.h:81:20 */ 583 type X__uint_fast8_t = X__uint32_t /* _types.h:82:21 */ 584 type X__int_fast16_t = X__int32_t /* _types.h:83:20 */ 585 type X__uint_fast16_t = X__uint32_t /* _types.h:84:21 */ 586 type X__int_fast32_t = X__int32_t /* _types.h:85:20 */ 587 type X__uint_fast32_t = X__uint32_t /* _types.h:86:21 */ 588 type X__int_fast64_t = X__int64_t /* _types.h:87:20 */ 589 type X__uint_fast64_t = X__uint64_t /* _types.h:88:21 */ 590 591 // 7.18.1.4 Integer types capable of holding object pointers 592 type X__intptr_t = int64 /* _types.h:103:16 */ 593 type X__uintptr_t = uint64 /* _types.h:104:24 */ 594 595 // 7.18.1.5 Greatest-width integer types 596 type X__intmax_t = X__int64_t /* _types.h:107:20 */ 597 type X__uintmax_t = X__uint64_t /* _types.h:108:21 */ 598 599 // Register size 600 type X__register_t = int64 /* _types.h:111:16 */ 601 602 // VM system types 603 type X__vaddr_t = uint64 /* _types.h:114:24 */ 604 type X__paddr_t = uint64 /* _types.h:115:24 */ 605 type X__vsize_t = uint64 /* _types.h:116:24 */ 606 type X__psize_t = uint64 /* _types.h:117:24 */ 607 608 // Standard system types 609 type X__double_t = float64 /* _types.h:120:18 */ 610 type X__float_t = float32 /* _types.h:121:17 */ 611 type X__ptrdiff_t = int64 /* _types.h:122:16 */ 612 type X__size_t = uint64 /* _types.h:123:24 */ 613 type X__ssize_t = int64 /* _types.h:124:16 */ 614 type X__va_list = X__builtin_va_list /* _types.h:126:27 */ 615 616 // Wide character support types 617 type X__wchar_t = int32 /* _types.h:133:15 */ 618 type X__wint_t = int32 /* _types.h:135:15 */ 619 type X__rune_t = int32 /* _types.h:136:15 */ 620 type X__wctrans_t = uintptr /* _types.h:137:14 */ 621 type X__wctype_t = uintptr /* _types.h:138:14 */ 622 623 type X__blkcnt_t = X__int64_t /* _types.h:39:19 */ // blocks allocated for file 624 type X__blksize_t = X__int32_t /* _types.h:40:19 */ // optimal blocksize for I/O 625 type X__clock_t = X__int64_t /* _types.h:41:19 */ // ticks in CLOCKS_PER_SEC 626 type X__clockid_t = X__int32_t /* _types.h:42:19 */ // CLOCK_* identifiers 627 type X__cpuid_t = uint64 /* _types.h:43:23 */ // CPU id 628 type X__dev_t = X__int32_t /* _types.h:44:19 */ // device number 629 type X__fixpt_t = X__uint32_t /* _types.h:45:20 */ // fixed point number 630 type X__fsblkcnt_t = X__uint64_t /* _types.h:46:20 */ // file system block count 631 type X__fsfilcnt_t = X__uint64_t /* _types.h:47:20 */ // file system file count 632 type X__gid_t = X__uint32_t /* _types.h:48:20 */ // group id 633 type X__id_t = X__uint32_t /* _types.h:49:20 */ // may contain pid, uid or gid 634 type X__in_addr_t = X__uint32_t /* _types.h:50:20 */ // base type for internet address 635 type X__in_port_t = X__uint16_t /* _types.h:51:20 */ // IP port type 636 type X__ino_t = X__uint64_t /* _types.h:52:20 */ // inode number 637 type X__key_t = int64 /* _types.h:53:15 */ // IPC key (for Sys V IPC) 638 type X__mode_t = X__uint32_t /* _types.h:54:20 */ // permissions 639 type X__nlink_t = X__uint32_t /* _types.h:55:20 */ // link count 640 type X__off_t = X__int64_t /* _types.h:56:19 */ // file offset or size 641 type X__pid_t = X__int32_t /* _types.h:57:19 */ // process id 642 type X__rlim_t = X__uint64_t /* _types.h:58:20 */ // resource limit 643 type X__sa_family_t = X__uint8_t /* _types.h:59:19 */ // sockaddr address family type 644 type X__segsz_t = X__int32_t /* _types.h:60:19 */ // segment size 645 type X__socklen_t = X__uint32_t /* _types.h:61:20 */ // length type for network syscalls 646 type X__suseconds_t = int64 /* _types.h:62:15 */ // microseconds (signed) 647 type X__time_t = X__int64_t /* _types.h:63:19 */ // epoch time 648 type X__timer_t = X__int32_t /* _types.h:64:19 */ // POSIX timer identifiers 649 type X__uid_t = X__uint32_t /* _types.h:65:20 */ // user id 650 type X__useconds_t = X__uint32_t /* _types.h:66:20 */ // microseconds 651 652 // mbstate_t is an opaque object to keep conversion state, during multibyte 653 // stream conversions. The content must not be referenced by user programs. 654 type X__mbstate_t = struct { 655 F__ccgo_pad1 [0]uint64 656 F__mbstate8 [128]int8 657 } /* _types.h:75:3 */ 658 659 type Ssize_t = X__ssize_t /* uio.h:48:19 */ 660 661 type Iovec = struct { 662 Fiov_base uintptr 663 Fiov_len Size_t 664 } /* uio.h:51:1 */ 665 666 // Tell sys/endian.h we have MD variants of the swap macros. 667 668 // Note that these macros evaluate their arguments several times. 669 670 // Public names 671 672 // These are specified to be function-like macros to match the spec 673 674 // POSIX names 675 676 // original BSD names 677 678 // these were exposed here before 679 680 // ancient stuff 681 682 type U_char = uint8 /* types.h:51:23 */ 683 type U_short = uint16 /* types.h:52:24 */ 684 type U_int = uint32 /* types.h:53:22 */ 685 type U_long = uint64 /* types.h:54:23 */ 686 687 type Unchar = uint8 /* types.h:56:23 */ // Sys V compatibility 688 type Ushort = uint16 /* types.h:57:24 */ // Sys V compatibility 689 type Uint = uint32 /* types.h:58:22 */ // Sys V compatibility 690 type Ulong = uint64 /* types.h:59:23 */ // Sys V compatibility 691 692 type Cpuid_t = X__cpuid_t /* types.h:61:19 */ // CPU id 693 type Register_t = X__register_t /* types.h:62:22 */ // register-sized type 694 695 // XXX The exact-width bit types should only be exposed if __BSD_VISIBLE 696 // but the rest of the includes are not ready for that yet. 697 698 type Int8_t = X__int8_t /* types.h:75:19 */ 699 700 type Uint8_t = X__uint8_t /* types.h:80:20 */ 701 702 type Int16_t = X__int16_t /* types.h:85:20 */ 703 704 type Uint16_t = X__uint16_t /* types.h:90:21 */ 705 706 type Int32_t = X__int32_t /* types.h:95:20 */ 707 708 type Uint32_t = X__uint32_t /* types.h:100:21 */ 709 710 type Int64_t = X__int64_t /* types.h:105:20 */ 711 712 type Uint64_t = X__uint64_t /* types.h:110:21 */ 713 714 // BSD-style unsigned bits types 715 type U_int8_t = X__uint8_t /* types.h:114:19 */ 716 type U_int16_t = X__uint16_t /* types.h:115:20 */ 717 type U_int32_t = X__uint32_t /* types.h:116:20 */ 718 type U_int64_t = X__uint64_t /* types.h:117:20 */ 719 720 // quads, deprecated in favor of 64 bit int types 721 type Quad_t = X__int64_t /* types.h:120:19 */ 722 type U_quad_t = X__uint64_t /* types.h:121:20 */ 723 724 // VM system types 725 type Vaddr_t = X__vaddr_t /* types.h:125:19 */ 726 type Paddr_t = X__paddr_t /* types.h:126:19 */ 727 type Vsize_t = X__vsize_t /* types.h:127:19 */ 728 type Psize_t = X__psize_t /* types.h:128:19 */ 729 730 // Standard system types 731 type Blkcnt_t = X__blkcnt_t /* types.h:132:20 */ // blocks allocated for file 732 type Blksize_t = X__blksize_t /* types.h:133:21 */ // optimal blocksize for I/O 733 type Caddr_t = uintptr /* types.h:134:14 */ // core address 734 type Daddr32_t = X__int32_t /* types.h:135:19 */ // 32-bit disk address 735 type Daddr_t = X__int64_t /* types.h:136:19 */ // 64-bit disk address 736 type Dev_t = X__dev_t /* types.h:137:18 */ // device number 737 type Fixpt_t = X__fixpt_t /* types.h:138:19 */ // fixed point number 738 type Gid_t = X__gid_t /* types.h:139:18 */ // group id 739 type Id_t = X__id_t /* types.h:140:17 */ // may contain pid, uid or gid 740 type Ino_t = X__ino_t /* types.h:141:18 */ // inode number 741 type Key_t = X__key_t /* types.h:142:18 */ // IPC key (for Sys V IPC) 742 type Mode_t = X__mode_t /* types.h:143:18 */ // permissions 743 type Nlink_t = X__nlink_t /* types.h:144:19 */ // link count 744 type Rlim_t = X__rlim_t /* types.h:145:18 */ // resource limit 745 type Segsz_t = X__segsz_t /* types.h:146:19 */ // segment size 746 type Uid_t = X__uid_t /* types.h:147:18 */ // user id 747 type Useconds_t = X__useconds_t /* types.h:148:22 */ // microseconds 748 type Suseconds_t = X__suseconds_t /* types.h:149:23 */ // microseconds (signed) 749 type Fsblkcnt_t = X__fsblkcnt_t /* types.h:150:22 */ // file system block count 750 type Fsfilcnt_t = X__fsfilcnt_t /* types.h:151:22 */ // file system file count 751 752 // The following types may be defined in multiple header files. 753 type Clock_t = X__clock_t /* types.h:158:19 */ 754 755 type Clockid_t = X__clockid_t /* types.h:163:21 */ 756 757 type Pid_t = X__pid_t /* types.h:168:18 */ 758 759 type Time_t = X__time_t /* types.h:183:18 */ 760 761 type Timer_t = X__timer_t /* types.h:188:19 */ 762 763 type Off_t = X__off_t /* types.h:193:18 */ 764 765 // Major, minor numbers, dev_t's. 766 767 type Socklen_t = X__socklen_t /* socket.h:47:21 */ // length type for network syscalls 768 769 type Sa_family_t = X__sa_family_t /* socket.h:52:23 */ // sockaddr address family type 770 771 // Definitions related to sockets: types, address families, options. 772 773 // Types 774 775 // Socket creation flags 776 777 // Option flags per-socket. 778 779 // Additional options, not kept in so_options. 780 781 // Structure used for manipulating linger option. 782 type Linger = struct { 783 Fl_onoff int32 784 Fl_linger int32 785 } /* socket.h:122:1 */ 786 787 type Timeval = struct { 788 Ftv_sec Time_t 789 Ftv_usec Suseconds_t 790 } /* socket.h:131:1 */ 791 792 // Structure used for manipulating splice option. 793 type Splice = struct { 794 Fsp_fd int32 795 F__ccgo_pad1 [4]byte 796 Fsp_max Off_t 797 Fsp_idle struct { 798 Ftv_sec Time_t 799 Ftv_usec Suseconds_t 800 } 801 } /* socket.h:140:1 */ 802 803 // Maximum number of alternate routing tables 804 805 // Level number for (get/set)sockopt() to apply to socket itself. 806 807 // Address families. 808 809 // Structure used by kernel to store most 810 // addresses. 811 type Sockaddr = struct { 812 Fsa_len X__uint8_t 813 Fsa_family Sa_family_t 814 Fsa_data [14]int8 815 } /* socket.h:209:1 */ 816 817 // Sockaddr type which can hold any sockaddr type available 818 // in the system. 819 // 820 // Note: __ss_{len,family} is defined in RFC2553. During RFC2553 discussion 821 // the field name went back and forth between ss_len and __ss_len, 822 // and RFC2553 specifies it to be __ss_len. openbsd picked ss_len. 823 // For maximum portability, userland programmer would need to 824 // (1) make the code never touch ss_len portion (cast it into sockaddr and 825 // touch sa_len), or (2) add "-Dss_len=__ss_len" into CFLAGS to unify all 826 // occurrences (including header file) to __ss_len. 827 type Sockaddr_storage = struct { 828 Fss_len X__uint8_t 829 Fss_family Sa_family_t 830 F__ss_pad1 [6]uint8 831 F__ss_pad2 X__uint64_t 832 F__ss_pad3 [240]uint8 833 } /* socket.h:227:1 */ 834 835 // Protocol families, same as address families for now. 836 837 // These are the valid values for the "how" field used by shutdown(2). 838 839 // Read using getsockopt() with SOL_SOCKET, SO_PEERCRED 840 type Sockpeercred = struct { 841 Fuid Uid_t 842 Fgid Gid_t 843 Fpid Pid_t 844 } /* socket.h:300:1 */ 845 846 // Definitions for network related sysctl, CTL_NET. 847 // 848 // Second level is protocol family. 849 // Third level is protocol number. 850 // 851 // Further levels are defined by the individual families below. 852 853 // PF_ROUTE - Routing table 854 // 855 // Four additional levels are defined: 856 // Fourth: address family, 0 is wildcard 857 // Fifth: type of info, defined below 858 // Sixth: flag(s) to mask with for NET_RT_FLAGS 859 // Seventh: routing table to use (facultative, defaults to 0) 860 // NET_RT_TABLE has the table id as sixth element. 861 862 // PF_UNIX - unix socket tunables 863 864 // PF_LINK - link layer or device tunables 865 866 // PF_KEY - Key Management 867 868 // PF_BPF not really a family, but connected under CTL_NET 869 870 // PF_PFLOW not really a family, but connected under CTL_NET 871 872 // Maximum queue length specifiable by listen(2). 873 874 // Message header for recvmsg and sendmsg calls. 875 // Used value-result for recvmsg, value only for sendmsg. 876 type Msghdr = struct { 877 Fmsg_name uintptr 878 Fmsg_namelen Socklen_t 879 F__ccgo_pad1 [4]byte 880 Fmsg_iov uintptr 881 Fmsg_iovlen uint32 882 F__ccgo_pad2 [4]byte 883 Fmsg_control uintptr 884 Fmsg_controllen Socklen_t 885 Fmsg_flags int32 886 } /* socket.h:483:1 */ 887 888 type Mmsghdr = struct { 889 Fmsg_hdr struct { 890 Fmsg_name uintptr 891 Fmsg_namelen Socklen_t 892 F__ccgo_pad1 [4]byte 893 Fmsg_iov uintptr 894 Fmsg_iovlen uint32 895 F__ccgo_pad2 [4]byte 896 Fmsg_control uintptr 897 Fmsg_controllen Socklen_t 898 Fmsg_flags int32 899 } 900 Fmsg_len uint32 901 F__ccgo_pad1 [4]byte 902 } /* socket.h:493:1 */ 903 904 // Header for ancillary data objects in msg_control buffer. 905 // Used for additional information with/about a datagram 906 // not expressible by flags. The format is a sequence 907 // of message elements headed by cmsghdr structures. 908 type Cmsghdr = struct { 909 Fcmsg_len Socklen_t 910 Fcmsg_level int32 911 Fcmsg_type int32 912 } /* socket.h:520:1 */ 913 914 var _ int8 /* gen.c:2:13: */