1// cgo -godefs types_netbsd.go | go run mkpost.go 2// Code generated by the command above; see README.md. DO NOT EDIT. 3 4// +build arm,netbsd 5 6package unix 7 8const ( 9 SizeofPtr = 0x4 10 SizeofShort = 0x2 11 SizeofInt = 0x4 12 SizeofLong = 0x4 13 SizeofLongLong = 0x8 14) 15 16type ( 17 _C_short int16 18 _C_int int32 19 _C_long int32 20 _C_long_long int64 21) 22 23type Timespec struct { 24 Sec int64 25 Nsec int32 26 Pad_cgo_0 [4]byte 27} 28 29type Timeval struct { 30 Sec int64 31 Usec int32 32 Pad_cgo_0 [4]byte 33} 34 35type Rusage struct { 36 Utime Timeval 37 Stime Timeval 38 Maxrss int32 39 Ixrss int32 40 Idrss int32 41 Isrss int32 42 Minflt int32 43 Majflt int32 44 Nswap int32 45 Inblock int32 46 Oublock int32 47 Msgsnd int32 48 Msgrcv int32 49 Nsignals int32 50 Nvcsw int32 51 Nivcsw int32 52} 53 54type Rlimit struct { 55 Cur uint64 56 Max uint64 57} 58 59type _Gid_t uint32 60 61type Stat_t struct { 62 Dev uint64 63 Mode uint32 64 Pad_cgo_0 [4]byte 65 Ino uint64 66 Nlink uint32 67 Uid uint32 68 Gid uint32 69 Pad_cgo_1 [4]byte 70 Rdev uint64 71 Atimespec Timespec 72 Mtimespec Timespec 73 Ctimespec Timespec 74 Birthtimespec Timespec 75 Size int64 76 Blocks int64 77 Blksize uint32 78 Flags uint32 79 Gen uint32 80 Spare [2]uint32 81 Pad_cgo_2 [4]byte 82} 83 84type Statfs_t [0]byte 85 86type Flock_t struct { 87 Start int64 88 Len int64 89 Pid int32 90 Type int16 91 Whence int16 92} 93 94type Dirent struct { 95 Fileno uint64 96 Reclen uint16 97 Namlen uint16 98 Type uint8 99 Name [512]int8 100 Pad_cgo_0 [3]byte 101} 102 103type Fsid struct { 104 X__fsid_val [2]int32 105} 106 107const ( 108 PathMax = 0x400 109) 110 111const ( 112 FADV_NORMAL = 0x0 113 FADV_RANDOM = 0x1 114 FADV_SEQUENTIAL = 0x2 115 FADV_WILLNEED = 0x3 116 FADV_DONTNEED = 0x4 117 FADV_NOREUSE = 0x5 118) 119 120type RawSockaddrInet4 struct { 121 Len uint8 122 Family uint8 123 Port uint16 124 Addr [4]byte /* in_addr */ 125 Zero [8]int8 126} 127 128type RawSockaddrInet6 struct { 129 Len uint8 130 Family uint8 131 Port uint16 132 Flowinfo uint32 133 Addr [16]byte /* in6_addr */ 134 Scope_id uint32 135} 136 137type RawSockaddrUnix struct { 138 Len uint8 139 Family uint8 140 Path [104]int8 141} 142 143type RawSockaddrDatalink struct { 144 Len uint8 145 Family uint8 146 Index uint16 147 Type uint8 148 Nlen uint8 149 Alen uint8 150 Slen uint8 151 Data [12]int8 152} 153 154type RawSockaddr struct { 155 Len uint8 156 Family uint8 157 Data [14]int8 158} 159 160type RawSockaddrAny struct { 161 Addr RawSockaddr 162 Pad [92]int8 163} 164 165type _Socklen uint32 166 167type Linger struct { 168 Onoff int32 169 Linger int32 170} 171 172type Iovec struct { 173 Base *byte 174 Len uint32 175} 176 177type IPMreq struct { 178 Multiaddr [4]byte /* in_addr */ 179 Interface [4]byte /* in_addr */ 180} 181 182type IPv6Mreq struct { 183 Multiaddr [16]byte /* in6_addr */ 184 Interface uint32 185} 186 187type Msghdr struct { 188 Name *byte 189 Namelen uint32 190 Iov *Iovec 191 Iovlen int32 192 Control *byte 193 Controllen uint32 194 Flags int32 195} 196 197type Cmsghdr struct { 198 Len uint32 199 Level int32 200 Type int32 201} 202 203type Inet6Pktinfo struct { 204 Addr [16]byte /* in6_addr */ 205 Ifindex uint32 206} 207 208type IPv6MTUInfo struct { 209 Addr RawSockaddrInet6 210 Mtu uint32 211} 212 213type ICMPv6Filter struct { 214 Filt [8]uint32 215} 216 217const ( 218 SizeofSockaddrInet4 = 0x10 219 SizeofSockaddrInet6 = 0x1c 220 SizeofSockaddrAny = 0x6c 221 SizeofSockaddrUnix = 0x6a 222 SizeofSockaddrDatalink = 0x14 223 SizeofLinger = 0x8 224 SizeofIPMreq = 0x8 225 SizeofIPv6Mreq = 0x14 226 SizeofMsghdr = 0x1c 227 SizeofCmsghdr = 0xc 228 SizeofInet6Pktinfo = 0x14 229 SizeofIPv6MTUInfo = 0x20 230 SizeofICMPv6Filter = 0x20 231) 232 233const ( 234 PTRACE_TRACEME = 0x0 235 PTRACE_CONT = 0x7 236 PTRACE_KILL = 0x8 237) 238 239type Kevent_t struct { 240 Ident uint32 241 Filter uint32 242 Flags uint32 243 Fflags uint32 244 Data int64 245 Udata int32 246 Pad_cgo_0 [4]byte 247} 248 249type FdSet struct { 250 Bits [8]uint32 251} 252 253const ( 254 SizeofIfMsghdr = 0x98 255 SizeofIfData = 0x88 256 SizeofIfaMsghdr = 0x18 257 SizeofIfAnnounceMsghdr = 0x18 258 SizeofRtMsghdr = 0x78 259 SizeofRtMetrics = 0x50 260) 261 262type IfMsghdr struct { 263 Msglen uint16 264 Version uint8 265 Type uint8 266 Addrs int32 267 Flags int32 268 Index uint16 269 Pad_cgo_0 [2]byte 270 Data IfData 271} 272 273type IfData struct { 274 Type uint8 275 Addrlen uint8 276 Hdrlen uint8 277 Pad_cgo_0 [1]byte 278 Link_state int32 279 Mtu uint64 280 Metric uint64 281 Baudrate uint64 282 Ipackets uint64 283 Ierrors uint64 284 Opackets uint64 285 Oerrors uint64 286 Collisions uint64 287 Ibytes uint64 288 Obytes uint64 289 Imcasts uint64 290 Omcasts uint64 291 Iqdrops uint64 292 Noproto uint64 293 Lastchange Timespec 294} 295 296type IfaMsghdr struct { 297 Msglen uint16 298 Version uint8 299 Type uint8 300 Addrs int32 301 Flags int32 302 Metric int32 303 Index uint16 304 Pad_cgo_0 [6]byte 305} 306 307type IfAnnounceMsghdr struct { 308 Msglen uint16 309 Version uint8 310 Type uint8 311 Index uint16 312 Name [16]int8 313 What uint16 314} 315 316type RtMsghdr struct { 317 Msglen uint16 318 Version uint8 319 Type uint8 320 Index uint16 321 Pad_cgo_0 [2]byte 322 Flags int32 323 Addrs int32 324 Pid int32 325 Seq int32 326 Errno int32 327 Use int32 328 Inits int32 329 Pad_cgo_1 [4]byte 330 Rmx RtMetrics 331} 332 333type RtMetrics struct { 334 Locks uint64 335 Mtu uint64 336 Hopcount uint64 337 Recvpipe uint64 338 Sendpipe uint64 339 Ssthresh uint64 340 Rtt uint64 341 Rttvar uint64 342 Expire int64 343 Pksent int64 344} 345 346type Mclpool [0]byte 347 348const ( 349 SizeofBpfVersion = 0x4 350 SizeofBpfStat = 0x80 351 SizeofBpfProgram = 0x8 352 SizeofBpfInsn = 0x8 353 SizeofBpfHdr = 0x14 354) 355 356type BpfVersion struct { 357 Major uint16 358 Minor uint16 359} 360 361type BpfStat struct { 362 Recv uint64 363 Drop uint64 364 Capt uint64 365 Padding [13]uint64 366} 367 368type BpfProgram struct { 369 Len uint32 370 Insns *BpfInsn 371} 372 373type BpfInsn struct { 374 Code uint16 375 Jt uint8 376 Jf uint8 377 K uint32 378} 379 380type BpfHdr struct { 381 Tstamp BpfTimeval 382 Caplen uint32 383 Datalen uint32 384 Hdrlen uint16 385 Pad_cgo_0 [2]byte 386} 387 388type BpfTimeval struct { 389 Sec int32 390 Usec int32 391} 392 393type Termios struct { 394 Iflag uint32 395 Oflag uint32 396 Cflag uint32 397 Lflag uint32 398 Cc [20]uint8 399 Ispeed int32 400 Ospeed int32 401} 402 403type Winsize struct { 404 Row uint16 405 Col uint16 406 Xpixel uint16 407 Ypixel uint16 408} 409 410type Ptmget struct { 411 Cfd int32 412 Sfd int32 413 Cn [1024]byte 414 Sn [1024]byte 415} 416 417const ( 418 AT_FDCWD = -0x64 419 AT_SYMLINK_NOFOLLOW = 0x200 420) 421 422type PollFd struct { 423 Fd int32 424 Events int16 425 Revents int16 426} 427 428const ( 429 POLLERR = 0x8 430 POLLHUP = 0x10 431 POLLIN = 0x1 432 POLLNVAL = 0x20 433 POLLOUT = 0x4 434 POLLPRI = 0x2 435 POLLRDBAND = 0x80 436 POLLRDNORM = 0x40 437 POLLWRBAND = 0x100 438 POLLWRNORM = 0x4 439) 440 441type Sysctlnode struct { 442 Flags uint32 443 Num int32 444 Name [32]int8 445 Ver uint32 446 X__rsvd uint32 447 Un [16]byte 448 X_sysctl_size [8]byte 449 X_sysctl_func [8]byte 450 X_sysctl_parent [8]byte 451 X_sysctl_desc [8]byte 452} 453 454type Utsname struct { 455 Sysname [256]byte 456 Nodename [256]byte 457 Release [256]byte 458 Version [256]byte 459 Machine [256]byte 460} 461 462const SizeofClockinfo = 0x14 463 464type Clockinfo struct { 465 Hz int32 466 Tick int32 467 Tickadj int32 468 Stathz int32 469 Profhz int32 470} 471