github.com/hbdrawn/golang@v0.0.0-20141214014649-6b835209aba2/src/syscall/ztypes_netbsd_386.go (about) 1 // Created by cgo -godefs - DO NOT EDIT 2 // cgo -godefs types_netbsd.go 3 4 package syscall 5 6 const ( 7 sizeofPtr = 0x4 8 sizeofShort = 0x2 9 sizeofInt = 0x4 10 sizeofLong = 0x4 11 sizeofLongLong = 0x8 12 ) 13 14 type ( 15 _C_short int16 16 _C_int int32 17 _C_long int32 18 _C_long_long int64 19 ) 20 21 type Timespec struct { 22 Sec int64 23 Nsec int32 24 } 25 26 type Timeval struct { 27 Sec int64 28 Usec int32 29 } 30 31 type Rusage struct { 32 Utime Timeval 33 Stime Timeval 34 Maxrss int32 35 Ixrss int32 36 Idrss int32 37 Isrss int32 38 Minflt int32 39 Majflt int32 40 Nswap int32 41 Inblock int32 42 Oublock int32 43 Msgsnd int32 44 Msgrcv int32 45 Nsignals int32 46 Nvcsw int32 47 Nivcsw int32 48 } 49 50 type Rlimit struct { 51 Cur uint64 52 Max uint64 53 } 54 55 type _Gid_t uint32 56 57 type Stat_t struct { 58 Dev uint64 59 Mode uint32 60 Ino uint64 61 Nlink uint32 62 Uid uint32 63 Gid uint32 64 Rdev uint64 65 Atimespec Timespec 66 Mtimespec Timespec 67 Ctimespec Timespec 68 Birthtimespec Timespec 69 Size int64 70 Blocks int64 71 Blksize uint32 72 Flags uint32 73 Gen uint32 74 Spare [2]uint32 75 } 76 77 type Statfs_t [0]byte 78 79 type Flock_t struct { 80 Start int64 81 Len int64 82 Pid int32 83 Type int16 84 Whence int16 85 } 86 87 type Dirent struct { 88 Fileno uint64 89 Reclen uint16 90 Namlen uint16 91 Type uint8 92 Name [512]int8 93 Pad_cgo_0 [3]byte 94 } 95 96 type Fsid struct { 97 X__fsid_val [2]int32 98 } 99 100 type RawSockaddrInet4 struct { 101 Len uint8 102 Family uint8 103 Port uint16 104 Addr [4]byte /* in_addr */ 105 Zero [8]int8 106 } 107 108 type RawSockaddrInet6 struct { 109 Len uint8 110 Family uint8 111 Port uint16 112 Flowinfo uint32 113 Addr [16]byte /* in6_addr */ 114 Scope_id uint32 115 } 116 117 type RawSockaddrUnix struct { 118 Len uint8 119 Family uint8 120 Path [104]int8 121 } 122 123 type RawSockaddrDatalink struct { 124 Len uint8 125 Family uint8 126 Index uint16 127 Type uint8 128 Nlen uint8 129 Alen uint8 130 Slen uint8 131 Data [12]int8 132 } 133 134 type RawSockaddr struct { 135 Len uint8 136 Family uint8 137 Data [14]int8 138 } 139 140 type RawSockaddrAny struct { 141 Addr RawSockaddr 142 Pad [92]int8 143 } 144 145 type _Socklen uint32 146 147 type Linger struct { 148 Onoff int32 149 Linger int32 150 } 151 152 type Iovec struct { 153 Base *byte 154 Len uint32 155 } 156 157 type IPMreq struct { 158 Multiaddr [4]byte /* in_addr */ 159 Interface [4]byte /* in_addr */ 160 } 161 162 type IPv6Mreq struct { 163 Multiaddr [16]byte /* in6_addr */ 164 Interface uint32 165 } 166 167 type Msghdr struct { 168 Name *byte 169 Namelen uint32 170 Iov *Iovec 171 Iovlen int32 172 Control *byte 173 Controllen uint32 174 Flags int32 175 } 176 177 type Cmsghdr struct { 178 Len uint32 179 Level int32 180 Type int32 181 } 182 183 type Inet6Pktinfo struct { 184 Addr [16]byte /* in6_addr */ 185 Ifindex uint32 186 } 187 188 type IPv6MTUInfo struct { 189 Addr RawSockaddrInet6 190 Mtu uint32 191 } 192 193 type ICMPv6Filter struct { 194 Filt [8]uint32 195 } 196 197 const ( 198 SizeofSockaddrInet4 = 0x10 199 SizeofSockaddrInet6 = 0x1c 200 SizeofSockaddrAny = 0x6c 201 SizeofSockaddrUnix = 0x6a 202 SizeofSockaddrDatalink = 0x14 203 SizeofLinger = 0x8 204 SizeofIPMreq = 0x8 205 SizeofIPv6Mreq = 0x14 206 SizeofMsghdr = 0x1c 207 SizeofCmsghdr = 0xc 208 SizeofInet6Pktinfo = 0x14 209 SizeofIPv6MTUInfo = 0x20 210 SizeofICMPv6Filter = 0x20 211 ) 212 213 const ( 214 PTRACE_TRACEME = 0x0 215 PTRACE_CONT = 0x7 216 PTRACE_KILL = 0x8 217 ) 218 219 type Kevent_t struct { 220 Ident uint32 221 Filter uint32 222 Flags uint32 223 Fflags uint32 224 Data int64 225 Udata int32 226 } 227 228 type FdSet struct { 229 Bits [8]uint32 230 } 231 232 const ( 233 SizeofIfMsghdr = 0x98 234 SizeofIfData = 0x84 235 SizeofIfaMsghdr = 0x18 236 SizeofIfAnnounceMsghdr = 0x18 237 SizeofRtMsghdr = 0x78 238 SizeofRtMetrics = 0x50 239 ) 240 241 type IfMsghdr struct { 242 Msglen uint16 243 Version uint8 244 Type uint8 245 Addrs int32 246 Flags int32 247 Index uint16 248 Pad_cgo_0 [2]byte 249 Data IfData 250 Pad_cgo_1 [4]byte 251 } 252 253 type IfData struct { 254 Type uint8 255 Addrlen uint8 256 Hdrlen uint8 257 Pad_cgo_0 [1]byte 258 Link_state int32 259 Mtu uint64 260 Metric uint64 261 Baudrate uint64 262 Ipackets uint64 263 Ierrors uint64 264 Opackets uint64 265 Oerrors uint64 266 Collisions uint64 267 Ibytes uint64 268 Obytes uint64 269 Imcasts uint64 270 Omcasts uint64 271 Iqdrops uint64 272 Noproto uint64 273 Lastchange Timespec 274 } 275 276 type IfaMsghdr struct { 277 Msglen uint16 278 Version uint8 279 Type uint8 280 Addrs int32 281 Flags int32 282 Metric int32 283 Index uint16 284 Pad_cgo_0 [6]byte 285 } 286 287 type IfAnnounceMsghdr struct { 288 Msglen uint16 289 Version uint8 290 Type uint8 291 Index uint16 292 Name [16]int8 293 What uint16 294 } 295 296 type RtMsghdr struct { 297 Msglen uint16 298 Version uint8 299 Type uint8 300 Index uint16 301 Pad_cgo_0 [2]byte 302 Flags int32 303 Addrs int32 304 Pid int32 305 Seq int32 306 Errno int32 307 Use int32 308 Inits int32 309 Pad_cgo_1 [4]byte 310 Rmx RtMetrics 311 } 312 313 type RtMetrics struct { 314 Locks uint64 315 Mtu uint64 316 Hopcount uint64 317 Recvpipe uint64 318 Sendpipe uint64 319 Ssthresh uint64 320 Rtt uint64 321 Rttvar uint64 322 Expire int64 323 Pksent int64 324 } 325 326 type Mclpool [0]byte 327 328 const ( 329 SizeofBpfVersion = 0x4 330 SizeofBpfStat = 0x80 331 SizeofBpfProgram = 0x8 332 SizeofBpfInsn = 0x8 333 SizeofBpfHdr = 0x14 334 ) 335 336 type BpfVersion struct { 337 Major uint16 338 Minor uint16 339 } 340 341 type BpfStat struct { 342 Recv uint64 343 Drop uint64 344 Capt uint64 345 Padding [13]uint64 346 } 347 348 type BpfProgram struct { 349 Len uint32 350 Insns *BpfInsn 351 } 352 353 type BpfInsn struct { 354 Code uint16 355 Jt uint8 356 Jf uint8 357 K uint32 358 } 359 360 type BpfHdr struct { 361 Tstamp BpfTimeval 362 Caplen uint32 363 Datalen uint32 364 Hdrlen uint16 365 Pad_cgo_0 [2]byte 366 } 367 368 type BpfTimeval struct { 369 Sec int32 370 Usec int32 371 } 372 373 type Termios struct { 374 Iflag uint32 375 Oflag uint32 376 Cflag uint32 377 Lflag uint32 378 Cc [20]uint8 379 Ispeed int32 380 Ospeed int32 381 } 382 383 type Sysctlnode struct { 384 Flags uint32 385 Num int32 386 Name [32]int8 387 Ver uint32 388 X__rsvd uint32 389 Un [16]byte 390 X_sysctl_size [8]byte 391 X_sysctl_func [8]byte 392 X_sysctl_parent [8]byte 393 X_sysctl_desc [8]byte 394 }