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