github.com/fletavendor/sys@v0.0.0-20181107165924-66b7b1311ac8/unix/ztypes_openbsd_arm.go (about) 1 // cgo -godefs types_openbsd.go | go run mkpost.go 2 // Code generated by the command above; see README.md. DO NOT EDIT. 3 4 // +build arm,openbsd 5 6 package unix 7 8 const ( 9 SizeofPtr = 0x4 10 SizeofShort = 0x2 11 SizeofInt = 0x4 12 SizeofLong = 0x4 13 SizeofLongLong = 0x8 14 ) 15 16 type ( 17 _C_short int16 18 _C_int int32 19 _C_long int32 20 _C_long_long int64 21 ) 22 23 type Timespec struct { 24 Sec int64 25 Nsec int32 26 } 27 28 type Timeval struct { 29 Sec int64 30 Usec int32 31 } 32 33 type Rusage struct { 34 Utime Timeval 35 Stime Timeval 36 Maxrss int32 37 Ixrss int32 38 Idrss int32 39 Isrss int32 40 Minflt int32 41 Majflt int32 42 Nswap int32 43 Inblock int32 44 Oublock int32 45 Msgsnd int32 46 Msgrcv int32 47 Nsignals int32 48 Nvcsw int32 49 Nivcsw int32 50 } 51 52 type Rlimit struct { 53 Cur uint64 54 Max uint64 55 } 56 57 type _Gid_t uint32 58 59 type Stat_t struct { 60 Mode uint32 61 Dev int32 62 Ino uint64 63 Nlink uint32 64 Uid uint32 65 Gid uint32 66 Rdev int32 67 Atim Timespec 68 Mtim Timespec 69 Ctim Timespec 70 Size int64 71 Blocks int64 72 Blksize int32 73 Flags uint32 74 Gen uint32 75 X__st_birthtim Timespec 76 } 77 78 type Statfs_t struct { 79 F_flags uint32 80 F_bsize uint32 81 F_iosize uint32 82 F_blocks uint64 83 F_bfree uint64 84 F_bavail int64 85 F_files uint64 86 F_ffree uint64 87 F_favail int64 88 F_syncwrites uint64 89 F_syncreads uint64 90 F_asyncwrites uint64 91 F_asyncreads uint64 92 F_fsid Fsid 93 F_namemax uint32 94 F_owner uint32 95 F_ctime uint64 96 F_fstypename [16]uint8 97 F_mntonname [90]uint8 98 F_mntfromname [90]uint8 99 F_mntfromspec [90]uint8 100 Pad_cgo_0 [2]byte 101 Mount_info [160]byte 102 } 103 104 type Flock_t struct { 105 Start int64 106 Len int64 107 Pid int32 108 Type int16 109 Whence int16 110 } 111 112 type Dirent struct { 113 Fileno uint64 114 Off int64 115 Reclen uint16 116 Type uint8 117 Namlen uint8 118 X__d_padding [4]uint8 119 Name [256]uint8 120 } 121 122 type Fsid struct { 123 Val [2]int32 124 } 125 126 const ( 127 PathMax = 0x400 128 ) 129 130 type RawSockaddrInet4 struct { 131 Len uint8 132 Family uint8 133 Port uint16 134 Addr [4]byte /* in_addr */ 135 Zero [8]int8 136 } 137 138 type RawSockaddrInet6 struct { 139 Len uint8 140 Family uint8 141 Port uint16 142 Flowinfo uint32 143 Addr [16]byte /* in6_addr */ 144 Scope_id uint32 145 } 146 147 type RawSockaddrUnix struct { 148 Len uint8 149 Family uint8 150 Path [104]int8 151 } 152 153 type RawSockaddrDatalink struct { 154 Len uint8 155 Family uint8 156 Index uint16 157 Type uint8 158 Nlen uint8 159 Alen uint8 160 Slen uint8 161 Data [24]int8 162 } 163 164 type RawSockaddr struct { 165 Len uint8 166 Family uint8 167 Data [14]int8 168 } 169 170 type RawSockaddrAny struct { 171 Addr RawSockaddr 172 Pad [92]int8 173 } 174 175 type _Socklen uint32 176 177 type Linger struct { 178 Onoff int32 179 Linger int32 180 } 181 182 type Iovec struct { 183 Base *byte 184 Len uint32 185 } 186 187 type IPMreq struct { 188 Multiaddr [4]byte /* in_addr */ 189 Interface [4]byte /* in_addr */ 190 } 191 192 type IPv6Mreq struct { 193 Multiaddr [16]byte /* in6_addr */ 194 Interface uint32 195 } 196 197 type Msghdr struct { 198 Name *byte 199 Namelen uint32 200 Iov *Iovec 201 Iovlen uint32 202 Control *byte 203 Controllen uint32 204 Flags int32 205 } 206 207 type Cmsghdr struct { 208 Len uint32 209 Level int32 210 Type int32 211 } 212 213 type Inet6Pktinfo struct { 214 Addr [16]byte /* in6_addr */ 215 Ifindex uint32 216 } 217 218 type IPv6MTUInfo struct { 219 Addr RawSockaddrInet6 220 Mtu uint32 221 } 222 223 type ICMPv6Filter struct { 224 Filt [8]uint32 225 } 226 227 const ( 228 SizeofSockaddrInet4 = 0x10 229 SizeofSockaddrInet6 = 0x1c 230 SizeofSockaddrAny = 0x6c 231 SizeofSockaddrUnix = 0x6a 232 SizeofSockaddrDatalink = 0x20 233 SizeofLinger = 0x8 234 SizeofIPMreq = 0x8 235 SizeofIPv6Mreq = 0x14 236 SizeofMsghdr = 0x1c 237 SizeofCmsghdr = 0xc 238 SizeofInet6Pktinfo = 0x14 239 SizeofIPv6MTUInfo = 0x20 240 SizeofICMPv6Filter = 0x20 241 ) 242 243 const ( 244 PTRACE_TRACEME = 0x0 245 PTRACE_CONT = 0x7 246 PTRACE_KILL = 0x8 247 ) 248 249 type Kevent_t struct { 250 Ident uint32 251 Filter int16 252 Flags uint16 253 Fflags uint32 254 Data int64 255 Udata *byte 256 } 257 258 type FdSet struct { 259 Bits [32]uint32 260 } 261 262 const ( 263 SizeofIfMsghdr = 0x98 264 SizeofIfData = 0x80 265 SizeofIfaMsghdr = 0x18 266 SizeofIfAnnounceMsghdr = 0x1a 267 SizeofRtMsghdr = 0x60 268 SizeofRtMetrics = 0x38 269 ) 270 271 type IfMsghdr struct { 272 Msglen uint16 273 Version uint8 274 Type uint8 275 Hdrlen uint16 276 Index uint16 277 Tableid uint16 278 Pad1 uint8 279 Pad2 uint8 280 Addrs int32 281 Flags int32 282 Xflags int32 283 Data IfData 284 } 285 286 type IfData struct { 287 Type uint8 288 Addrlen uint8 289 Hdrlen uint8 290 Link_state uint8 291 Mtu uint32 292 Metric uint32 293 Pad uint32 294 Baudrate uint64 295 Ipackets uint64 296 Ierrors uint64 297 Opackets uint64 298 Oerrors uint64 299 Collisions uint64 300 Ibytes uint64 301 Obytes uint64 302 Imcasts uint64 303 Omcasts uint64 304 Iqdrops uint64 305 Noproto uint64 306 Capabilities uint32 307 Lastchange Timeval 308 } 309 310 type IfaMsghdr struct { 311 Msglen uint16 312 Version uint8 313 Type uint8 314 Hdrlen uint16 315 Index uint16 316 Tableid uint16 317 Pad1 uint8 318 Pad2 uint8 319 Addrs int32 320 Flags int32 321 Metric int32 322 } 323 324 type IfAnnounceMsghdr struct { 325 Msglen uint16 326 Version uint8 327 Type uint8 328 Hdrlen uint16 329 Index uint16 330 What uint16 331 Name [16]uint8 332 } 333 334 type RtMsghdr struct { 335 Msglen uint16 336 Version uint8 337 Type uint8 338 Hdrlen uint16 339 Index uint16 340 Tableid uint16 341 Priority uint8 342 Mpls uint8 343 Addrs int32 344 Flags int32 345 Fmask int32 346 Pid int32 347 Seq int32 348 Errno int32 349 Inits uint32 350 Rmx RtMetrics 351 } 352 353 type RtMetrics struct { 354 Pksent uint64 355 Expire int64 356 Locks uint32 357 Mtu uint32 358 Refcnt uint32 359 Hopcount uint32 360 Recvpipe uint32 361 Sendpipe uint32 362 Ssthresh uint32 363 Rtt uint32 364 Rttvar uint32 365 Pad uint32 366 } 367 368 type Mclpool struct{} 369 370 const ( 371 SizeofBpfVersion = 0x4 372 SizeofBpfStat = 0x8 373 SizeofBpfProgram = 0x8 374 SizeofBpfInsn = 0x8 375 SizeofBpfHdr = 0x14 376 ) 377 378 type BpfVersion struct { 379 Major uint16 380 Minor uint16 381 } 382 383 type BpfStat struct { 384 Recv uint32 385 Drop uint32 386 } 387 388 type BpfProgram struct { 389 Len uint32 390 Insns *BpfInsn 391 } 392 393 type BpfInsn struct { 394 Code uint16 395 Jt uint8 396 Jf uint8 397 K uint32 398 } 399 400 type BpfHdr struct { 401 Tstamp BpfTimeval 402 Caplen uint32 403 Datalen uint32 404 Hdrlen uint16 405 Pad_cgo_0 [2]byte 406 } 407 408 type BpfTimeval struct { 409 Sec uint32 410 Usec uint32 411 } 412 413 type Termios struct { 414 Iflag uint32 415 Oflag uint32 416 Cflag uint32 417 Lflag uint32 418 Cc [20]uint8 419 Ispeed int32 420 Ospeed int32 421 } 422 423 type Winsize struct { 424 Row uint16 425 Col uint16 426 Xpixel uint16 427 Ypixel uint16 428 } 429 430 const ( 431 AT_FDCWD = -0x64 432 AT_SYMLINK_NOFOLLOW = 0x2 433 ) 434 435 type PollFd struct { 436 Fd int32 437 Events int16 438 Revents int16 439 } 440 441 const ( 442 POLLERR = 0x8 443 POLLHUP = 0x10 444 POLLIN = 0x1 445 POLLNVAL = 0x20 446 POLLOUT = 0x4 447 POLLPRI = 0x2 448 POLLRDBAND = 0x80 449 POLLRDNORM = 0x40 450 POLLWRBAND = 0x100 451 POLLWRNORM = 0x4 452 ) 453 454 type Sigset_t uint32 455 456 type Utsname struct { 457 Sysname [256]byte 458 Nodename [256]byte 459 Release [256]byte 460 Version [256]byte 461 Machine [256]byte 462 } 463 464 const SizeofUvmexp = 0x158 465 466 type Uvmexp struct { 467 Pagesize int32 468 Pagemask int32 469 Pageshift int32 470 Npages int32 471 Free int32 472 Active int32 473 Inactive int32 474 Paging int32 475 Wired int32 476 Zeropages int32 477 Reserve_pagedaemon int32 478 Reserve_kernel int32 479 Anonpages int32 480 Vnodepages int32 481 Vtextpages int32 482 Freemin int32 483 Freetarg int32 484 Inactarg int32 485 Wiredmax int32 486 Anonmin int32 487 Vtextmin int32 488 Vnodemin int32 489 Anonminpct int32 490 Vtextminpct int32 491 Vnodeminpct int32 492 Nswapdev int32 493 Swpages int32 494 Swpginuse int32 495 Swpgonly int32 496 Nswget int32 497 Nanon int32 498 Nanonneeded int32 499 Nfreeanon int32 500 Faults int32 501 Traps int32 502 Intrs int32 503 Swtch int32 504 Softs int32 505 Syscalls int32 506 Pageins int32 507 Obsolete_swapins int32 508 Obsolete_swapouts int32 509 Pgswapin int32 510 Pgswapout int32 511 Forks int32 512 Forks_ppwait int32 513 Forks_sharevm int32 514 Pga_zerohit int32 515 Pga_zeromiss int32 516 Zeroaborts int32 517 Fltnoram int32 518 Fltnoanon int32 519 Fltnoamap int32 520 Fltpgwait int32 521 Fltpgrele int32 522 Fltrelck int32 523 Fltrelckok int32 524 Fltanget int32 525 Fltanretry int32 526 Fltamcopy int32 527 Fltnamap int32 528 Fltnomap int32 529 Fltlget int32 530 Fltget int32 531 Flt_anon int32 532 Flt_acow int32 533 Flt_obj int32 534 Flt_prcopy int32 535 Flt_przero int32 536 Pdwoke int32 537 Pdrevs int32 538 Pdswout int32 539 Pdfreed int32 540 Pdscans int32 541 Pdanscan int32 542 Pdobscan int32 543 Pdreact int32 544 Pdbusy int32 545 Pdpageouts int32 546 Pdpending int32 547 Pddeact int32 548 Pdreanon int32 549 Pdrevnode int32 550 Pdrevtext int32 551 Fpswtch int32 552 Kmapent int32 553 }