David K. Bainbridge | 215e024 | 2017-09-05 23:18:24 -0700 | [diff] [blame] | 1 | // cgo -godefs -- -Wall -Werror -static -I/tmp/include -m64 linux/types.go | go run mkpost.go |
| 2 | // Code generated by the command above; see README.md. DO NOT EDIT. |
| 3 | |
| 4 | // +build amd64,linux |
| 5 | |
| 6 | package unix |
| 7 | |
| 8 | const ( |
| 9 | sizeofPtr = 0x8 |
| 10 | sizeofShort = 0x2 |
| 11 | sizeofInt = 0x4 |
| 12 | sizeofLong = 0x8 |
| 13 | sizeofLongLong = 0x8 |
| 14 | PathMax = 0x1000 |
| 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 Timex struct { |
| 35 | Modes uint32 |
| 36 | Pad_cgo_0 [4]byte |
| 37 | Offset int64 |
| 38 | Freq int64 |
| 39 | Maxerror int64 |
| 40 | Esterror int64 |
| 41 | Status int32 |
| 42 | Pad_cgo_1 [4]byte |
| 43 | Constant int64 |
| 44 | Precision int64 |
| 45 | Tolerance int64 |
| 46 | Time Timeval |
| 47 | Tick int64 |
| 48 | Ppsfreq int64 |
| 49 | Jitter int64 |
| 50 | Shift int32 |
| 51 | Pad_cgo_2 [4]byte |
| 52 | Stabil int64 |
| 53 | Jitcnt int64 |
| 54 | Calcnt int64 |
| 55 | Errcnt int64 |
| 56 | Stbcnt int64 |
| 57 | Tai int32 |
| 58 | Pad_cgo_3 [44]byte |
| 59 | } |
| 60 | |
| 61 | type Time_t int64 |
| 62 | |
| 63 | type Tms struct { |
| 64 | Utime int64 |
| 65 | Stime int64 |
| 66 | Cutime int64 |
| 67 | Cstime int64 |
| 68 | } |
| 69 | |
| 70 | type Utimbuf struct { |
| 71 | Actime int64 |
| 72 | Modtime int64 |
| 73 | } |
| 74 | |
| 75 | type Rusage struct { |
| 76 | Utime Timeval |
| 77 | Stime Timeval |
| 78 | Maxrss int64 |
| 79 | Ixrss int64 |
| 80 | Idrss int64 |
| 81 | Isrss int64 |
| 82 | Minflt int64 |
| 83 | Majflt int64 |
| 84 | Nswap int64 |
| 85 | Inblock int64 |
| 86 | Oublock int64 |
| 87 | Msgsnd int64 |
| 88 | Msgrcv int64 |
| 89 | Nsignals int64 |
| 90 | Nvcsw int64 |
| 91 | Nivcsw int64 |
| 92 | } |
| 93 | |
| 94 | type Rlimit struct { |
| 95 | Cur uint64 |
| 96 | Max uint64 |
| 97 | } |
| 98 | |
| 99 | type _Gid_t uint32 |
| 100 | |
| 101 | type Stat_t struct { |
| 102 | Dev uint64 |
| 103 | Ino uint64 |
| 104 | Nlink uint64 |
| 105 | Mode uint32 |
| 106 | Uid uint32 |
| 107 | Gid uint32 |
| 108 | X__pad0 int32 |
| 109 | Rdev uint64 |
| 110 | Size int64 |
| 111 | Blksize int64 |
| 112 | Blocks int64 |
| 113 | Atim Timespec |
| 114 | Mtim Timespec |
| 115 | Ctim Timespec |
| 116 | _ [3]int64 |
| 117 | } |
| 118 | |
| 119 | type Statfs_t struct { |
| 120 | Type int64 |
| 121 | Bsize int64 |
| 122 | Blocks uint64 |
| 123 | Bfree uint64 |
| 124 | Bavail uint64 |
| 125 | Files uint64 |
| 126 | Ffree uint64 |
| 127 | Fsid Fsid |
| 128 | Namelen int64 |
| 129 | Frsize int64 |
| 130 | Flags int64 |
| 131 | Spare [4]int64 |
| 132 | } |
| 133 | |
| 134 | type Dirent struct { |
| 135 | Ino uint64 |
| 136 | Off int64 |
| 137 | Reclen uint16 |
| 138 | Type uint8 |
| 139 | Name [256]int8 |
| 140 | Pad_cgo_0 [5]byte |
| 141 | } |
| 142 | |
| 143 | type Fsid struct { |
| 144 | X__val [2]int32 |
| 145 | } |
| 146 | |
| 147 | type Flock_t struct { |
| 148 | Type int16 |
| 149 | Whence int16 |
| 150 | Pad_cgo_0 [4]byte |
| 151 | Start int64 |
| 152 | Len int64 |
| 153 | Pid int32 |
| 154 | Pad_cgo_1 [4]byte |
| 155 | } |
| 156 | |
| 157 | type FscryptPolicy struct { |
| 158 | Version uint8 |
| 159 | Contents_encryption_mode uint8 |
| 160 | Filenames_encryption_mode uint8 |
| 161 | Flags uint8 |
| 162 | Master_key_descriptor [8]uint8 |
| 163 | } |
| 164 | |
| 165 | type FscryptKey struct { |
| 166 | Mode uint32 |
| 167 | Raw [64]uint8 |
| 168 | Size uint32 |
| 169 | } |
| 170 | |
| 171 | type KeyctlDHParams struct { |
| 172 | Private int32 |
| 173 | Prime int32 |
| 174 | Base int32 |
| 175 | } |
| 176 | |
| 177 | const ( |
| 178 | FADV_NORMAL = 0x0 |
| 179 | FADV_RANDOM = 0x1 |
| 180 | FADV_SEQUENTIAL = 0x2 |
| 181 | FADV_WILLNEED = 0x3 |
| 182 | FADV_DONTNEED = 0x4 |
| 183 | FADV_NOREUSE = 0x5 |
| 184 | ) |
| 185 | |
| 186 | type RawSockaddrInet4 struct { |
| 187 | Family uint16 |
| 188 | Port uint16 |
| 189 | Addr [4]byte /* in_addr */ |
| 190 | Zero [8]uint8 |
| 191 | } |
| 192 | |
| 193 | type RawSockaddrInet6 struct { |
| 194 | Family uint16 |
| 195 | Port uint16 |
| 196 | Flowinfo uint32 |
| 197 | Addr [16]byte /* in6_addr */ |
| 198 | Scope_id uint32 |
| 199 | } |
| 200 | |
| 201 | type RawSockaddrUnix struct { |
| 202 | Family uint16 |
| 203 | Path [108]int8 |
| 204 | } |
| 205 | |
| 206 | type RawSockaddrLinklayer struct { |
| 207 | Family uint16 |
| 208 | Protocol uint16 |
| 209 | Ifindex int32 |
| 210 | Hatype uint16 |
| 211 | Pkttype uint8 |
| 212 | Halen uint8 |
| 213 | Addr [8]uint8 |
| 214 | } |
| 215 | |
| 216 | type RawSockaddrNetlink struct { |
| 217 | Family uint16 |
| 218 | Pad uint16 |
| 219 | Pid uint32 |
| 220 | Groups uint32 |
| 221 | } |
| 222 | |
| 223 | type RawSockaddrHCI struct { |
| 224 | Family uint16 |
| 225 | Dev uint16 |
| 226 | Channel uint16 |
| 227 | } |
| 228 | |
| 229 | type RawSockaddrCAN struct { |
| 230 | Family uint16 |
| 231 | Pad_cgo_0 [2]byte |
| 232 | Ifindex int32 |
| 233 | Addr [8]byte |
| 234 | } |
| 235 | |
| 236 | type RawSockaddrALG struct { |
| 237 | Family uint16 |
| 238 | Type [14]uint8 |
| 239 | Feat uint32 |
| 240 | Mask uint32 |
| 241 | Name [64]uint8 |
| 242 | } |
| 243 | |
| 244 | type RawSockaddrVM struct { |
| 245 | Family uint16 |
| 246 | Reserved1 uint16 |
| 247 | Port uint32 |
| 248 | Cid uint32 |
| 249 | Zero [4]uint8 |
| 250 | } |
| 251 | |
| 252 | type RawSockaddr struct { |
| 253 | Family uint16 |
| 254 | Data [14]int8 |
| 255 | } |
| 256 | |
| 257 | type RawSockaddrAny struct { |
| 258 | Addr RawSockaddr |
| 259 | Pad [96]int8 |
| 260 | } |
| 261 | |
| 262 | type _Socklen uint32 |
| 263 | |
| 264 | type Linger struct { |
| 265 | Onoff int32 |
| 266 | Linger int32 |
| 267 | } |
| 268 | |
| 269 | type Iovec struct { |
| 270 | Base *byte |
| 271 | Len uint64 |
| 272 | } |
| 273 | |
| 274 | type IPMreq struct { |
| 275 | Multiaddr [4]byte /* in_addr */ |
| 276 | Interface [4]byte /* in_addr */ |
| 277 | } |
| 278 | |
| 279 | type IPMreqn struct { |
| 280 | Multiaddr [4]byte /* in_addr */ |
| 281 | Address [4]byte /* in_addr */ |
| 282 | Ifindex int32 |
| 283 | } |
| 284 | |
| 285 | type IPv6Mreq struct { |
| 286 | Multiaddr [16]byte /* in6_addr */ |
| 287 | Interface uint32 |
| 288 | } |
| 289 | |
| 290 | type PacketMreq struct { |
| 291 | Ifindex int32 |
| 292 | Type uint16 |
| 293 | Alen uint16 |
| 294 | Address [8]uint8 |
| 295 | } |
| 296 | |
| 297 | type Msghdr struct { |
| 298 | Name *byte |
| 299 | Namelen uint32 |
| 300 | Pad_cgo_0 [4]byte |
| 301 | Iov *Iovec |
| 302 | Iovlen uint64 |
| 303 | Control *byte |
| 304 | Controllen uint64 |
| 305 | Flags int32 |
| 306 | Pad_cgo_1 [4]byte |
| 307 | } |
| 308 | |
| 309 | type Cmsghdr struct { |
| 310 | Len uint64 |
| 311 | Level int32 |
| 312 | Type int32 |
| 313 | } |
| 314 | |
| 315 | type Inet4Pktinfo struct { |
| 316 | Ifindex int32 |
| 317 | Spec_dst [4]byte /* in_addr */ |
| 318 | Addr [4]byte /* in_addr */ |
| 319 | } |
| 320 | |
| 321 | type Inet6Pktinfo struct { |
| 322 | Addr [16]byte /* in6_addr */ |
| 323 | Ifindex uint32 |
| 324 | } |
| 325 | |
| 326 | type IPv6MTUInfo struct { |
| 327 | Addr RawSockaddrInet6 |
| 328 | Mtu uint32 |
| 329 | } |
| 330 | |
| 331 | type ICMPv6Filter struct { |
| 332 | Data [8]uint32 |
| 333 | } |
| 334 | |
| 335 | type Ucred struct { |
| 336 | Pid int32 |
| 337 | Uid uint32 |
| 338 | Gid uint32 |
| 339 | } |
| 340 | |
| 341 | type TCPInfo struct { |
| 342 | State uint8 |
| 343 | Ca_state uint8 |
| 344 | Retransmits uint8 |
| 345 | Probes uint8 |
| 346 | Backoff uint8 |
| 347 | Options uint8 |
| 348 | Pad_cgo_0 [2]byte |
| 349 | Rto uint32 |
| 350 | Ato uint32 |
| 351 | Snd_mss uint32 |
| 352 | Rcv_mss uint32 |
| 353 | Unacked uint32 |
| 354 | Sacked uint32 |
| 355 | Lost uint32 |
| 356 | Retrans uint32 |
| 357 | Fackets uint32 |
| 358 | Last_data_sent uint32 |
| 359 | Last_ack_sent uint32 |
| 360 | Last_data_recv uint32 |
| 361 | Last_ack_recv uint32 |
| 362 | Pmtu uint32 |
| 363 | Rcv_ssthresh uint32 |
| 364 | Rtt uint32 |
| 365 | Rttvar uint32 |
| 366 | Snd_ssthresh uint32 |
| 367 | Snd_cwnd uint32 |
| 368 | Advmss uint32 |
| 369 | Reordering uint32 |
| 370 | Rcv_rtt uint32 |
| 371 | Rcv_space uint32 |
| 372 | Total_retrans uint32 |
| 373 | } |
| 374 | |
| 375 | const ( |
| 376 | SizeofSockaddrInet4 = 0x10 |
| 377 | SizeofSockaddrInet6 = 0x1c |
| 378 | SizeofSockaddrAny = 0x70 |
| 379 | SizeofSockaddrUnix = 0x6e |
| 380 | SizeofSockaddrLinklayer = 0x14 |
| 381 | SizeofSockaddrNetlink = 0xc |
| 382 | SizeofSockaddrHCI = 0x6 |
| 383 | SizeofSockaddrCAN = 0x10 |
| 384 | SizeofSockaddrALG = 0x58 |
| 385 | SizeofSockaddrVM = 0x10 |
| 386 | SizeofLinger = 0x8 |
| 387 | SizeofIovec = 0x10 |
| 388 | SizeofIPMreq = 0x8 |
| 389 | SizeofIPMreqn = 0xc |
| 390 | SizeofIPv6Mreq = 0x14 |
| 391 | SizeofPacketMreq = 0x10 |
| 392 | SizeofMsghdr = 0x38 |
| 393 | SizeofCmsghdr = 0x10 |
| 394 | SizeofInet4Pktinfo = 0xc |
| 395 | SizeofInet6Pktinfo = 0x14 |
| 396 | SizeofIPv6MTUInfo = 0x20 |
| 397 | SizeofICMPv6Filter = 0x20 |
| 398 | SizeofUcred = 0xc |
| 399 | SizeofTCPInfo = 0x68 |
| 400 | ) |
| 401 | |
| 402 | const ( |
| 403 | IFA_UNSPEC = 0x0 |
| 404 | IFA_ADDRESS = 0x1 |
| 405 | IFA_LOCAL = 0x2 |
| 406 | IFA_LABEL = 0x3 |
| 407 | IFA_BROADCAST = 0x4 |
| 408 | IFA_ANYCAST = 0x5 |
| 409 | IFA_CACHEINFO = 0x6 |
| 410 | IFA_MULTICAST = 0x7 |
| 411 | IFLA_UNSPEC = 0x0 |
| 412 | IFLA_ADDRESS = 0x1 |
| 413 | IFLA_BROADCAST = 0x2 |
| 414 | IFLA_IFNAME = 0x3 |
| 415 | IFLA_MTU = 0x4 |
| 416 | IFLA_LINK = 0x5 |
| 417 | IFLA_QDISC = 0x6 |
| 418 | IFLA_STATS = 0x7 |
| 419 | IFLA_COST = 0x8 |
| 420 | IFLA_PRIORITY = 0x9 |
| 421 | IFLA_MASTER = 0xa |
| 422 | IFLA_WIRELESS = 0xb |
| 423 | IFLA_PROTINFO = 0xc |
| 424 | IFLA_TXQLEN = 0xd |
| 425 | IFLA_MAP = 0xe |
| 426 | IFLA_WEIGHT = 0xf |
| 427 | IFLA_OPERSTATE = 0x10 |
| 428 | IFLA_LINKMODE = 0x11 |
| 429 | IFLA_LINKINFO = 0x12 |
| 430 | IFLA_NET_NS_PID = 0x13 |
| 431 | IFLA_IFALIAS = 0x14 |
| 432 | IFLA_MAX = 0x2b |
| 433 | RT_SCOPE_UNIVERSE = 0x0 |
| 434 | RT_SCOPE_SITE = 0xc8 |
| 435 | RT_SCOPE_LINK = 0xfd |
| 436 | RT_SCOPE_HOST = 0xfe |
| 437 | RT_SCOPE_NOWHERE = 0xff |
| 438 | RT_TABLE_UNSPEC = 0x0 |
| 439 | RT_TABLE_COMPAT = 0xfc |
| 440 | RT_TABLE_DEFAULT = 0xfd |
| 441 | RT_TABLE_MAIN = 0xfe |
| 442 | RT_TABLE_LOCAL = 0xff |
| 443 | RT_TABLE_MAX = 0xffffffff |
| 444 | RTA_UNSPEC = 0x0 |
| 445 | RTA_DST = 0x1 |
| 446 | RTA_SRC = 0x2 |
| 447 | RTA_IIF = 0x3 |
| 448 | RTA_OIF = 0x4 |
| 449 | RTA_GATEWAY = 0x5 |
| 450 | RTA_PRIORITY = 0x6 |
| 451 | RTA_PREFSRC = 0x7 |
| 452 | RTA_METRICS = 0x8 |
| 453 | RTA_MULTIPATH = 0x9 |
| 454 | RTA_FLOW = 0xb |
| 455 | RTA_CACHEINFO = 0xc |
| 456 | RTA_TABLE = 0xf |
| 457 | RTN_UNSPEC = 0x0 |
| 458 | RTN_UNICAST = 0x1 |
| 459 | RTN_LOCAL = 0x2 |
| 460 | RTN_BROADCAST = 0x3 |
| 461 | RTN_ANYCAST = 0x4 |
| 462 | RTN_MULTICAST = 0x5 |
| 463 | RTN_BLACKHOLE = 0x6 |
| 464 | RTN_UNREACHABLE = 0x7 |
| 465 | RTN_PROHIBIT = 0x8 |
| 466 | RTN_THROW = 0x9 |
| 467 | RTN_NAT = 0xa |
| 468 | RTN_XRESOLVE = 0xb |
| 469 | RTNLGRP_NONE = 0x0 |
| 470 | RTNLGRP_LINK = 0x1 |
| 471 | RTNLGRP_NOTIFY = 0x2 |
| 472 | RTNLGRP_NEIGH = 0x3 |
| 473 | RTNLGRP_TC = 0x4 |
| 474 | RTNLGRP_IPV4_IFADDR = 0x5 |
| 475 | RTNLGRP_IPV4_MROUTE = 0x6 |
| 476 | RTNLGRP_IPV4_ROUTE = 0x7 |
| 477 | RTNLGRP_IPV4_RULE = 0x8 |
| 478 | RTNLGRP_IPV6_IFADDR = 0x9 |
| 479 | RTNLGRP_IPV6_MROUTE = 0xa |
| 480 | RTNLGRP_IPV6_ROUTE = 0xb |
| 481 | RTNLGRP_IPV6_IFINFO = 0xc |
| 482 | RTNLGRP_IPV6_PREFIX = 0x12 |
| 483 | RTNLGRP_IPV6_RULE = 0x13 |
| 484 | RTNLGRP_ND_USEROPT = 0x14 |
| 485 | SizeofNlMsghdr = 0x10 |
| 486 | SizeofNlMsgerr = 0x14 |
| 487 | SizeofRtGenmsg = 0x1 |
| 488 | SizeofNlAttr = 0x4 |
| 489 | SizeofRtAttr = 0x4 |
| 490 | SizeofIfInfomsg = 0x10 |
| 491 | SizeofIfAddrmsg = 0x8 |
| 492 | SizeofRtMsg = 0xc |
| 493 | SizeofRtNexthop = 0x8 |
| 494 | ) |
| 495 | |
| 496 | type NlMsghdr struct { |
| 497 | Len uint32 |
| 498 | Type uint16 |
| 499 | Flags uint16 |
| 500 | Seq uint32 |
| 501 | Pid uint32 |
| 502 | } |
| 503 | |
| 504 | type NlMsgerr struct { |
| 505 | Error int32 |
| 506 | Msg NlMsghdr |
| 507 | } |
| 508 | |
| 509 | type RtGenmsg struct { |
| 510 | Family uint8 |
| 511 | } |
| 512 | |
| 513 | type NlAttr struct { |
| 514 | Len uint16 |
| 515 | Type uint16 |
| 516 | } |
| 517 | |
| 518 | type RtAttr struct { |
| 519 | Len uint16 |
| 520 | Type uint16 |
| 521 | } |
| 522 | |
| 523 | type IfInfomsg struct { |
| 524 | Family uint8 |
| 525 | X__ifi_pad uint8 |
| 526 | Type uint16 |
| 527 | Index int32 |
| 528 | Flags uint32 |
| 529 | Change uint32 |
| 530 | } |
| 531 | |
| 532 | type IfAddrmsg struct { |
| 533 | Family uint8 |
| 534 | Prefixlen uint8 |
| 535 | Flags uint8 |
| 536 | Scope uint8 |
| 537 | Index uint32 |
| 538 | } |
| 539 | |
| 540 | type RtMsg struct { |
| 541 | Family uint8 |
| 542 | Dst_len uint8 |
| 543 | Src_len uint8 |
| 544 | Tos uint8 |
| 545 | Table uint8 |
| 546 | Protocol uint8 |
| 547 | Scope uint8 |
| 548 | Type uint8 |
| 549 | Flags uint32 |
| 550 | } |
| 551 | |
| 552 | type RtNexthop struct { |
| 553 | Len uint16 |
| 554 | Flags uint8 |
| 555 | Hops uint8 |
| 556 | Ifindex int32 |
| 557 | } |
| 558 | |
| 559 | const ( |
| 560 | SizeofSockFilter = 0x8 |
| 561 | SizeofSockFprog = 0x10 |
| 562 | ) |
| 563 | |
| 564 | type SockFilter struct { |
| 565 | Code uint16 |
| 566 | Jt uint8 |
| 567 | Jf uint8 |
| 568 | K uint32 |
| 569 | } |
| 570 | |
| 571 | type SockFprog struct { |
| 572 | Len uint16 |
| 573 | Pad_cgo_0 [6]byte |
| 574 | Filter *SockFilter |
| 575 | } |
| 576 | |
| 577 | type InotifyEvent struct { |
| 578 | Wd int32 |
| 579 | Mask uint32 |
| 580 | Cookie uint32 |
| 581 | Len uint32 |
| 582 | } |
| 583 | |
| 584 | const SizeofInotifyEvent = 0x10 |
| 585 | |
| 586 | type PtraceRegs struct { |
| 587 | R15 uint64 |
| 588 | R14 uint64 |
| 589 | R13 uint64 |
| 590 | R12 uint64 |
| 591 | Rbp uint64 |
| 592 | Rbx uint64 |
| 593 | R11 uint64 |
| 594 | R10 uint64 |
| 595 | R9 uint64 |
| 596 | R8 uint64 |
| 597 | Rax uint64 |
| 598 | Rcx uint64 |
| 599 | Rdx uint64 |
| 600 | Rsi uint64 |
| 601 | Rdi uint64 |
| 602 | Orig_rax uint64 |
| 603 | Rip uint64 |
| 604 | Cs uint64 |
| 605 | Eflags uint64 |
| 606 | Rsp uint64 |
| 607 | Ss uint64 |
| 608 | Fs_base uint64 |
| 609 | Gs_base uint64 |
| 610 | Ds uint64 |
| 611 | Es uint64 |
| 612 | Fs uint64 |
| 613 | Gs uint64 |
| 614 | } |
| 615 | |
| 616 | type FdSet struct { |
| 617 | Bits [16]int64 |
| 618 | } |
| 619 | |
| 620 | type Sysinfo_t struct { |
| 621 | Uptime int64 |
| 622 | Loads [3]uint64 |
| 623 | Totalram uint64 |
| 624 | Freeram uint64 |
| 625 | Sharedram uint64 |
| 626 | Bufferram uint64 |
| 627 | Totalswap uint64 |
| 628 | Freeswap uint64 |
| 629 | Procs uint16 |
| 630 | Pad uint16 |
| 631 | Pad_cgo_0 [4]byte |
| 632 | Totalhigh uint64 |
| 633 | Freehigh uint64 |
| 634 | Unit uint32 |
| 635 | X_f [0]int8 |
| 636 | Pad_cgo_1 [4]byte |
| 637 | } |
| 638 | |
| 639 | type Utsname struct { |
| 640 | Sysname [65]int8 |
| 641 | Nodename [65]int8 |
| 642 | Release [65]int8 |
| 643 | Version [65]int8 |
| 644 | Machine [65]int8 |
| 645 | Domainname [65]int8 |
| 646 | } |
| 647 | |
| 648 | type Ustat_t struct { |
| 649 | Tfree int32 |
| 650 | Pad_cgo_0 [4]byte |
| 651 | Tinode uint64 |
| 652 | Fname [6]int8 |
| 653 | Fpack [6]int8 |
| 654 | Pad_cgo_1 [4]byte |
| 655 | } |
| 656 | |
| 657 | type EpollEvent struct { |
| 658 | Events uint32 |
| 659 | Fd int32 |
| 660 | Pad int32 |
| 661 | } |
| 662 | |
| 663 | const ( |
| 664 | AT_FDCWD = -0x64 |
| 665 | AT_REMOVEDIR = 0x200 |
| 666 | AT_SYMLINK_FOLLOW = 0x400 |
| 667 | AT_SYMLINK_NOFOLLOW = 0x100 |
| 668 | ) |
| 669 | |
| 670 | type PollFd struct { |
| 671 | Fd int32 |
| 672 | Events int16 |
| 673 | Revents int16 |
| 674 | } |
| 675 | |
| 676 | const ( |
| 677 | POLLIN = 0x1 |
| 678 | POLLPRI = 0x2 |
| 679 | POLLOUT = 0x4 |
| 680 | POLLRDHUP = 0x2000 |
| 681 | POLLERR = 0x8 |
| 682 | POLLHUP = 0x10 |
| 683 | POLLNVAL = 0x20 |
| 684 | ) |
| 685 | |
| 686 | type Sigset_t struct { |
| 687 | X__val [16]uint64 |
| 688 | } |
| 689 | |
| 690 | const RNDGETENTCNT = 0x80045200 |
| 691 | |
| 692 | const PERF_IOC_FLAG_GROUP = 0x1 |
| 693 | |
| 694 | const _SC_PAGESIZE = 0x1e |
| 695 | |
| 696 | type Termios struct { |
| 697 | Iflag uint32 |
| 698 | Oflag uint32 |
| 699 | Cflag uint32 |
| 700 | Lflag uint32 |
| 701 | Line uint8 |
| 702 | Cc [19]uint8 |
| 703 | Ispeed uint32 |
| 704 | Ospeed uint32 |
| 705 | } |
| 706 | |
| 707 | type Winsize struct { |
| 708 | Row uint16 |
| 709 | Col uint16 |
| 710 | Xpixel uint16 |
| 711 | Ypixel uint16 |
| 712 | } |
| 713 | |
| 714 | type Taskstats struct { |
| 715 | Version uint16 |
| 716 | Pad_cgo_0 [2]byte |
| 717 | Ac_exitcode uint32 |
| 718 | Ac_flag uint8 |
| 719 | Ac_nice uint8 |
| 720 | Pad_cgo_1 [6]byte |
| 721 | Cpu_count uint64 |
| 722 | Cpu_delay_total uint64 |
| 723 | Blkio_count uint64 |
| 724 | Blkio_delay_total uint64 |
| 725 | Swapin_count uint64 |
| 726 | Swapin_delay_total uint64 |
| 727 | Cpu_run_real_total uint64 |
| 728 | Cpu_run_virtual_total uint64 |
| 729 | Ac_comm [32]int8 |
| 730 | Ac_sched uint8 |
| 731 | Ac_pad [3]uint8 |
| 732 | Pad_cgo_2 [4]byte |
| 733 | Ac_uid uint32 |
| 734 | Ac_gid uint32 |
| 735 | Ac_pid uint32 |
| 736 | Ac_ppid uint32 |
| 737 | Ac_btime uint32 |
| 738 | Pad_cgo_3 [4]byte |
| 739 | Ac_etime uint64 |
| 740 | Ac_utime uint64 |
| 741 | Ac_stime uint64 |
| 742 | Ac_minflt uint64 |
| 743 | Ac_majflt uint64 |
| 744 | Coremem uint64 |
| 745 | Virtmem uint64 |
| 746 | Hiwater_rss uint64 |
| 747 | Hiwater_vm uint64 |
| 748 | Read_char uint64 |
| 749 | Write_char uint64 |
| 750 | Read_syscalls uint64 |
| 751 | Write_syscalls uint64 |
| 752 | Read_bytes uint64 |
| 753 | Write_bytes uint64 |
| 754 | Cancelled_write_bytes uint64 |
| 755 | Nvcsw uint64 |
| 756 | Nivcsw uint64 |
| 757 | Ac_utimescaled uint64 |
| 758 | Ac_stimescaled uint64 |
| 759 | Cpu_scaled_run_real_total uint64 |
| 760 | Freepages_count uint64 |
| 761 | Freepages_delay_total uint64 |
| 762 | } |
| 763 | |
| 764 | const ( |
| 765 | TASKSTATS_CMD_UNSPEC = 0x0 |
| 766 | TASKSTATS_CMD_GET = 0x1 |
| 767 | TASKSTATS_CMD_NEW = 0x2 |
| 768 | TASKSTATS_TYPE_UNSPEC = 0x0 |
| 769 | TASKSTATS_TYPE_PID = 0x1 |
| 770 | TASKSTATS_TYPE_TGID = 0x2 |
| 771 | TASKSTATS_TYPE_STATS = 0x3 |
| 772 | TASKSTATS_TYPE_AGGR_PID = 0x4 |
| 773 | TASKSTATS_TYPE_AGGR_TGID = 0x5 |
| 774 | TASKSTATS_TYPE_NULL = 0x6 |
| 775 | TASKSTATS_CMD_ATTR_UNSPEC = 0x0 |
| 776 | TASKSTATS_CMD_ATTR_PID = 0x1 |
| 777 | TASKSTATS_CMD_ATTR_TGID = 0x2 |
| 778 | TASKSTATS_CMD_ATTR_REGISTER_CPUMASK = 0x3 |
| 779 | TASKSTATS_CMD_ATTR_DEREGISTER_CPUMASK = 0x4 |
| 780 | ) |
| 781 | |
| 782 | type Genlmsghdr struct { |
| 783 | Cmd uint8 |
| 784 | Version uint8 |
| 785 | Reserved uint16 |
| 786 | } |
| 787 | |
| 788 | const ( |
| 789 | CTRL_CMD_UNSPEC = 0x0 |
| 790 | CTRL_CMD_NEWFAMILY = 0x1 |
| 791 | CTRL_CMD_DELFAMILY = 0x2 |
| 792 | CTRL_CMD_GETFAMILY = 0x3 |
| 793 | CTRL_CMD_NEWOPS = 0x4 |
| 794 | CTRL_CMD_DELOPS = 0x5 |
| 795 | CTRL_CMD_GETOPS = 0x6 |
| 796 | CTRL_CMD_NEWMCAST_GRP = 0x7 |
| 797 | CTRL_CMD_DELMCAST_GRP = 0x8 |
| 798 | CTRL_CMD_GETMCAST_GRP = 0x9 |
| 799 | CTRL_ATTR_UNSPEC = 0x0 |
| 800 | CTRL_ATTR_FAMILY_ID = 0x1 |
| 801 | CTRL_ATTR_FAMILY_NAME = 0x2 |
| 802 | CTRL_ATTR_VERSION = 0x3 |
| 803 | CTRL_ATTR_HDRSIZE = 0x4 |
| 804 | CTRL_ATTR_MAXATTR = 0x5 |
| 805 | CTRL_ATTR_OPS = 0x6 |
| 806 | CTRL_ATTR_MCAST_GROUPS = 0x7 |
| 807 | CTRL_ATTR_OP_UNSPEC = 0x0 |
| 808 | CTRL_ATTR_OP_ID = 0x1 |
| 809 | CTRL_ATTR_OP_FLAGS = 0x2 |
| 810 | CTRL_ATTR_MCAST_GRP_UNSPEC = 0x0 |
| 811 | CTRL_ATTR_MCAST_GRP_NAME = 0x1 |
| 812 | CTRL_ATTR_MCAST_GRP_ID = 0x2 |
| 813 | ) |