Documentation ¶
Index ¶
- Constants
- Variables
- type Blkcnt_t
- type Blksize_t
- type Caddr_t
- type Clock_t
- type Clockid_t
- type Cmsghdr
- type Daddr_t
- type Dev_t
- type Fd_mask
- type Fd_set
- type Fsblkcnt_t
- type Fsfilcnt_t
- type Fsid_t
- type Gid_t
- type Group_filter
- type Group_req
- type Group_source_req
- type Id_t
- type In6_addr
- type In_addr
- type In_addr_t
- type In_pktinfo
- type In_port_t
- type Ino_t
- type Int16_t
- type Int32_t
- type Int64_t
- type Int8_t
- type Iovec
- type Ip_mreq
- type Ip_mreq_source
- type Ip_mreqn
- type Ip_msfilter
- type Ip_opts
- type Ipv6_mreq
- type Key_t
- type Linger
- type Loff_t
- type Mode_t
- type Msghdr
- type Nlink_t
- type Off_t
- type Osockaddr
- type Pid_t
- type Pthread_attr_t
- type Pthread_attr_t1
- type Pthread_barrier_t
- type Pthread_barrierattr_t
- type Pthread_cond_t
- type Pthread_condattr_t
- type Pthread_key_t
- type Pthread_mutex_t
- type Pthread_mutexattr_t
- type Pthread_once_t
- type Pthread_rwlock_t
- type Pthread_rwlockattr_t
- type Pthread_spinlock_t
- type Pthread_t
- type Ptrdiff_t
- type Quad_t
- type Register_t
- type Sa_family_t
- type Sigset_t
- type Size_t
- type Sockaddr
- type Sockaddr_in
- type Sockaddr_in6
- type Sockaddr_storage
- type Socklen_t
- type Ssize_t
- type Suseconds_t
- type Time_t
- type Timer_t
- type Timespec
- type Timeval
- type U_char
- type U_int
- type U_int16_t
- type U_int32_t
- type U_int64_t
- type U_int8_t
- type U_long
- type U_quad_t
- type U_short
- type Uid_t
- type Uint
- type Uint16_t
- type Uint32_t
- type Uint64_t
- type Uint8_t
- type Ulong
- type Ushort
- type Wchar_t
- type X__blkcnt64_t
- type X__blkcnt_t
- type X__blksize_t
- type X__builtin_va_list
- type X__caddr_t
- type X__clock_t
- type X__clockid_t
- type X__daddr_t
- type X__dev_t
- type X__fd_mask
- type X__float128
- type X__fsblkcnt64_t
- type X__fsblkcnt_t
- type X__fsfilcnt64_t
- type X__fsfilcnt_t
- type X__fsid_t
- type X__fsword_t
- type X__gid_t
- type X__id_t
- type X__ino64_t
- type X__ino_t
- type X__int16_t
- type X__int32_t
- type X__int64_t
- type X__int8_t
- type X__int_least16_t
- type X__int_least32_t
- type X__int_least64_t
- type X__int_least8_t
- type X__intmax_t
- type X__intptr_t
- type X__key_t
- type X__loff_t
- type X__mode_t
- type X__nlink_t
- type X__off64_t
- type X__off_t
- type X__pid_t
- type X__pthread_cond_s
- type X__pthread_internal_list
- type X__pthread_list_t
- type X__pthread_mutex_s
- type X__pthread_rwlock_arch_t
- type X__quad_t
- type X__rlim64_t
- type X__rlim_t
- type X__sig_atomic_t
- type X__sigset_t
- type X__socklen_t
- type X__ssize_t
- type X__suseconds_t
- type X__syscall_slong_t
- type X__syscall_ulong_t
- type X__time_t
- type X__timer_t
- type X__u_char
- type X__u_int
- type X__u_long
- type X__u_quad_t
- type X__u_short
- type X__uid_t
- type X__uint16_t
- type X__uint32_t
- type X__uint64_t
- type X__uint8_t
- type X__uint_least16_t
- type X__uint_least32_t
- type X__uint_least64_t
- type X__uint_least8_t
- type X__uintmax_t
- type X__useconds_t
Constants ¶
const ( AF_ALG = 38 AF_APPLETALK = 5 AF_ASH = 18 AF_ATMPVC = 8 AF_ATMSVC = 20 AF_AX25 = 3 AF_BLUETOOTH = 31 AF_BRIDGE = 7 AF_CAIF = 37 AF_CAN = 29 AF_DECnet = 12 AF_ECONET = 19 AF_FILE = 1 AF_IB = 27 AF_IEEE802154 = 36 AF_INET = 2 AF_INET6 = 10 AF_IPX = 4 AF_IRDA = 23 AF_ISDN = 34 AF_IUCV = 32 AF_KCM = 41 AF_KEY = 15 AF_LLC = 26 AF_LOCAL = 1 AF_MAX = 44 AF_MPLS = 28 AF_NETBEUI = 13 AF_NETLINK = 16 AF_NETROM = 6 AF_NFC = 39 AF_PACKET = 17 AF_PHONET = 35 AF_PPPOX = 24 AF_QIPCRTR = 42 AF_RDS = 21 AF_ROSE = 11 AF_ROUTE = 16 AF_RXRPC = 33 AF_SECURITY = 14 AF_SMC = 43 AF_SNA = 22 AF_TIPC = 30 AF_UNIX = 1 AF_UNSPEC = 0 AF_VSOCK = 40 AF_WANPIPE = 25 AF_X25 = 9 BIG_ENDIAN = 4321 BYTE_ORDER = 1234 FD_SETSIZE = 1024 FIOGETOWN = 0x8903 FIOSETOWN = 0x8901 INET6_ADDRSTRLEN = 46 INET_ADDRSTRLEN = 16 IN_CLASSA_HOST = 16777215 IN_CLASSA_MAX = 128 IN_CLASSA_NET = 0xff000000 IN_CLASSA_NSHIFT = 24 IN_CLASSB_HOST = 65535 IN_CLASSB_MAX = 65536 IN_CLASSB_NET = 0xffff0000 IN_CLASSB_NSHIFT = 16 IN_CLASSC_HOST = 255 IN_CLASSC_NET = 0xffffff00 IN_CLASSC_NSHIFT = 8 IN_LOOPBACKNET = 127 IPV6_2292DSTOPTS = 4 IPV6_2292HOPLIMIT = 8 IPV6_2292HOPOPTS = 3 IPV6_2292PKTINFO = 2 IPV6_2292PKTOPTIONS = 6 IPV6_2292RTHDR = 5 IPV6_ADDRFORM = 1 IPV6_ADDR_PREFERENCES = 72 IPV6_ADD_MEMBERSHIP = 20 IPV6_AUTHHDR = 10 IPV6_AUTOFLOWLABEL = 70 IPV6_CHECKSUM = 7 IPV6_DONTFRAG = 62 IPV6_DROP_MEMBERSHIP = 21 IPV6_DSTOPTS = 59 IPV6_FREEBIND = 78 IPV6_HDRINCL = 36 IPV6_HOPLIMIT = 52 IPV6_HOPOPTS = 54 IPV6_IPSEC_POLICY = 34 IPV6_JOIN_ANYCAST = 27 IPV6_JOIN_GROUP = 20 IPV6_LEAVE_ANYCAST = 28 IPV6_LEAVE_GROUP = 21 IPV6_MINHOPCOUNT = 73 IPV6_MTU = 24 IPV6_MTU_DISCOVER = 23 IPV6_MULTICAST_HOPS = 18 IPV6_MULTICAST_IF = 17 IPV6_MULTICAST_LOOP = 19 IPV6_NEXTHOP = 9 IPV6_ORIGDSTADDR = 74 IPV6_PATHMTU = 61 IPV6_PKTINFO = 50 IPV6_PMTUDISC_DO = 2 IPV6_PMTUDISC_DONT = 0 IPV6_PMTUDISC_INTERFACE = 4 IPV6_PMTUDISC_OMIT = 5 IPV6_PMTUDISC_PROBE = 3 IPV6_PMTUDISC_WANT = 1 IPV6_RECVDSTOPTS = 58 IPV6_RECVERR = 25 IPV6_RECVFRAGSIZE = 77 IPV6_RECVHOPLIMIT = 51 IPV6_RECVHOPOPTS = 53 IPV6_RECVORIGDSTADDR = 74 IPV6_RECVPATHMTU = 60 IPV6_RECVPKTINFO = 49 IPV6_RECVRTHDR = 56 IPV6_RECVTCLASS = 66 IPV6_ROUTER_ALERT = 22 IPV6_RTHDR = 57 IPV6_RTHDRDSTOPTS = 55 IPV6_RTHDR_LOOSE = 0 IPV6_RTHDR_STRICT = 1 IPV6_RTHDR_TYPE_0 = 0 IPV6_RXDSTOPTS = 59 IPV6_RXHOPOPTS = 54 IPV6_TCLASS = 67 IPV6_TRANSPARENT = 75 IPV6_UNICAST_HOPS = 16 IPV6_UNICAST_IF = 76 IPV6_V6ONLY = 26 IPV6_XFRM_POLICY = 35 IP_ADD_MEMBERSHIP = 35 IP_ADD_SOURCE_MEMBERSHIP = 39 IP_BIND_ADDRESS_NO_PORT = 24 IP_BLOCK_SOURCE = 38 IP_CHECKSUM = 23 IP_DEFAULT_MULTICAST_LOOP = 1 IP_DEFAULT_MULTICAST_TTL = 1 IP_DROP_MEMBERSHIP = 36 IP_DROP_SOURCE_MEMBERSHIP = 40 IP_FREEBIND = 15 IP_HDRINCL = 3 IP_IPSEC_POLICY = 16 IP_MAX_MEMBERSHIPS = 20 IP_MINTTL = 21 IP_MSFILTER = 41 IP_MTU = 14 IP_MTU_DISCOVER = 10 IP_MULTICAST_ALL = 49 IP_MULTICAST_IF = 32 IP_MULTICAST_LOOP = 34 IP_MULTICAST_TTL = 33 IP_NODEFRAG = 22 IP_OPTIONS = 4 IP_ORIGDSTADDR = 20 IP_PASSSEC = 18 IP_PKTINFO = 8 IP_PKTOPTIONS = 9 IP_PMTUDISC = 10 IP_PMTUDISC_DO = 2 IP_PMTUDISC_DONT = 0 IP_PMTUDISC_INTERFACE = 4 IP_PMTUDISC_OMIT = 5 IP_PMTUDISC_PROBE = 3 IP_PMTUDISC_WANT = 1 IP_RECVERR = 11 IP_RECVFRAGSIZE = 25 IP_RECVOPTS = 6 IP_RECVORIGDSTADDR = 20 IP_RECVRETOPTS = 7 IP_RECVTOS = 13 IP_RECVTTL = 12 IP_RETOPTS = 7 IP_ROUTER_ALERT = 5 IP_TOS = 1 IP_TRANSPARENT = 19 IP_TTL = 2 IP_UNBLOCK_SOURCE = 37 IP_UNICAST_IF = 50 IP_XFRM_POLICY = 17 LITTLE_ENDIAN = 1234 MCAST_BLOCK_SOURCE = 43 MCAST_EXCLUDE = 0 MCAST_INCLUDE = 1 MCAST_JOIN_GROUP = 42 MCAST_JOIN_SOURCE_GROUP = 46 MCAST_LEAVE_GROUP = 45 MCAST_LEAVE_SOURCE_GROUP = 47 MCAST_MSFILTER = 48 MCAST_UNBLOCK_SOURCE = 44 PDP_ENDIAN = 3412 PF_ALG = 38 PF_APPLETALK = 5 PF_ASH = 18 PF_ATMPVC = 8 PF_ATMSVC = 20 PF_AX25 = 3 PF_BLUETOOTH = 31 PF_BRIDGE = 7 PF_CAIF = 37 PF_CAN = 29 PF_DECnet = 12 PF_ECONET = 19 PF_FILE = 1 PF_IB = 27 PF_IEEE802154 = 36 PF_INET = 2 PF_INET6 = 10 PF_IPX = 4 PF_IRDA = 23 PF_ISDN = 34 PF_IUCV = 32 PF_KCM = 41 PF_KEY = 15 PF_LLC = 26 PF_LOCAL = 1 PF_MAX = 44 PF_MPLS = 28 PF_NETBEUI = 13 PF_NETLINK = 16 PF_NETROM = 6 PF_NFC = 39 PF_PACKET = 17 PF_PHONET = 35 PF_PPPOX = 24 PF_QIPCRTR = 42 PF_RDS = 21 PF_ROSE = 11 PF_ROUTE = 16 PF_RXRPC = 33 PF_SECURITY = 14 PF_SMC = 43 PF_SNA = 22 PF_TIPC = 30 PF_UNIX = 1 PF_UNSPEC = 0 PF_VSOCK = 40 PF_WANPIPE = 25 PF_X25 = 9 SCM_TIMESTAMP = 29 SCM_TIMESTAMPING = 37 SCM_TIMESTAMPING_OPT_STATS = 54 SCM_TIMESTAMPING_PKTINFO = 58 SCM_TIMESTAMPNS = 35 SCM_TXTIME = 61 SCM_WIFI_STATUS = 41 SIOCATMARK = 0x8905 SIOCGPGRP = 0x8904 SIOCGSTAMP = 0x8906 SIOCGSTAMPNS = 0x8907 SIOCSPGRP = 0x8902 SOL_AAL = 265 SOL_ALG = 279 SOL_ATM = 264 SOL_BLUETOOTH = 274 SOL_CAIF = 278 SOL_DCCP = 269 SOL_DECNET = 261 SOL_ICMPV6 = 58 SOL_IP = 0 SOL_IPV6 = 41 SOL_IRDA = 266 SOL_IUCV = 277 SOL_KCM = 281 SOL_LLC = 268 SOL_NETBEUI = 267 SOL_NETLINK = 270 SOL_NFC = 280 SOL_PACKET = 263 SOL_PNPIPE = 275 SOL_PPPOL2TP = 273 SOL_RAW = 255 SOL_RDS = 276 SOL_RXRPC = 272 SOL_SOCKET = 1 SOL_TIPC = 271 SOL_TLS = 282 SOL_X25 = 262 SOMAXCONN = 128 SO_ACCEPTCONN = 30 SO_ATTACH_BPF = 50 SO_ATTACH_FILTER = 26 SO_ATTACH_REUSEPORT_CBPF = 51 SO_ATTACH_REUSEPORT_EBPF = 52 SO_BINDTODEVICE = 25 SO_BPF_EXTENSIONS = 48 SO_BROADCAST = 6 SO_BSDCOMPAT = 14 SO_BUSY_POLL = 46 SO_CNX_ADVICE = 53 SO_COOKIE = 57 SO_DEBUG = 1 SO_DETACH_BPF = 27 SO_DETACH_FILTER = 27 SO_DOMAIN = 39 SO_DONTROUTE = 5 SO_ERROR = 4 SO_GET_FILTER = 26 SO_INCOMING_CPU = 49 SO_INCOMING_NAPI_ID = 56 SO_KEEPALIVE = 9 SO_LINGER = 13 SO_LOCK_FILTER = 44 SO_MARK = 36 SO_MAX_PACING_RATE = 47 SO_MEMINFO = 55 SO_NOFCS = 43 SO_NO_CHECK = 11 SO_OOBINLINE = 10 SO_PASSCRED = 16 SO_PASSSEC = 34 SO_PEEK_OFF = 42 SO_PEERCRED = 17 SO_PEERGROUPS = 59 SO_PEERNAME = 28 SO_PEERSEC = 31 SO_PRIORITY = 12 SO_PROTOCOL = 38 SO_RCVBUF = 8 SO_RCVBUFFORCE = 33 SO_RCVLOWAT = 18 SO_RCVTIMEO = 20 SO_REUSEADDR = 2 SO_REUSEPORT = 15 SO_RXQ_OVFL = 40 SO_SECURITY_AUTHENTICATION = 22 SO_SECURITY_ENCRYPTION_NETWORK = 24 SO_SECURITY_ENCRYPTION_TRANSPORT = 23 SO_SELECT_ERR_QUEUE = 45 SO_SNDBUF = 7 SO_SNDBUFFORCE = 32 SO_SNDLOWAT = 19 SO_SNDTIMEO = 21 SO_TIMESTAMP = 29 SO_TIMESTAMPING = 37 SO_TIMESTAMPNS = 35 SO_TXTIME = 61 SO_TYPE = 3 SO_WIFI_STATUS = 41 SO_ZEROCOPY = 60 X_ATFILE_SOURCE = 1 X_BITS_BYTESWAP_H = 1 X_BITS_PTHREADTYPES_ARCH_H = 1 X_BITS_PTHREADTYPES_COMMON_H = 1 X_BITS_SOCKADDR_H = 1 X_BITS_STDINT_INTN_H = 1 X_BITS_STDINT_UINTN_H = 1 X_BITS_TYPESIZES_H = 1 X_BITS_TYPES_H = 1 X_BITS_UINTN_IDENTITY_H = 1 X_BSD_SIZE_T_ = 0 X_BSD_SIZE_T_DEFINED_ = 0 X_DEFAULT_SOURCE = 1 X_ENDIAN_H = 1 X_FEATURES_H = 1 X_GCC_SIZE_T = 0 X_LP64 = 1 X_NETINET_IN_H = 1 X_POSIX_C_SOURCE = 200809 X_POSIX_SOURCE = 1 X_SIZET_ = 0 X_SIZE_T = 0 X_SIZE_T_ = 0 X_SIZE_T_DECLARED = 0 X_SIZE_T_DEFINED = 0 X_SIZE_T_DEFINED_ = 0 X_SS_SIZE = 128 X_STDC_PREDEF_H = 1 X_STRUCT_TIMESPEC = 1 X_SYS_CDEFS_H = 1 X_SYS_SELECT_H = 1 X_SYS_SIZE_T_H = 0 X_SYS_SOCKET_H = 1 X_SYS_TYPES_H = 1 X_THREAD_SHARED_TYPES_H = 1 X_T_SIZE = 0 X_T_SIZE_ = 0 Linux = 1 Unix = 1 )
const ( IPPORT_ECHO = 7 // Echo service. IPPORT_DISCARD = 9 // Discard transmissions service. IPPORT_SYSTAT = 11 // System status service. IPPORT_DAYTIME = 13 // Time of day service. IPPORT_NETSTAT = 15 // Network status service. IPPORT_FTP = 21 // File Transfer Protocol. IPPORT_TELNET = 23 // Telnet protocol. IPPORT_SMTP = 25 // Simple Mail Transfer Protocol. IPPORT_TIMESERVER = 37 // Timeserver service. IPPORT_NAMESERVER = 42 // Domain Name Service. IPPORT_WHOIS = 43 // Internet Whois service. IPPORT_MTP = 57 IPPORT_TFTP = 69 // Trivial File Transfer Protocol. IPPORT_RJE = 77 IPPORT_FINGER = 79 // Finger service. IPPORT_TTYLINK = 87 IPPORT_SUPDUP = 95 // SUPDUP protocol. IPPORT_EXECSERVER = 512 // execd service. IPPORT_LOGINSERVER = 513 // rlogind service. IPPORT_CMDSERVER = 514 IPPORT_EFSSERVER = 520 // UDP ports. IPPORT_BIFFUDP = 512 IPPORT_WHOSERVER = 513 IPPORT_ROUTESERVER = 520 // Ports less than this value are reserved for privileged processes. IPPORT_RESERVED = 1024 // Ports greater this value are reserved for (non-privileged) servers. IPPORT_USERRESERVED = 5000 )
Standard well-known ports.
const ( IPPROTO_IP = 0 // Dummy protocol for TCP. IPPROTO_ICMP = 1 // Internet Control Message Protocol. IPPROTO_IGMP = 2 // Internet Group Management Protocol. IPPROTO_IPIP = 4 // IPIP tunnels (older KA9Q tunnels use 94). IPPROTO_TCP = 6 // Transmission Control Protocol. IPPROTO_EGP = 8 // Exterior Gateway Protocol. IPPROTO_PUP = 12 // PUP protocol. IPPROTO_UDP = 17 // User Datagram Protocol. IPPROTO_IDP = 22 // XNS IDP protocol. IPPROTO_TP = 29 // SO Transport Protocol Class 4. IPPROTO_DCCP = 33 // Datagram Congestion Control Protocol. IPPROTO_IPV6 = 41 // IPv6 header. IPPROTO_RSVP = 46 // Reservation Protocol. IPPROTO_GRE = 47 // General Routing Encapsulation. IPPROTO_ESP = 50 // encapsulating security payload. IPPROTO_AH = 51 // authentication header. IPPROTO_MTP = 92 // Multicast Transport Protocol. IPPROTO_BEETPH = 94 // IP option pseudo header for BEET. IPPROTO_ENCAP = 98 // Encapsulation Header. IPPROTO_PIM = 103 // Protocol Independent Multicast. IPPROTO_COMP = 108 // Compression Header Protocol. IPPROTO_SCTP = 132 // Stream Control Transmission Protocol. IPPROTO_UDPLITE = 136 // UDP-Lite protocol. IPPROTO_MPLS = 137 // MPLS in IP. IPPROTO_RAW = 255 // Raw IP packets. IPPROTO_MAX = 256 )
Standard well-defined IP protocols.
const ( IPPROTO_HOPOPTS = 0 // IPv6 Hop-by-Hop options. IPPROTO_ROUTING = 43 // IPv6 routing header. IPPROTO_FRAGMENT = 44 // IPv6 fragmentation header. IPPROTO_ICMPV6 = 58 // ICMPv6. IPPROTO_NONE = 59 // IPv6 no next header. IPPROTO_DSTOPTS = 60 // IPv6 destination options. IPPROTO_MH = 135 )
If __USE_KERNEL_IPV6_DEFS is 1 then the user has included the kernel
network headers first and we should use those ABI-identical definitions instead of our own, otherwise 0.
const ( MSG_OOB = 1 // Process out-of-band data. MSG_PEEK = 2 // Peek at incoming messages. MSG_DONTROUTE = 4 // Don't use local routing. MSG_CTRUNC = 8 // Control data lost before delivery. MSG_PROXY = 16 // Supply or ask second address. MSG_TRUNC = 32 MSG_DONTWAIT = 64 // Nonblocking IO. MSG_EOR = 128 // End of record. MSG_WAITALL = 256 // Wait for a full request. MSG_FIN = 512 MSG_SYN = 1024 MSG_CONFIRM = 2048 // Confirm path validity. MSG_RST = 4096 MSG_ERRQUEUE = 8192 // Fetch message from error queue. MSG_NOSIGNAL = 16384 // Do not generate SIGPIPE. MSG_MORE = 32768 // Sender will send more. MSG_WAITFORONE = 65536 // Wait for at least one packet to return. MSG_BATCH = 262144 // sendmmsg: more messages coming. MSG_ZEROCOPY = 67108864 // Use user data in kernel path. MSG_FASTOPEN = 536870912 // Send data in TCP SYN. MSG_CMSG_CLOEXEC = 1073741824 )
Bits in the FLAGS argument to `send', `recv', et al.
const ( SOCK_STREAM = 1 // Sequenced, reliable, connection-based // byte streams. SOCK_DGRAM = 2 // Connectionless, unreliable datagrams // of fixed maximum length. SOCK_RAW = 3 // Raw protocol interface. SOCK_RDM = 4 // Reliably-delivered messages. SOCK_SEQPACKET = 5 // Sequenced, reliable, connection-based, // datagrams of fixed maximum length. SOCK_DCCP = 6 // Datagram Congestion Control Protocol. SOCK_PACKET = 10 // Linux specific way of getting packets SOCK_CLOEXEC = 524288 // Atomically set close-on-exec flag for the // new descriptor(s). SOCK_NONBLOCK = 2048 )
Types of sockets.
const ( SHUT_RD = 0 // No more receptions. SHUT_WR = 1 // No more transmissions. SHUT_RDWR = 2 )
The following constants should be used for the second parameter of
`shutdown'.
const (
SCM_RIGHTS = 1
)
Socket level message types. This must match the definitions in
<linux/socket.h>.
Variables ¶
var CAPI = map[string]struct{}{}
Functions ¶
This section is empty.
Types ¶
type Blkcnt_t ¶
type Blkcnt_t = X__blkcnt_t /* types.h:209:20 */ // Type to count number of disk blocks.
Types from the Large File Support interface.
type Blksize_t ¶
type Blksize_t = X__blksize_t /* types.h:202:21 */
type Caddr_t ¶
type Caddr_t = X__caddr_t /* types.h:115:19 */
type Clockid_t ¶
type Clockid_t = X__clockid_t /* clockid_t.h:7:21 */
Clock ID used in clock and timer functions.
type Cmsghdr ¶
type Cmsghdr = struct { Fcmsg_len Size_t Fcmsg_level int32 Fcmsg_type int32 // contains filtered or unexported fields }
Structure used for storage of ancillary data object information.
type Daddr_t ¶
type Daddr_t = X__daddr_t /* types.h:114:19 */
type Fd_mask ¶
type Fd_mask = X__fd_mask /* select.h:77:19 */
Sometimes the fd_set member is assumed to have this type.
type Fd_set ¶
type Fd_set = struct{ F__fds_bits [16]X__fd_mask } /* select.h:70:5 */
fd_set for select and pselect.
type Fsblkcnt_t ¶
type Fsblkcnt_t = X__fsblkcnt_t /* types.h:213:22 */ // Type to count file system blocks.
type Fsfilcnt_t ¶
type Fsfilcnt_t = X__fsfilcnt_t /* types.h:217:22 */ // Type to count file system inodes.
type Group_filter ¶
type Group_filter = struct { Fgf_interface Uint32_t Fgf_group struct { Fss_family Sa_family_t F__ss_padding [118]int8 F__ss_align uint64 } Fgf_fmode Uint32_t Fgf_numsrc Uint32_t Fgf_slist [1]struct { Fss_family Sa_family_t F__ss_padding [118]int8 F__ss_align uint64 } }
type Group_req ¶
type Group_req = struct { Fgr_interface Uint32_t Fgr_group struct { Fss_family Sa_family_t F__ss_padding [118]int8 F__ss_align uint64 } }
Multicast group request.
type Group_source_req ¶
type Group_source_req = struct { Fgsr_interface Uint32_t Fgsr_group struct { Fss_family Sa_family_t F__ss_padding [118]int8 F__ss_align uint64 } Fgsr_source struct { Fss_family Sa_family_t F__ss_padding [118]int8 F__ss_align uint64 } }
type In6_addr ¶
type In6_addr = struct { F__in6_u struct { F__u6_addr8 [16]Uint8_t // contains filtered or unexported fields } }
IPv6 address
type In_pktinfo ¶
type In_pktinfo = struct { Fipi_ifindex int32 Fipi_spec_dst struct{ Fs_addr In_addr_t } Fipi_addr struct{ Fs_addr In_addr_t } }
Structure used for IP_PKTINFO.
type Int16_t ¶
type Int16_t = X__int16_t /* stdint-intn.h:25:19 */
type Int32_t ¶
type Int32_t = X__int32_t /* stdint-intn.h:26:19 */
type Int64_t ¶
type Int64_t = X__int64_t /* stdint-intn.h:27:19 */
type Ip_mreq ¶
type Ip_mreq = struct { Fimr_multiaddr struct{ Fs_addr In_addr_t } Fimr_interface struct{ Fs_addr In_addr_t } }
IPv4 multicast request.
type Ip_mreq_source ¶
type Ip_mreqn ¶
type Ip_mreqn = struct { Fimr_multiaddr struct{ Fs_addr In_addr_t } Fimr_address struct{ Fs_addr In_addr_t } Fimr_ifindex int32 }
Like `struct ip_mreq' but including interface specification by index.
type Ip_msfilter ¶
type Ip_msfilter = struct { Fimsf_multiaddr struct{ Fs_addr In_addr_t } Fimsf_interface struct{ Fs_addr In_addr_t } Fimsf_fmode Uint32_t Fimsf_numsrc Uint32_t Fimsf_slist [1]struct{ Fs_addr In_addr_t } }
Full-state filter operations.
type Ip_opts ¶
Structure used to describe IP options for IP_OPTIONS and IP_RETOPTS.
The `ip_dst' field is used for the first-hop gateway when using a source route (this gets put into the header proper).
type Ipv6_mreq ¶
type Ipv6_mreq = struct { Fipv6mr_multiaddr struct { F__in6_u struct { F__u6_addr8 [16]Uint8_t // contains filtered or unexported fields } } Fipv6mr_interface uint32 }
Likewise, for IPv6.
type Msghdr ¶
type Msghdr = struct { Fmsg_name uintptr Fmsg_namelen Socklen_t Fmsg_iov uintptr Fmsg_iovlen Size_t Fmsg_control uintptr Fmsg_controllen Size_t Fmsg_flags int32 // contains filtered or unexported fields }
Structure describing messages sent by
`sendmsg' and received by `recvmsg'.
type Nlink_t ¶
type Nlink_t = X__nlink_t /* types.h:74:19 */
type Osockaddr ¶
This is the 4.3 BSD `struct sockaddr' format, which is used as wire
format in the grotty old 4.3 `talk' protocol.
type Pthread_attr_t ¶
type Pthread_attr_t = Pthread_attr_t1 /* pthreadtypes.h:62:30 */
type Pthread_attr_t1 ¶
type Pthread_attr_t1 = struct { F__size [56]int8 // contains filtered or unexported fields }
type Pthread_barrier_t ¶
type Pthread_barrier_t = struct { F__size [32]int8 // contains filtered or unexported fields } /* pthreadtypes.h:112:3 */
POSIX barriers data type. The structure of the type is
deliberately not exposed.
type Pthread_barrierattr_t ¶
type Pthread_barrierattr_t = struct { F__size [4]int8 // contains filtered or unexported fields } /* pthreadtypes.h:118:3 */
type Pthread_cond_t ¶
type Pthread_cond_t = struct{ F__data X__pthread_cond_s } /* pthreadtypes.h:80:3 */
type Pthread_condattr_t ¶
type Pthread_condattr_t = struct { F__size [4]int8 // contains filtered or unexported fields } /* pthreadtypes.h:45:3 */
Data structure for condition variable handling. The structure of
the attribute type is not exposed on purpose.
type Pthread_key_t ¶
type Pthread_key_t = uint32 /* pthreadtypes.h:49:22 */
Keys for thread-specific data
type Pthread_mutex_t ¶
type Pthread_mutex_t = struct{ F__data X__pthread_mutex_s } /* pthreadtypes.h:72:3 */
type Pthread_mutexattr_t ¶
type Pthread_mutexattr_t = struct { F__size [4]int8 // contains filtered or unexported fields } /* pthreadtypes.h:36:3 */
Data structures for mutex handling. The structure of the attribute
type is not exposed on purpose.
type Pthread_rwlock_t ¶
type Pthread_rwlock_t = struct{ F__data X__pthread_rwlock_arch_t } /* pthreadtypes.h:91:3 */
Data structure for reader-writer lock variable handling. The
structure of the attribute type is deliberately not exposed.
type Pthread_rwlockattr_t ¶
type Pthread_rwlockattr_t = struct { F__size [8]int8 // contains filtered or unexported fields } /* pthreadtypes.h:97:3 */
type Pthread_spinlock_t ¶
type Pthread_spinlock_t = int32 /* pthreadtypes.h:103:22 */
POSIX spinlock data type.
type Pthread_t ¶
type Pthread_t = uint64 /* pthreadtypes.h:27:27 */
Thread identifiers. The structure of the attribute type is not
exposed on purpose.
type Register_t ¶
type Register_t = int32 /* types.h:169:13 */
type Sa_family_t ¶
type Sa_family_t = uint16 /* sockaddr.h:28:28 */
POSIX.1g specifies this type name for the `sa_family' member.
type Sigset_t ¶
type Sigset_t = X__sigset_t /* sigset_t.h:7:20 */
A set of signals to be blocked, unblocked, or waited for.
type Sockaddr ¶
type Sockaddr = struct { Fsa_family Sa_family_t Fsa_data [14]int8 }
Structure describing a generic socket address.
type Sockaddr_in ¶
type Sockaddr_in = struct { Fsin_family Sa_family_t Fsin_port In_port_t Fsin_addr struct{ Fs_addr In_addr_t } Fsin_zero [8]uint8 }
Structure describing an Internet socket address.
type Sockaddr_in6 ¶
type Sockaddr_in6 = struct { Fsin6_family Sa_family_t Fsin6_port In_port_t Fsin6_flowinfo Uint32_t Fsin6_addr struct { F__in6_u struct { F__u6_addr8 [16]Uint8_t // contains filtered or unexported fields } } Fsin6_scope_id Uint32_t }
Ditto, for IPv6.
type Sockaddr_storage ¶
type Sockaddr_storage = struct { Fss_family Sa_family_t F__ss_padding [118]int8 F__ss_align uint64 }
type Socklen_t ¶
type Socklen_t = X__socklen_t /* socket.h:33:21 */
Type for length arguments in socket calls.
type Ssize_t ¶
type Ssize_t = X__ssize_t /* types.h:108:19 */
type Suseconds_t ¶
type Suseconds_t = X__suseconds_t /* select.h:43:23 */
type Timespec ¶
type Timespec = struct { Ftv_sec X__time_t Ftv_nsec X__syscall_slong_t }
POSIX.1b structure for a time value. This is like a `struct timeval' but
has nanoseconds instead of microseconds.
type Timeval ¶
type Timeval = struct { Ftv_sec X__time_t Ftv_usec X__suseconds_t }
A time value that is accurate to the nearest
microsecond but also has a range of years.
type U_int8_t ¶
type U_int8_t = uint8 /* types.h:160:23 */
These were defined by ISO C without the first `_'.
type U_quad_t ¶
type U_quad_t = X__u_quad_t /* types.h:38:20 */
type U_short ¶
type U_short = X__u_short /* types.h:34:19 */
type Uint16_t ¶
type Uint16_t = X__uint16_t /* stdint-uintn.h:25:20 */
type Uint32_t ¶
type Uint32_t = X__uint32_t /* stdint-uintn.h:26:20 */
type Uint64_t ¶
type Uint64_t = X__uint64_t /* stdint-uintn.h:27:20 */
type Uint8_t ¶
type Uint8_t = X__uint8_t /* stdint-uintn.h:24:19 */
type X__blkcnt64_t ¶
type X__blkcnt64_t = int64 /* types.h:178:30 */
type X__blkcnt_t ¶
type X__blkcnt_t = int64 /* types.h:177:28 */
Type to count number of disk blocks.
type X__builtin_va_list ¶
type X__builtin_va_list = uintptr /* <builtin>:28:14 */
type X__caddr_t ¶
type X__caddr_t = uintptr /* types.h:201:14 */
type X__clock_t ¶
type X__clock_t = int64 /* types.h:154:27 */ // Type of CPU usage counts.
type X__clockid_t ¶
type X__clockid_t = int32 /* types.h:166:29 */
Clock ID used in clock and timer functions.
type X__daddr_t ¶
type X__daddr_t = int32 /* types.h:162:27 */ // The type of a disk address.
type X__fd_mask ¶
type X__fd_mask = int64 /* select.h:49:18 */
The fd_set member is required to be an array of longs.
type X__float128 ¶
type X__float128 = float64 /* <builtin>:29:21 */
type X__fsblkcnt64_t ¶
type X__fsblkcnt64_t = uint64 /* types.h:182:32 */
type X__fsblkcnt_t ¶
type X__fsblkcnt_t = uint64 /* types.h:181:30 */
Type to count file system blocks.
type X__fsfilcnt64_t ¶
type X__fsfilcnt64_t = uint64 /* types.h:186:32 */
type X__fsfilcnt_t ¶
type X__fsfilcnt_t = uint64 /* types.h:185:30 */
Type to count file system nodes.
type X__fsid_t ¶
type X__fsid_t = struct{ F__val [2]int32 } /* types.h:153:26 */ // Type of file system IDs.
type X__fsword_t ¶
type X__fsword_t = int64 /* types.h:189:28 */
Type of miscellaneous file system fields.
type X__ino64_t ¶
type X__ino64_t = uint64 /* types.h:147:27 */ // Type of file serial numbers (LFS).
type X__int16_t ¶
type X__int16_t = int16 /* types.h:38:26 */
type X__int32_t ¶
type X__int32_t = int32 /* types.h:40:20 */
type X__int64_t ¶
type X__int64_t = int64 /* types.h:43:25 */
type X__int8_t ¶
type X__int8_t = int8 /* types.h:36:21 */
Fixed-size types, underlying types depend on word size and compiler.
type X__int_least16_t ¶
type X__int_least16_t = X__int16_t /* types.h:53:19 */
type X__int_least32_t ¶
type X__int_least32_t = X__int32_t /* types.h:55:19 */
type X__int_least64_t ¶
type X__int_least64_t = X__int64_t /* types.h:57:19 */
type X__int_least8_t ¶
type X__int_least8_t = X__int8_t /* types.h:51:18 */
Smallest types with at least a given width.
type X__intptr_t ¶
type X__intptr_t = int64 /* types.h:204:25 */
Duplicates info from stdint.h but this is used in unistd.h.
type X__loff_t ¶
type X__loff_t = X__off64_t /* types.h:200:19 */ // Type of file sizes and offsets (LFS).
These few don't really vary by system, they always correspond
to one of the other defined types.
type X__nlink_t ¶
type X__nlink_t = uint64 /* types.h:149:27 */ // Type of file link counts.
type X__off64_t ¶
type X__off64_t = int64 /* types.h:151:27 */ // Type of file sizes and offsets (LFS).
type X__pthread_cond_s ¶
type X__pthread_list_t ¶
type X__pthread_list_t = X__pthread_internal_list /* thread-shared-types.h:86:3 */
type X__pthread_mutex_s ¶
type X__rlim64_t ¶
type X__rlim64_t = uint64 /* types.h:156:28 */ // Type for resource measurement (LFS).
type X__sig_atomic_t ¶
type X__sig_atomic_t = int32 /* types.h:212:13 */
C99: An integer type that can be accessed as an atomic entity,
even in the presence of asynchronous interrupts. It is not currently necessary for this to be machine-specific.
type X__sigset_t ¶
type X__sigset_t = struct{ F__val [16]uint64 } /* __sigset_t.h:8:3 */
type X__socklen_t ¶
type X__socklen_t = uint32 /* types.h:207:23 */
Duplicate info from sys/socket.h.
type X__ssize_t ¶
type X__ssize_t = int64 /* types.h:191:27 */ // Type of a byte count, or error.
type X__suseconds_t ¶
type X__suseconds_t = int64 /* types.h:160:31 */ // Signed count of microseconds.
type X__syscall_slong_t ¶
type X__syscall_slong_t = int64 /* types.h:194:33 */
Signed long type used in system calls.
type X__syscall_ulong_t ¶
type X__syscall_ulong_t = uint64 /* types.h:196:33 */
Unsigned long type used in system calls.
type X__timer_t ¶
type X__timer_t = uintptr /* types.h:169:12 */
Timer ID returned by `timer_create'.
type X__u_quad_t ¶
type X__u_quad_t = uint64 /* types.h:63:27 */
type X__u_short ¶
type X__u_short = uint16 /* types.h:31:28 */
type X__uint16_t ¶
type X__uint16_t = uint16 /* types.h:39:28 */
type X__uint32_t ¶
type X__uint32_t = uint32 /* types.h:41:22 */
type X__uint64_t ¶
type X__uint64_t = uint64 /* types.h:44:27 */
type X__uint8_t ¶
type X__uint8_t = uint8 /* types.h:37:23 */
type X__uint_least16_t ¶
type X__uint_least16_t = X__uint16_t /* types.h:54:20 */
type X__uint_least32_t ¶
type X__uint_least32_t = X__uint32_t /* types.h:56:20 */
type X__uint_least64_t ¶
type X__uint_least64_t = X__uint64_t /* types.h:58:20 */
type X__uint_least8_t ¶
type X__uint_least8_t = X__uint8_t /* types.h:52:19 */
type X__uintmax_t ¶
type X__uintmax_t = uint64 /* types.h:72:27 */
type X__useconds_t ¶
type X__useconds_t = uint32 /* types.h:159:30 */ // Count of microseconds.