github.com/golang-haiku/go-1.4.3@v0.0.0-20190609233734-1f5ae41cc308/src/syscall/ztypes_haiku_amd64.go (about) 1 // Created by cgo -godefs - DO NOT EDIT 2 // cgo -godefs types_haiku.go 3 4 package syscall 5 6 const ( 7 sizeofPtr = 0x8 8 sizeofShort = 0x2 9 sizeofInt = 0x4 10 sizeofLong = 0x8 11 sizeofLongLong = 0x8 12 ) 13 14 type ( 15 _C_short int16 16 _C_int int32 17 _C_long int64 18 _C_long_long int64 19 ) 20 21 type Timespec struct { 22 Sec int64 23 Nsec int64 24 } 25 26 type Timeval struct { 27 Sec int64 28 Usec int32 29 Pad_cgo_0 [4]byte 30 } 31 32 type Rusage struct { 33 Utime Timeval 34 Stime Timeval 35 } 36 37 type Rlimit struct { 38 Cur uint64 39 Max uint64 40 } 41 42 type _Gid_t uint32 43 44 type Stat_t struct { 45 Dev int32 46 Pad_cgo_0 [4]byte 47 Ino int64 48 Mode uint32 49 Nlink int32 50 Uid uint32 51 Gid uint32 52 Size int64 53 Rdev int32 54 Blksize int32 55 Atim Timespec 56 Mtim Timespec 57 Ctim Timespec 58 Crtim Timespec 59 Type uint32 60 Pad_cgo_1 [4]byte 61 Blocks int64 62 } 63 64 type Flock_t struct { 65 Type int16 66 Whence int16 67 Pad_cgo_0 [4]byte 68 Start int64 69 Len int64 70 Pid int32 71 Pad_cgo_1 [4]byte 72 } 73 74 type Dirent struct { 75 Dev int32 76 Pdev int32 77 Ino int64 78 Pino int64 79 Reclen uint16 80 Name [1 + 256]int8 81 Pad_cgo_0 [1]byte 82 } 83 84 type RawSockaddrInet4 struct { 85 Len uint8 86 Family uint8 87 Port uint16 88 Addr [4]byte /* in_addr */ 89 Zero [24]int8 90 } 91 92 type RawSockaddrInet6 struct { 93 Len uint8 94 Family uint8 95 Port uint16 96 Flowinfo uint32 97 Addr [16]byte /* in6_addr */ 98 Scope_id uint32 99 } 100 101 type RawSockaddrUnix struct { 102 Len uint8 103 Family uint8 104 Path [126]int8 105 } 106 107 type RawSockaddrDatalink struct { 108 Len uint8 109 Family uint8 110 E_type uint16 111 Index uint32 112 Type uint8 113 Nlen uint8 114 Alen uint8 115 Slen uint8 116 Data [46]uint8 117 Pad_cgo_0 [2]byte 118 } 119 120 type RawSockaddr struct { 121 Len uint8 122 Family uint8 123 Data [30]uint8 124 } 125 126 type RawSockaddrAny struct { 127 Addr RawSockaddr 128 Pad [96]int8 129 } 130 131 type _Socklen uint32 132 133 type Linger struct { 134 Onoff int32 135 Linger int32 136 } 137 138 type Iovec struct { 139 Base *byte 140 Len uint64 141 } 142 143 type IPMreq struct { 144 Multiaddr [4]byte /* in_addr */ 145 Interface [4]byte /* in_addr */ 146 } 147 148 type IPv6Mreq struct { 149 Multiaddr [16]byte /* in6_addr */ 150 Interface uint32 151 } 152 153 type Msghdr struct { 154 Name *byte 155 Namelen uint32 156 Pad_cgo_0 [4]byte 157 Iov *Iovec 158 Iovlen int32 159 Pad_cgo_1 [4]byte 160 Control *byte 161 Controllen uint32 162 Flags int32 163 } 164 165 type Cmsghdr struct { 166 Len uint32 167 Level int32 168 Type int32 169 } 170 171 type Inet6Pktinfo struct { 172 Addr [16]byte /* in6_addr */ 173 Ifindex uint32 174 } 175 176 type ICMPv6Filter struct { 177 Filt [8]uint32 178 } 179 180 const ( 181 SizeofSockaddrInet4 = 0x20 182 SizeofSockaddrInet6 = 0x1c 183 SizeofSockaddrAny = 0x80 184 SizeofSockaddrUnix = 0x80 185 SizeofSockaddrDatalink = 0x3c 186 SizeofLinger = 0x8 187 SizeofIPMreq = 0x8 188 SizeofIPv6Mreq = 0x14 189 SizeofMsghdr = 0x30 190 SizeofCmsghdr = 0xc 191 SizeofInet6Pktinfo = 0x14 192 SizeofICMPv6Filter = 0x20 193 ) 194 195 type FdSet struct { 196 Bits [32]uint32 197 } 198 199 type Termios struct { 200 Iflag uint32 201 Oflag uint32 202 Cflag uint32 203 Lflag uint32 204 Line int8 205 Ispeed uint8 206 Ospeed uint8 207 Cc [11]uint8 208 Pad_cgo_0 [2]byte 209 }