diff options
Diffstat (limited to 'vendor/modernc.org/libc/sys/socket/socket_openbsd_amd64.go')
-rw-r--r-- | vendor/modernc.org/libc/sys/socket/socket_openbsd_amd64.go | 99 |
1 files changed, 57 insertions, 42 deletions
diff --git a/vendor/modernc.org/libc/sys/socket/socket_openbsd_amd64.go b/vendor/modernc.org/libc/sys/socket/socket_openbsd_amd64.go index cd779132..c5271729 100644 --- a/vendor/modernc.org/libc/sys/socket/socket_openbsd_amd64.go +++ b/vendor/modernc.org/libc/sys/socket/socket_openbsd_amd64.go @@ -52,18 +52,19 @@ const ( BIG_ENDIAN = 4321 // endian.h:45:1: BYTE_ORDER = 1234 // endian.h:47:1: LITTLE_ENDIAN = 1234 // endian.h:44:1: - MSG_BCAST = 0x100 // socket.h:501:1: - MSG_CMSG_CLOEXEC = 0x800 // socket.h:504:1: - MSG_CTRUNC = 0x20 // socket.h:498:1: - MSG_DONTROUTE = 0x4 // socket.h:495:1: - MSG_DONTWAIT = 0x80 // socket.h:500:1: - MSG_EOR = 0x8 // socket.h:496:1: - MSG_MCAST = 0x200 // socket.h:502:1: - MSG_NOSIGNAL = 0x400 // socket.h:503:1: - MSG_OOB = 0x1 // socket.h:493:1: - MSG_PEEK = 0x2 // socket.h:494:1: - MSG_TRUNC = 0x10 // socket.h:497:1: - MSG_WAITALL = 0x40 // socket.h:499:1: + MSG_BCAST = 0x100 // socket.h:508:1: + MSG_CMSG_CLOEXEC = 0x800 // socket.h:511:1: + MSG_CTRUNC = 0x20 // socket.h:505:1: + MSG_DONTROUTE = 0x4 // socket.h:502:1: + MSG_DONTWAIT = 0x80 // socket.h:507:1: + MSG_EOR = 0x8 // socket.h:503:1: + MSG_MCAST = 0x200 // socket.h:509:1: + MSG_NOSIGNAL = 0x400 // socket.h:510:1: + MSG_OOB = 0x1 // socket.h:500:1: + MSG_PEEK = 0x2 // socket.h:501:1: + MSG_TRUNC = 0x10 // socket.h:504:1: + MSG_WAITALL = 0x40 // socket.h:506:1: + MSG_WAITFORONE = 0x1000 // socket.h:512:1: NET_BPF_BUFSIZE = 1 // socket.h:452:1: NET_BPF_MAXBUFSIZE = 2 // socket.h:453:1: NET_BPF_MAXID = 3 // socket.h:454:1: @@ -133,8 +134,8 @@ const ( RT_TABLEID_BITS = 8 // socket.h:150:1: RT_TABLEID_MASK = 0xff // socket.h:151:1: RT_TABLEID_MAX = 255 // socket.h:149:1: - SCM_RIGHTS = 0x01 // socket.h:552:1: - SCM_TIMESTAMP = 0x04 // socket.h:553:1: + SCM_RIGHTS = 0x01 // socket.h:560:1: + SCM_TIMESTAMP = 0x04 // socket.h:561:1: SHUT_RD = 0 // socket.h:292:1: SHUT_RDWR = 2 // socket.h:294:1: SHUT_WR = 1 // socket.h:293:1: @@ -180,8 +181,8 @@ const ( UNPCTL_SENDSPACE = 2 // socket.h:404:1: X_BIG_ENDIAN = 4321 // _endian.h:43:1: X_BYTE_ORDER = 1234 // endian.h:58:1: - X_CLOCKID_T_DEFINED_ = 0 // types.h:163:1: - X_CLOCK_T_DEFINED_ = 0 // types.h:158:1: + X_CLOCKID_T_DEFINED_ = 0 // types.h:162:1: + X_CLOCK_T_DEFINED_ = 0 // types.h:157:1: X_FILE_OFFSET_BITS = 64 // <builtin>:25:1: X_INT16_T_DEFINED_ = 0 // types.h:84:1: X_INT32_T_DEFINED_ = 0 // types.h:94:1: @@ -193,9 +194,9 @@ const ( X_MACHINE_ENDIAN_H_ = 0 // endian.h:28:1: X_MACHINE__TYPES_H_ = 0 // _types.h:36:1: X_MAX_PAGE_SHIFT = 12 // _types.h:52:1: - X_OFF_T_DEFINED_ = 0 // types.h:193:1: + X_OFF_T_DEFINED_ = 0 // types.h:192:1: X_PDP_ENDIAN = 3412 // _endian.h:44:1: - X_PID_T_DEFINED_ = 0 // types.h:168:1: + X_PID_T_DEFINED_ = 0 // types.h:167:1: X_QUAD_HIGHWORD = 1 // _endian.h:95:1: X_QUAD_LOWWORD = 0 // _endian.h:96:1: X_RET_PROTECTOR = 1 // <predefined>:2:1: @@ -211,9 +212,9 @@ const ( X_SYS_UIO_H_ = 0 // uio.h:36:1: X_SYS__ENDIAN_H_ = 0 // _endian.h:34:1: X_SYS__TYPES_H_ = 0 // _types.h:35:1: - X_TIMER_T_DEFINED_ = 0 // types.h:188:1: + X_TIMER_T_DEFINED_ = 0 // types.h:187:1: X_TIMEVAL_DECLARED = 0 // socket.h:130:1: - X_TIME_T_DEFINED_ = 0 // types.h:183:1: + X_TIME_T_DEFINED_ = 0 // types.h:182:1: X_UINT16_T_DEFINED_ = 0 // types.h:89:1: X_UINT32_T_DEFINED_ = 0 // types.h:99:1: X_UINT64_T_DEFINED_ = 0 // types.h:109:1: @@ -224,7 +225,7 @@ const ( Pseudo_AF_PIPEX = 35 // socket.h:202:1: Pseudo_AF_RTIP = 22 // socket.h:187:1: Pseudo_AF_XTP = 19 // socket.h:184:1: - Unix = 1 // <predefined>:340:1: + Unix = 1 // <predefined>:344:1: ) const ( /* uio.h:57:1: */ @@ -256,7 +257,7 @@ type X__uint128_t = struct { type X__builtin_va_list = uintptr /* <builtin>:46:14 */ type X__float128 = float64 /* <builtin>:47:21 */ -// $OpenBSD: socket.h,v 1.100 2021/05/17 17:54:31 claudio Exp $ +// $OpenBSD: socket.h,v 1.105 2022/09/03 21:13:48 mbuhl Exp $ // $NetBSD: socket.h,v 1.14 1996/02/09 18:25:36 christos Exp $ // Copyright (c) 1982, 1985, 1986, 1988, 1993, 1994 @@ -483,7 +484,7 @@ type X__float128 = float64 /* <builtin>:47:21 */ // Default values. -// $OpenBSD: _types.h,v 1.9 2014/08/22 23:05:15 krw Exp $ +// $OpenBSD: _types.h,v 1.10 2022/08/06 13:31:13 semarie Exp $ // - // Copyright (c) 1990, 1993 @@ -643,18 +644,17 @@ type X__sa_family_t = X__uint8_t /* _types.h:59:19 */ // sockaddr address family type X__segsz_t = X__int32_t /* _types.h:60:19 */ // segment size type X__socklen_t = X__uint32_t /* _types.h:61:20 */ // length type for network syscalls type X__suseconds_t = int64 /* _types.h:62:15 */ // microseconds (signed) -type X__swblk_t = X__int32_t /* _types.h:63:19 */ // swap offset -type X__time_t = X__int64_t /* _types.h:64:19 */ // epoch time -type X__timer_t = X__int32_t /* _types.h:65:19 */ // POSIX timer identifiers -type X__uid_t = X__uint32_t /* _types.h:66:20 */ // user id -type X__useconds_t = X__uint32_t /* _types.h:67:20 */ // microseconds +type X__time_t = X__int64_t /* _types.h:63:19 */ // epoch time +type X__timer_t = X__int32_t /* _types.h:64:19 */ // POSIX timer identifiers +type X__uid_t = X__uint32_t /* _types.h:65:20 */ // user id +type X__useconds_t = X__uint32_t /* _types.h:66:20 */ // microseconds // mbstate_t is an opaque object to keep conversion state, during multibyte // stream conversions. The content must not be referenced by user programs. type X__mbstate_t = struct { F__ccgo_pad1 [0]uint64 F__mbstate8 [128]int8 -} /* _types.h:76:3 */ +} /* _types.h:75:3 */ type Ssize_t = X__ssize_t /* uio.h:48:19 */ @@ -743,25 +743,24 @@ type Mode_t = X__mode_t /* types.h:143:18 */ // permissions type Nlink_t = X__nlink_t /* types.h:144:19 */ // link count type Rlim_t = X__rlim_t /* types.h:145:18 */ // resource limit type Segsz_t = X__segsz_t /* types.h:146:19 */ // segment size -type Swblk_t = X__swblk_t /* types.h:147:19 */ // swap offset -type Uid_t = X__uid_t /* types.h:148:18 */ // user id -type Useconds_t = X__useconds_t /* types.h:149:22 */ // microseconds -type Suseconds_t = X__suseconds_t /* types.h:150:23 */ // microseconds (signed) -type Fsblkcnt_t = X__fsblkcnt_t /* types.h:151:22 */ // file system block count -type Fsfilcnt_t = X__fsfilcnt_t /* types.h:152:22 */ // file system file count +type Uid_t = X__uid_t /* types.h:147:18 */ // user id +type Useconds_t = X__useconds_t /* types.h:148:22 */ // microseconds +type Suseconds_t = X__suseconds_t /* types.h:149:23 */ // microseconds (signed) +type Fsblkcnt_t = X__fsblkcnt_t /* types.h:150:22 */ // file system block count +type Fsfilcnt_t = X__fsfilcnt_t /* types.h:151:22 */ // file system file count // The following types may be defined in multiple header files. -type Clock_t = X__clock_t /* types.h:159:19 */ +type Clock_t = X__clock_t /* types.h:158:19 */ -type Clockid_t = X__clockid_t /* types.h:164:21 */ +type Clockid_t = X__clockid_t /* types.h:163:21 */ -type Pid_t = X__pid_t /* types.h:169:18 */ +type Pid_t = X__pid_t /* types.h:168:18 */ -type Time_t = X__time_t /* types.h:184:18 */ +type Time_t = X__time_t /* types.h:183:18 */ -type Timer_t = X__timer_t /* types.h:189:19 */ +type Timer_t = X__timer_t /* types.h:188:19 */ -type Off_t = X__off_t /* types.h:194:18 */ +type Off_t = X__off_t /* types.h:193:18 */ // Major, minor numbers, dev_t's. @@ -886,6 +885,22 @@ type Msghdr = struct { Fmsg_flags int32 } /* socket.h:483:1 */ +type Mmsghdr = struct { + Fmsg_hdr struct { + Fmsg_name uintptr + Fmsg_namelen Socklen_t + F__ccgo_pad1 [4]byte + Fmsg_iov uintptr + Fmsg_iovlen uint32 + F__ccgo_pad2 [4]byte + Fmsg_control uintptr + Fmsg_controllen Socklen_t + Fmsg_flags int32 + } + Fmsg_len uint32 + F__ccgo_pad1 [4]byte +} /* socket.h:493:1 */ + // Header for ancillary data objects in msg_control buffer. // Used for additional information with/about a datagram // not expressible by flags. The format is a sequence @@ -894,6 +909,6 @@ type Cmsghdr = struct { Fcmsg_len Socklen_t Fcmsg_level int32 Fcmsg_type int32 -} /* socket.h:512:1 */ +} /* socket.h:520:1 */ var _ int8 /* gen.c:2:13: */ |