github.com/nibnait/go-learn@v0.0.0-20220227013611-dfa47ea6d2da/src/pkg/mod/golang.org/x/sys@v0.0.0-20210630005230-0f9fa26af87c/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]int8 102 F_mntonname [90]int8 103 F_mntfromname [90]int8 104 F_mntfromspec [90]int8 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 type Mclpool struct{} 379 380 const ( 381 SizeofBpfVersion = 0x4 382 SizeofBpfStat = 0x8 383 SizeofBpfProgram = 0x8 384 SizeofBpfInsn = 0x8 385 SizeofBpfHdr = 0x14 386 ) 387 388 type BpfVersion struct { 389 Major uint16 390 Minor uint16 391 } 392 393 type BpfStat struct { 394 Recv uint32 395 Drop uint32 396 } 397 398 type BpfProgram struct { 399 Len uint32 400 Insns *BpfInsn 401 } 402 403 type BpfInsn struct { 404 Code uint16 405 Jt uint8 406 Jf uint8 407 K uint32 408 } 409 410 type BpfHdr struct { 411 Tstamp BpfTimeval 412 Caplen uint32 413 Datalen uint32 414 Hdrlen uint16 415 _ [2]byte 416 } 417 418 type BpfTimeval struct { 419 Sec uint32 420 Usec uint32 421 } 422 423 type Termios struct { 424 Iflag uint32 425 Oflag uint32 426 Cflag uint32 427 Lflag uint32 428 Cc [20]uint8 429 Ispeed int32 430 Ospeed int32 431 } 432 433 type Winsize struct { 434 Row uint16 435 Col uint16 436 Xpixel uint16 437 Ypixel uint16 438 } 439 440 const ( 441 AT_FDCWD = -0x64 442 AT_EACCESS = 0x1 443 AT_SYMLINK_NOFOLLOW = 0x2 444 AT_SYMLINK_FOLLOW = 0x4 445 AT_REMOVEDIR = 0x8 446 ) 447 448 type PollFd struct { 449 Fd int32 450 Events int16 451 Revents int16 452 } 453 454 const ( 455 POLLERR = 0x8 456 POLLHUP = 0x10 457 POLLIN = 0x1 458 POLLNVAL = 0x20 459 POLLOUT = 0x4 460 POLLPRI = 0x2 461 POLLRDBAND = 0x80 462 POLLRDNORM = 0x40 463 POLLWRBAND = 0x100 464 POLLWRNORM = 0x4 465 ) 466 467 type Sigset_t uint32 468 469 type Utsname struct { 470 Sysname [256]byte 471 Nodename [256]byte 472 Release [256]byte 473 Version [256]byte 474 Machine [256]byte 475 } 476 477 const SizeofUvmexp = 0x158 478 479 type Uvmexp struct { 480 Pagesize int32 481 Pagemask int32 482 Pageshift int32 483 Npages int32 484 Free int32 485 Active int32 486 Inactive int32 487 Paging int32 488 Wired int32 489 Zeropages int32 490 Reserve_pagedaemon int32 491 Reserve_kernel int32 492 Unused01 int32 493 Vnodepages int32 494 Vtextpages int32 495 Freemin int32 496 Freetarg int32 497 Inactarg int32 498 Wiredmax int32 499 Anonmin int32 500 Vtextmin int32 501 Vnodemin int32 502 Anonminpct int32 503 Vtextminpct int32 504 Vnodeminpct int32 505 Nswapdev int32 506 Swpages int32 507 Swpginuse int32 508 Swpgonly int32 509 Nswget int32 510 Nanon int32 511 Unused05 int32 512 Unused06 int32 513 Faults int32 514 Traps int32 515 Intrs int32 516 Swtch int32 517 Softs int32 518 Syscalls int32 519 Pageins int32 520 Unused07 int32 521 Unused08 int32 522 Pgswapin int32 523 Pgswapout int32 524 Forks int32 525 Forks_ppwait int32 526 Forks_sharevm int32 527 Pga_zerohit int32 528 Pga_zeromiss int32 529 Unused09 int32 530 Fltnoram int32 531 Fltnoanon int32 532 Fltnoamap int32 533 Fltpgwait int32 534 Fltpgrele int32 535 Fltrelck int32 536 Fltrelckok int32 537 Fltanget int32 538 Fltanretry int32 539 Fltamcopy int32 540 Fltnamap int32 541 Fltnomap int32 542 Fltlget int32 543 Fltget int32 544 Flt_anon int32 545 Flt_acow int32 546 Flt_obj int32 547 Flt_prcopy int32 548 Flt_przero int32 549 Pdwoke int32 550 Pdrevs int32 551 Pdswout int32 552 Pdfreed int32 553 Pdscans int32 554 Pdanscan int32 555 Pdobscan int32 556 Pdreact int32 557 Pdbusy int32 558 Pdpageouts int32 559 Pdpending int32 560 Pddeact int32 561 Unused11 int32 562 Unused12 int32 563 Unused13 int32 564 Fpswtch int32 565 Kmapent int32 566 } 567 568 const SizeofClockinfo = 0x14 569 570 type Clockinfo struct { 571 Hz int32 572 Tick int32 573 Tickadj int32 574 Stathz int32 575 Profhz int32 576 }