Naveen Sampath | 04696f7 | 2022-06-13 15:19:14 +0530 | [diff] [blame] | 1 | // cgo -godefs types_freebsd.go | go run mkpost.go |
| 2 | // Code generated by the command above; see README.md. DO NOT EDIT. |
| 3 | |
| 4 | //go:build amd64 && freebsd |
| 5 | // +build amd64,freebsd |
| 6 | |
| 7 | package unix |
| 8 | |
| 9 | const ( |
| 10 | SizeofPtr = 0x8 |
| 11 | SizeofShort = 0x2 |
| 12 | SizeofInt = 0x4 |
| 13 | SizeofLong = 0x8 |
| 14 | SizeofLongLong = 0x8 |
| 15 | ) |
| 16 | |
| 17 | type ( |
| 18 | _C_short int16 |
| 19 | _C_int int32 |
| 20 | _C_long int64 |
| 21 | _C_long_long int64 |
| 22 | ) |
| 23 | |
| 24 | type Timespec struct { |
| 25 | Sec int64 |
| 26 | Nsec int64 |
| 27 | } |
| 28 | |
| 29 | type Timeval struct { |
| 30 | Sec int64 |
| 31 | Usec int64 |
| 32 | } |
| 33 | |
| 34 | type Time_t int64 |
| 35 | |
| 36 | type Rusage struct { |
| 37 | Utime Timeval |
| 38 | Stime Timeval |
| 39 | Maxrss int64 |
| 40 | Ixrss int64 |
| 41 | Idrss int64 |
| 42 | Isrss int64 |
| 43 | Minflt int64 |
| 44 | Majflt int64 |
| 45 | Nswap int64 |
| 46 | Inblock int64 |
| 47 | Oublock int64 |
| 48 | Msgsnd int64 |
| 49 | Msgrcv int64 |
| 50 | Nsignals int64 |
| 51 | Nvcsw int64 |
| 52 | Nivcsw int64 |
| 53 | } |
| 54 | |
| 55 | type Rlimit struct { |
| 56 | Cur int64 |
| 57 | Max int64 |
| 58 | } |
| 59 | |
| 60 | type _Gid_t uint32 |
| 61 | |
| 62 | const ( |
| 63 | _statfsVersion = 0x20140518 |
| 64 | _dirblksiz = 0x400 |
| 65 | ) |
| 66 | |
| 67 | type Stat_t struct { |
| 68 | Dev uint64 |
| 69 | Ino uint64 |
| 70 | Nlink uint64 |
| 71 | Mode uint16 |
| 72 | _0 int16 |
| 73 | Uid uint32 |
| 74 | Gid uint32 |
| 75 | _1 int32 |
| 76 | Rdev uint64 |
| 77 | Atim Timespec |
| 78 | Mtim Timespec |
| 79 | Ctim Timespec |
| 80 | Btim Timespec |
| 81 | Size int64 |
| 82 | Blocks int64 |
| 83 | Blksize int32 |
| 84 | Flags uint32 |
| 85 | Gen uint64 |
| 86 | Spare [10]uint64 |
| 87 | } |
| 88 | |
| 89 | type stat_freebsd11_t struct { |
| 90 | Dev uint32 |
| 91 | Ino uint32 |
| 92 | Mode uint16 |
| 93 | Nlink uint16 |
| 94 | Uid uint32 |
| 95 | Gid uint32 |
| 96 | Rdev uint32 |
| 97 | Atim Timespec |
| 98 | Mtim Timespec |
| 99 | Ctim Timespec |
| 100 | Size int64 |
| 101 | Blocks int64 |
| 102 | Blksize int32 |
| 103 | Flags uint32 |
| 104 | Gen uint32 |
| 105 | Lspare int32 |
| 106 | Btim Timespec |
| 107 | } |
| 108 | |
| 109 | type Statfs_t struct { |
| 110 | Version uint32 |
| 111 | Type uint32 |
| 112 | Flags uint64 |
| 113 | Bsize uint64 |
| 114 | Iosize uint64 |
| 115 | Blocks uint64 |
| 116 | Bfree uint64 |
| 117 | Bavail int64 |
| 118 | Files uint64 |
| 119 | Ffree int64 |
| 120 | Syncwrites uint64 |
| 121 | Asyncwrites uint64 |
| 122 | Syncreads uint64 |
| 123 | Asyncreads uint64 |
| 124 | Spare [10]uint64 |
| 125 | Namemax uint32 |
| 126 | Owner uint32 |
| 127 | Fsid Fsid |
| 128 | Charspare [80]int8 |
| 129 | Fstypename [16]byte |
| 130 | Mntfromname [1024]byte |
| 131 | Mntonname [1024]byte |
| 132 | } |
| 133 | |
| 134 | type statfs_freebsd11_t struct { |
| 135 | Version uint32 |
| 136 | Type uint32 |
| 137 | Flags uint64 |
| 138 | Bsize uint64 |
| 139 | Iosize uint64 |
| 140 | Blocks uint64 |
| 141 | Bfree uint64 |
| 142 | Bavail int64 |
| 143 | Files uint64 |
| 144 | Ffree int64 |
| 145 | Syncwrites uint64 |
| 146 | Asyncwrites uint64 |
| 147 | Syncreads uint64 |
| 148 | Asyncreads uint64 |
| 149 | Spare [10]uint64 |
| 150 | Namemax uint32 |
| 151 | Owner uint32 |
| 152 | Fsid Fsid |
| 153 | Charspare [80]int8 |
| 154 | Fstypename [16]byte |
| 155 | Mntfromname [88]byte |
| 156 | Mntonname [88]byte |
| 157 | } |
| 158 | |
| 159 | type Flock_t struct { |
| 160 | Start int64 |
| 161 | Len int64 |
| 162 | Pid int32 |
| 163 | Type int16 |
| 164 | Whence int16 |
| 165 | Sysid int32 |
| 166 | _ [4]byte |
| 167 | } |
| 168 | |
| 169 | type Dirent struct { |
| 170 | Fileno uint64 |
| 171 | Off int64 |
| 172 | Reclen uint16 |
| 173 | Type uint8 |
| 174 | Pad0 uint8 |
| 175 | Namlen uint16 |
| 176 | Pad1 uint16 |
| 177 | Name [256]int8 |
| 178 | } |
| 179 | |
| 180 | type dirent_freebsd11 struct { |
| 181 | Fileno uint32 |
| 182 | Reclen uint16 |
| 183 | Type uint8 |
| 184 | Namlen uint8 |
| 185 | Name [256]int8 |
| 186 | } |
| 187 | |
| 188 | type Fsid struct { |
| 189 | Val [2]int32 |
| 190 | } |
| 191 | |
| 192 | const ( |
| 193 | PathMax = 0x400 |
| 194 | ) |
| 195 | |
| 196 | const ( |
| 197 | FADV_NORMAL = 0x0 |
| 198 | FADV_RANDOM = 0x1 |
| 199 | FADV_SEQUENTIAL = 0x2 |
| 200 | FADV_WILLNEED = 0x3 |
| 201 | FADV_DONTNEED = 0x4 |
| 202 | FADV_NOREUSE = 0x5 |
| 203 | ) |
| 204 | |
| 205 | type RawSockaddrInet4 struct { |
| 206 | Len uint8 |
| 207 | Family uint8 |
| 208 | Port uint16 |
| 209 | Addr [4]byte /* in_addr */ |
| 210 | Zero [8]int8 |
| 211 | } |
| 212 | |
| 213 | type RawSockaddrInet6 struct { |
| 214 | Len uint8 |
| 215 | Family uint8 |
| 216 | Port uint16 |
| 217 | Flowinfo uint32 |
| 218 | Addr [16]byte /* in6_addr */ |
| 219 | Scope_id uint32 |
| 220 | } |
| 221 | |
| 222 | type RawSockaddrUnix struct { |
| 223 | Len uint8 |
| 224 | Family uint8 |
| 225 | Path [104]int8 |
| 226 | } |
| 227 | |
| 228 | type RawSockaddrDatalink struct { |
| 229 | Len uint8 |
| 230 | Family uint8 |
| 231 | Index uint16 |
| 232 | Type uint8 |
| 233 | Nlen uint8 |
| 234 | Alen uint8 |
| 235 | Slen uint8 |
| 236 | Data [46]int8 |
| 237 | } |
| 238 | |
| 239 | type RawSockaddr struct { |
| 240 | Len uint8 |
| 241 | Family uint8 |
| 242 | Data [14]int8 |
| 243 | } |
| 244 | |
| 245 | type RawSockaddrAny struct { |
| 246 | Addr RawSockaddr |
| 247 | Pad [92]int8 |
| 248 | } |
| 249 | |
| 250 | type _Socklen uint32 |
| 251 | |
| 252 | type Xucred struct { |
| 253 | Version uint32 |
| 254 | Uid uint32 |
| 255 | Ngroups int16 |
| 256 | Groups [16]uint32 |
| 257 | _ *byte |
| 258 | } |
| 259 | |
| 260 | type Linger struct { |
| 261 | Onoff int32 |
| 262 | Linger int32 |
| 263 | } |
| 264 | |
| 265 | type Iovec struct { |
| 266 | Base *byte |
| 267 | Len uint64 |
| 268 | } |
| 269 | |
| 270 | type IPMreq struct { |
| 271 | Multiaddr [4]byte /* in_addr */ |
| 272 | Interface [4]byte /* in_addr */ |
| 273 | } |
| 274 | |
| 275 | type IPMreqn struct { |
| 276 | Multiaddr [4]byte /* in_addr */ |
| 277 | Address [4]byte /* in_addr */ |
| 278 | Ifindex int32 |
| 279 | } |
| 280 | |
| 281 | type IPv6Mreq struct { |
| 282 | Multiaddr [16]byte /* in6_addr */ |
| 283 | Interface uint32 |
| 284 | } |
| 285 | |
| 286 | type Msghdr struct { |
| 287 | Name *byte |
| 288 | Namelen uint32 |
| 289 | Iov *Iovec |
| 290 | Iovlen int32 |
| 291 | Control *byte |
| 292 | Controllen uint32 |
| 293 | Flags int32 |
| 294 | } |
| 295 | |
| 296 | type Cmsghdr struct { |
| 297 | Len uint32 |
| 298 | Level int32 |
| 299 | Type int32 |
| 300 | } |
| 301 | |
| 302 | type Inet6Pktinfo struct { |
| 303 | Addr [16]byte /* in6_addr */ |
| 304 | Ifindex uint32 |
| 305 | } |
| 306 | |
| 307 | type IPv6MTUInfo struct { |
| 308 | Addr RawSockaddrInet6 |
| 309 | Mtu uint32 |
| 310 | } |
| 311 | |
| 312 | type ICMPv6Filter struct { |
| 313 | Filt [8]uint32 |
| 314 | } |
| 315 | |
| 316 | const ( |
| 317 | SizeofSockaddrInet4 = 0x10 |
| 318 | SizeofSockaddrInet6 = 0x1c |
| 319 | SizeofSockaddrAny = 0x6c |
| 320 | SizeofSockaddrUnix = 0x6a |
| 321 | SizeofSockaddrDatalink = 0x36 |
| 322 | SizeofXucred = 0x58 |
| 323 | SizeofLinger = 0x8 |
| 324 | SizeofIovec = 0x10 |
| 325 | SizeofIPMreq = 0x8 |
| 326 | SizeofIPMreqn = 0xc |
| 327 | SizeofIPv6Mreq = 0x14 |
| 328 | SizeofMsghdr = 0x30 |
| 329 | SizeofCmsghdr = 0xc |
| 330 | SizeofInet6Pktinfo = 0x14 |
| 331 | SizeofIPv6MTUInfo = 0x20 |
| 332 | SizeofICMPv6Filter = 0x20 |
| 333 | ) |
| 334 | |
| 335 | const ( |
| 336 | PTRACE_ATTACH = 0xa |
| 337 | PTRACE_CONT = 0x7 |
| 338 | PTRACE_DETACH = 0xb |
| 339 | PTRACE_GETFPREGS = 0x23 |
| 340 | PTRACE_GETFSBASE = 0x47 |
| 341 | PTRACE_GETLWPLIST = 0xf |
| 342 | PTRACE_GETNUMLWPS = 0xe |
| 343 | PTRACE_GETREGS = 0x21 |
| 344 | PTRACE_GETXSTATE = 0x45 |
| 345 | PTRACE_IO = 0xc |
| 346 | PTRACE_KILL = 0x8 |
| 347 | PTRACE_LWPEVENTS = 0x18 |
| 348 | PTRACE_LWPINFO = 0xd |
| 349 | PTRACE_SETFPREGS = 0x24 |
| 350 | PTRACE_SETREGS = 0x22 |
| 351 | PTRACE_SINGLESTEP = 0x9 |
| 352 | PTRACE_TRACEME = 0x0 |
| 353 | ) |
| 354 | |
| 355 | const ( |
| 356 | PIOD_READ_D = 0x1 |
| 357 | PIOD_WRITE_D = 0x2 |
| 358 | PIOD_READ_I = 0x3 |
| 359 | PIOD_WRITE_I = 0x4 |
| 360 | ) |
| 361 | |
| 362 | const ( |
| 363 | PL_FLAG_BORN = 0x100 |
| 364 | PL_FLAG_EXITED = 0x200 |
| 365 | PL_FLAG_SI = 0x20 |
| 366 | ) |
| 367 | |
| 368 | const ( |
| 369 | TRAP_BRKPT = 0x1 |
| 370 | TRAP_TRACE = 0x2 |
| 371 | ) |
| 372 | |
| 373 | type PtraceLwpInfoStruct struct { |
| 374 | Lwpid int32 |
| 375 | Event int32 |
| 376 | Flags int32 |
| 377 | Sigmask Sigset_t |
| 378 | Siglist Sigset_t |
| 379 | Siginfo __Siginfo |
| 380 | Tdname [20]int8 |
| 381 | Child_pid int32 |
| 382 | Syscall_code uint32 |
| 383 | Syscall_narg uint32 |
| 384 | } |
| 385 | |
| 386 | type __Siginfo struct { |
| 387 | Signo int32 |
| 388 | Errno int32 |
| 389 | Code int32 |
| 390 | Pid int32 |
| 391 | Uid uint32 |
| 392 | Status int32 |
| 393 | Addr *byte |
| 394 | Value [8]byte |
| 395 | _ [40]byte |
| 396 | } |
| 397 | |
| 398 | type Sigset_t struct { |
| 399 | Val [4]uint32 |
| 400 | } |
| 401 | |
| 402 | type Reg struct { |
| 403 | R15 int64 |
| 404 | R14 int64 |
| 405 | R13 int64 |
| 406 | R12 int64 |
| 407 | R11 int64 |
| 408 | R10 int64 |
| 409 | R9 int64 |
| 410 | R8 int64 |
| 411 | Rdi int64 |
| 412 | Rsi int64 |
| 413 | Rbp int64 |
| 414 | Rbx int64 |
| 415 | Rdx int64 |
| 416 | Rcx int64 |
| 417 | Rax int64 |
| 418 | Trapno uint32 |
| 419 | Fs uint16 |
| 420 | Gs uint16 |
| 421 | Err uint32 |
| 422 | Es uint16 |
| 423 | Ds uint16 |
| 424 | Rip int64 |
| 425 | Cs int64 |
| 426 | Rflags int64 |
| 427 | Rsp int64 |
| 428 | Ss int64 |
| 429 | } |
| 430 | |
| 431 | type FpReg struct { |
| 432 | Env [4]uint64 |
| 433 | Acc [8][16]uint8 |
| 434 | Xacc [16][16]uint8 |
| 435 | Spare [12]uint64 |
| 436 | } |
| 437 | |
| 438 | type PtraceIoDesc struct { |
| 439 | Op int32 |
| 440 | Offs *byte |
| 441 | Addr *byte |
| 442 | Len uint64 |
| 443 | } |
| 444 | |
| 445 | type Kevent_t struct { |
| 446 | Ident uint64 |
| 447 | Filter int16 |
| 448 | Flags uint16 |
| 449 | Fflags uint32 |
| 450 | Data int64 |
| 451 | Udata *byte |
| 452 | } |
| 453 | |
| 454 | type FdSet struct { |
| 455 | Bits [16]uint64 |
| 456 | } |
| 457 | |
| 458 | const ( |
| 459 | sizeofIfMsghdr = 0xa8 |
| 460 | SizeofIfMsghdr = 0xa8 |
| 461 | sizeofIfData = 0x98 |
| 462 | SizeofIfData = 0x98 |
| 463 | SizeofIfaMsghdr = 0x14 |
| 464 | SizeofIfmaMsghdr = 0x10 |
| 465 | SizeofIfAnnounceMsghdr = 0x18 |
| 466 | SizeofRtMsghdr = 0x98 |
| 467 | SizeofRtMetrics = 0x70 |
| 468 | ) |
| 469 | |
| 470 | type ifMsghdr struct { |
| 471 | Msglen uint16 |
| 472 | Version uint8 |
| 473 | Type uint8 |
| 474 | Addrs int32 |
| 475 | Flags int32 |
| 476 | Index uint16 |
| 477 | _ uint16 |
| 478 | Data ifData |
| 479 | } |
| 480 | |
| 481 | type IfMsghdr struct { |
| 482 | Msglen uint16 |
| 483 | Version uint8 |
| 484 | Type uint8 |
| 485 | Addrs int32 |
| 486 | Flags int32 |
| 487 | Index uint16 |
| 488 | Data IfData |
| 489 | } |
| 490 | |
| 491 | type ifData struct { |
| 492 | Type uint8 |
| 493 | Physical uint8 |
| 494 | Addrlen uint8 |
| 495 | Hdrlen uint8 |
| 496 | Link_state uint8 |
| 497 | Vhid uint8 |
| 498 | Datalen uint16 |
| 499 | Mtu uint32 |
| 500 | Metric uint32 |
| 501 | Baudrate uint64 |
| 502 | Ipackets uint64 |
| 503 | Ierrors uint64 |
| 504 | Opackets uint64 |
| 505 | Oerrors uint64 |
| 506 | Collisions uint64 |
| 507 | Ibytes uint64 |
| 508 | Obytes uint64 |
| 509 | Imcasts uint64 |
| 510 | Omcasts uint64 |
| 511 | Iqdrops uint64 |
| 512 | Oqdrops uint64 |
| 513 | Noproto uint64 |
| 514 | Hwassist uint64 |
| 515 | _ [8]byte |
| 516 | _ [16]byte |
| 517 | } |
| 518 | |
| 519 | type IfData struct { |
| 520 | Type uint8 |
| 521 | Physical uint8 |
| 522 | Addrlen uint8 |
| 523 | Hdrlen uint8 |
| 524 | Link_state uint8 |
| 525 | Spare_char1 uint8 |
| 526 | Spare_char2 uint8 |
| 527 | Datalen uint8 |
| 528 | Mtu uint64 |
| 529 | Metric uint64 |
| 530 | Baudrate uint64 |
| 531 | Ipackets uint64 |
| 532 | Ierrors uint64 |
| 533 | Opackets uint64 |
| 534 | Oerrors uint64 |
| 535 | Collisions uint64 |
| 536 | Ibytes uint64 |
| 537 | Obytes uint64 |
| 538 | Imcasts uint64 |
| 539 | Omcasts uint64 |
| 540 | Iqdrops uint64 |
| 541 | Noproto uint64 |
| 542 | Hwassist uint64 |
| 543 | Epoch int64 |
| 544 | Lastchange Timeval |
| 545 | } |
| 546 | |
| 547 | type IfaMsghdr struct { |
| 548 | Msglen uint16 |
| 549 | Version uint8 |
| 550 | Type uint8 |
| 551 | Addrs int32 |
| 552 | Flags int32 |
| 553 | Index uint16 |
| 554 | _ uint16 |
| 555 | Metric int32 |
| 556 | } |
| 557 | |
| 558 | type IfmaMsghdr struct { |
| 559 | Msglen uint16 |
| 560 | Version uint8 |
| 561 | Type uint8 |
| 562 | Addrs int32 |
| 563 | Flags int32 |
| 564 | Index uint16 |
| 565 | _ uint16 |
| 566 | } |
| 567 | |
| 568 | type IfAnnounceMsghdr struct { |
| 569 | Msglen uint16 |
| 570 | Version uint8 |
| 571 | Type uint8 |
| 572 | Index uint16 |
| 573 | Name [16]int8 |
| 574 | What uint16 |
| 575 | } |
| 576 | |
| 577 | type RtMsghdr struct { |
| 578 | Msglen uint16 |
| 579 | Version uint8 |
| 580 | Type uint8 |
| 581 | Index uint16 |
| 582 | _ uint16 |
| 583 | Flags int32 |
| 584 | Addrs int32 |
| 585 | Pid int32 |
| 586 | Seq int32 |
| 587 | Errno int32 |
| 588 | Fmask int32 |
| 589 | Inits uint64 |
| 590 | Rmx RtMetrics |
| 591 | } |
| 592 | |
| 593 | type RtMetrics struct { |
| 594 | Locks uint64 |
| 595 | Mtu uint64 |
| 596 | Hopcount uint64 |
| 597 | Expire uint64 |
| 598 | Recvpipe uint64 |
| 599 | Sendpipe uint64 |
| 600 | Ssthresh uint64 |
| 601 | Rtt uint64 |
| 602 | Rttvar uint64 |
| 603 | Pksent uint64 |
| 604 | Weight uint64 |
| 605 | Filler [3]uint64 |
| 606 | } |
| 607 | |
| 608 | const ( |
| 609 | SizeofBpfVersion = 0x4 |
| 610 | SizeofBpfStat = 0x8 |
| 611 | SizeofBpfZbuf = 0x18 |
| 612 | SizeofBpfProgram = 0x10 |
| 613 | SizeofBpfInsn = 0x8 |
| 614 | SizeofBpfHdr = 0x20 |
| 615 | SizeofBpfZbufHeader = 0x20 |
| 616 | ) |
| 617 | |
| 618 | type BpfVersion struct { |
| 619 | Major uint16 |
| 620 | Minor uint16 |
| 621 | } |
| 622 | |
| 623 | type BpfStat struct { |
| 624 | Recv uint32 |
| 625 | Drop uint32 |
| 626 | } |
| 627 | |
| 628 | type BpfZbuf struct { |
| 629 | Bufa *byte |
| 630 | Bufb *byte |
| 631 | Buflen uint64 |
| 632 | } |
| 633 | |
| 634 | type BpfProgram struct { |
| 635 | Len uint32 |
| 636 | Insns *BpfInsn |
| 637 | } |
| 638 | |
| 639 | type BpfInsn struct { |
| 640 | Code uint16 |
| 641 | Jt uint8 |
| 642 | Jf uint8 |
| 643 | K uint32 |
| 644 | } |
| 645 | |
| 646 | type BpfHdr struct { |
| 647 | Tstamp Timeval |
| 648 | Caplen uint32 |
| 649 | Datalen uint32 |
| 650 | Hdrlen uint16 |
| 651 | _ [6]byte |
| 652 | } |
| 653 | |
| 654 | type BpfZbufHeader struct { |
| 655 | Kernel_gen uint32 |
| 656 | Kernel_len uint32 |
| 657 | User_gen uint32 |
| 658 | _ [5]uint32 |
| 659 | } |
| 660 | |
| 661 | type Termios struct { |
| 662 | Iflag uint32 |
| 663 | Oflag uint32 |
| 664 | Cflag uint32 |
| 665 | Lflag uint32 |
| 666 | Cc [20]uint8 |
| 667 | Ispeed uint32 |
| 668 | Ospeed uint32 |
| 669 | } |
| 670 | |
| 671 | type Winsize struct { |
| 672 | Row uint16 |
| 673 | Col uint16 |
| 674 | Xpixel uint16 |
| 675 | Ypixel uint16 |
| 676 | } |
| 677 | |
| 678 | const ( |
| 679 | AT_FDCWD = -0x64 |
| 680 | AT_EACCESS = 0x100 |
| 681 | AT_SYMLINK_NOFOLLOW = 0x200 |
| 682 | AT_SYMLINK_FOLLOW = 0x400 |
| 683 | AT_REMOVEDIR = 0x800 |
| 684 | ) |
| 685 | |
| 686 | type PollFd struct { |
| 687 | Fd int32 |
| 688 | Events int16 |
| 689 | Revents int16 |
| 690 | } |
| 691 | |
| 692 | const ( |
| 693 | POLLERR = 0x8 |
| 694 | POLLHUP = 0x10 |
| 695 | POLLIN = 0x1 |
| 696 | POLLINIGNEOF = 0x2000 |
| 697 | POLLNVAL = 0x20 |
| 698 | POLLOUT = 0x4 |
| 699 | POLLPRI = 0x2 |
| 700 | POLLRDBAND = 0x80 |
| 701 | POLLRDNORM = 0x40 |
| 702 | POLLWRBAND = 0x100 |
| 703 | POLLWRNORM = 0x4 |
| 704 | ) |
| 705 | |
| 706 | type CapRights struct { |
| 707 | Rights [2]uint64 |
| 708 | } |
| 709 | |
| 710 | type Utsname struct { |
| 711 | Sysname [256]byte |
| 712 | Nodename [256]byte |
| 713 | Release [256]byte |
| 714 | Version [256]byte |
| 715 | Machine [256]byte |
| 716 | } |
| 717 | |
| 718 | const SizeofClockinfo = 0x14 |
| 719 | |
| 720 | type Clockinfo struct { |
| 721 | Hz int32 |
| 722 | Tick int32 |
| 723 | Spare int32 |
| 724 | Stathz int32 |
| 725 | Profhz int32 |
| 726 | } |