Joe Richey | ea9bcad | 2017-03-08 10:50:27 -0800 | [diff] [blame] | 1 | // cgo -godefs -- -Wall -Werror -static -I/tmp/include linux/types.go | go run mkpost.go |
| 2 | // Code generated by the command above; see README.md. DO NOT EDIT. |
| 3 | |
Vladimir Stefanovic | 478fcf5 | 2016-12-05 16:46:50 +0100 | [diff] [blame] | 4 | // +build mipsle,linux |
Vladimir Stefanovic | 478fcf5 | 2016-12-05 16:46:50 +0100 | [diff] [blame] | 5 | |
| 6 | package unix |
| 7 | |
| 8 | const ( |
| 9 | sizeofPtr = 0x4 |
| 10 | sizeofShort = 0x2 |
| 11 | sizeofInt = 0x4 |
| 12 | sizeofLong = 0x4 |
| 13 | sizeofLongLong = 0x8 |
| 14 | PathMax = 0x1000 |
| 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 int32 |
| 26 | Nsec int32 |
| 27 | } |
| 28 | |
| 29 | type Timeval struct { |
| 30 | Sec int32 |
| 31 | Usec int32 |
| 32 | } |
| 33 | |
| 34 | type Timex struct { |
| 35 | Modes uint32 |
| 36 | Offset int32 |
| 37 | Freq int32 |
| 38 | Maxerror int32 |
| 39 | Esterror int32 |
| 40 | Status int32 |
| 41 | Constant int32 |
| 42 | Precision int32 |
| 43 | Tolerance int32 |
| 44 | Time Timeval |
| 45 | Tick int32 |
| 46 | Ppsfreq int32 |
| 47 | Jitter int32 |
| 48 | Shift int32 |
| 49 | Stabil int32 |
| 50 | Jitcnt int32 |
| 51 | Calcnt int32 |
| 52 | Errcnt int32 |
| 53 | Stbcnt int32 |
| 54 | Tai int32 |
| 55 | Pad_cgo_0 [44]byte |
| 56 | } |
| 57 | |
| 58 | type Time_t int32 |
| 59 | |
| 60 | type Tms struct { |
| 61 | Utime int32 |
| 62 | Stime int32 |
| 63 | Cutime int32 |
| 64 | Cstime int32 |
| 65 | } |
| 66 | |
| 67 | type Utimbuf struct { |
| 68 | Actime int32 |
| 69 | Modtime int32 |
| 70 | } |
| 71 | |
| 72 | type Rusage struct { |
| 73 | Utime Timeval |
| 74 | Stime Timeval |
| 75 | Maxrss int32 |
| 76 | Ixrss int32 |
| 77 | Idrss int32 |
| 78 | Isrss int32 |
| 79 | Minflt int32 |
| 80 | Majflt int32 |
| 81 | Nswap int32 |
| 82 | Inblock int32 |
| 83 | Oublock int32 |
| 84 | Msgsnd int32 |
| 85 | Msgrcv int32 |
| 86 | Nsignals int32 |
| 87 | Nvcsw int32 |
| 88 | Nivcsw int32 |
| 89 | } |
| 90 | |
| 91 | type Rlimit struct { |
| 92 | Cur uint64 |
| 93 | Max uint64 |
| 94 | } |
| 95 | |
| 96 | type _Gid_t uint32 |
| 97 | |
| 98 | type Stat_t struct { |
| 99 | Dev uint32 |
| 100 | Pad1 [3]int32 |
| 101 | Ino uint64 |
| 102 | Mode uint32 |
| 103 | Nlink uint32 |
| 104 | Uid uint32 |
| 105 | Gid uint32 |
| 106 | Rdev uint32 |
| 107 | Pad2 [3]int32 |
| 108 | Size int64 |
| 109 | Atim Timespec |
| 110 | Mtim Timespec |
| 111 | Ctim Timespec |
| 112 | Blksize int32 |
| 113 | Pad4 int32 |
| 114 | Blocks int64 |
| 115 | Pad5 [14]int32 |
| 116 | } |
| 117 | |
| 118 | type Statfs_t struct { |
| 119 | Type int32 |
| 120 | Bsize int32 |
| 121 | Frsize int32 |
| 122 | Pad_cgo_0 [4]byte |
| 123 | Blocks uint64 |
| 124 | Bfree uint64 |
| 125 | Files uint64 |
| 126 | Ffree uint64 |
| 127 | Bavail uint64 |
| 128 | Fsid Fsid |
| 129 | Namelen int32 |
| 130 | Flags int32 |
| 131 | Spare [5]int32 |
| 132 | Pad_cgo_1 [4]byte |
| 133 | } |
| 134 | |
| 135 | type Dirent struct { |
| 136 | Ino uint64 |
| 137 | Off int64 |
| 138 | Reclen uint16 |
| 139 | Type uint8 |
| 140 | Name [256]int8 |
| 141 | Pad_cgo_0 [5]byte |
| 142 | } |
| 143 | |
| 144 | type Fsid struct { |
| 145 | X__val [2]int32 |
| 146 | } |
| 147 | |
| 148 | type Flock_t struct { |
| 149 | Type int16 |
| 150 | Whence int16 |
| 151 | Pad_cgo_0 [4]byte |
| 152 | Start int64 |
| 153 | Len int64 |
| 154 | Pid int32 |
| 155 | Pad_cgo_1 [4]byte |
| 156 | } |
| 157 | |
joerichey@google.com | 8c0a5ea | 2017-04-04 16:46:32 +0000 | [diff] [blame] | 158 | type FscryptPolicy struct { |
| 159 | Version uint8 |
| 160 | Contents_encryption_mode uint8 |
| 161 | Filenames_encryption_mode uint8 |
| 162 | Flags uint8 |
| 163 | Master_key_descriptor [8]uint8 |
| 164 | } |
| 165 | |
| 166 | type FscryptKey struct { |
| 167 | Mode uint32 |
| 168 | Raw [64]uint8 |
| 169 | Size uint32 |
| 170 | } |
| 171 | |
Joe Richey joerichey@google.com | a2e06a1 | 2017-04-21 23:22:19 +0000 | [diff] [blame] | 172 | type KeyctlDHParams struct { |
| 173 | Private int32 |
| 174 | Prime int32 |
| 175 | Base int32 |
| 176 | } |
| 177 | |
Vladimir Stefanovic | 478fcf5 | 2016-12-05 16:46:50 +0100 | [diff] [blame] | 178 | const ( |
| 179 | FADV_NORMAL = 0x0 |
| 180 | FADV_RANDOM = 0x1 |
| 181 | FADV_SEQUENTIAL = 0x2 |
| 182 | FADV_WILLNEED = 0x3 |
| 183 | FADV_DONTNEED = 0x4 |
| 184 | FADV_NOREUSE = 0x5 |
| 185 | ) |
| 186 | |
| 187 | type RawSockaddrInet4 struct { |
| 188 | Family uint16 |
| 189 | Port uint16 |
| 190 | Addr [4]byte /* in_addr */ |
| 191 | Zero [8]uint8 |
| 192 | } |
| 193 | |
| 194 | type RawSockaddrInet6 struct { |
| 195 | Family uint16 |
| 196 | Port uint16 |
| 197 | Flowinfo uint32 |
| 198 | Addr [16]byte /* in6_addr */ |
| 199 | Scope_id uint32 |
| 200 | } |
| 201 | |
| 202 | type RawSockaddrUnix struct { |
| 203 | Family uint16 |
| 204 | Path [108]int8 |
| 205 | } |
| 206 | |
| 207 | type RawSockaddrLinklayer struct { |
| 208 | Family uint16 |
| 209 | Protocol uint16 |
| 210 | Ifindex int32 |
| 211 | Hatype uint16 |
| 212 | Pkttype uint8 |
| 213 | Halen uint8 |
| 214 | Addr [8]uint8 |
| 215 | } |
| 216 | |
| 217 | type RawSockaddrNetlink struct { |
| 218 | Family uint16 |
| 219 | Pad uint16 |
| 220 | Pid uint32 |
| 221 | Groups uint32 |
| 222 | } |
| 223 | |
| 224 | type RawSockaddrHCI struct { |
| 225 | Family uint16 |
| 226 | Dev uint16 |
| 227 | Channel uint16 |
| 228 | } |
| 229 | |
| 230 | type RawSockaddrCAN struct { |
| 231 | Family uint16 |
| 232 | Pad_cgo_0 [2]byte |
| 233 | Ifindex int32 |
| 234 | Addr [8]byte |
| 235 | } |
| 236 | |
Matt Layher | e24f485 | 2017-02-10 21:03:03 -0500 | [diff] [blame] | 237 | type RawSockaddrALG struct { |
| 238 | Family uint16 |
| 239 | Type [14]uint8 |
| 240 | Feat uint32 |
| 241 | Mask uint32 |
| 242 | Name [64]uint8 |
| 243 | } |
| 244 | |
Matt Layher | d67a327 | 2017-03-07 20:18:38 -0500 | [diff] [blame] | 245 | type RawSockaddrVM struct { |
| 246 | Family uint16 |
| 247 | Reserved1 uint16 |
| 248 | Port uint32 |
| 249 | Cid uint32 |
| 250 | Zero [4]uint8 |
| 251 | } |
| 252 | |
Vladimir Stefanovic | 478fcf5 | 2016-12-05 16:46:50 +0100 | [diff] [blame] | 253 | type RawSockaddr struct { |
| 254 | Family uint16 |
| 255 | Data [14]int8 |
| 256 | } |
| 257 | |
| 258 | type RawSockaddrAny struct { |
| 259 | Addr RawSockaddr |
| 260 | Pad [96]int8 |
| 261 | } |
| 262 | |
| 263 | type _Socklen uint32 |
| 264 | |
| 265 | type Linger struct { |
| 266 | Onoff int32 |
| 267 | Linger int32 |
| 268 | } |
| 269 | |
| 270 | type Iovec struct { |
| 271 | Base *byte |
| 272 | Len uint32 |
| 273 | } |
| 274 | |
| 275 | type IPMreq struct { |
| 276 | Multiaddr [4]byte /* in_addr */ |
| 277 | Interface [4]byte /* in_addr */ |
| 278 | } |
| 279 | |
| 280 | type IPMreqn struct { |
| 281 | Multiaddr [4]byte /* in_addr */ |
| 282 | Address [4]byte /* in_addr */ |
| 283 | Ifindex int32 |
| 284 | } |
| 285 | |
| 286 | type IPv6Mreq struct { |
| 287 | Multiaddr [16]byte /* in6_addr */ |
| 288 | Interface uint32 |
| 289 | } |
| 290 | |
| 291 | type Msghdr struct { |
| 292 | Name *byte |
| 293 | Namelen uint32 |
| 294 | Iov *Iovec |
| 295 | Iovlen uint32 |
| 296 | Control *byte |
| 297 | Controllen uint32 |
| 298 | Flags int32 |
| 299 | } |
| 300 | |
| 301 | type Cmsghdr struct { |
| 302 | Len uint32 |
| 303 | Level int32 |
| 304 | Type int32 |
| 305 | } |
| 306 | |
| 307 | type Inet4Pktinfo struct { |
| 308 | Ifindex int32 |
| 309 | Spec_dst [4]byte /* in_addr */ |
| 310 | Addr [4]byte /* in_addr */ |
| 311 | } |
| 312 | |
| 313 | type Inet6Pktinfo struct { |
| 314 | Addr [16]byte /* in6_addr */ |
| 315 | Ifindex uint32 |
| 316 | } |
| 317 | |
| 318 | type IPv6MTUInfo struct { |
| 319 | Addr RawSockaddrInet6 |
| 320 | Mtu uint32 |
| 321 | } |
| 322 | |
| 323 | type ICMPv6Filter struct { |
| 324 | Data [8]uint32 |
| 325 | } |
| 326 | |
| 327 | type Ucred struct { |
| 328 | Pid int32 |
| 329 | Uid uint32 |
| 330 | Gid uint32 |
| 331 | } |
| 332 | |
| 333 | type TCPInfo struct { |
| 334 | State uint8 |
| 335 | Ca_state uint8 |
| 336 | Retransmits uint8 |
| 337 | Probes uint8 |
| 338 | Backoff uint8 |
| 339 | Options uint8 |
| 340 | Pad_cgo_0 [2]byte |
| 341 | Rto uint32 |
| 342 | Ato uint32 |
| 343 | Snd_mss uint32 |
| 344 | Rcv_mss uint32 |
| 345 | Unacked uint32 |
| 346 | Sacked uint32 |
| 347 | Lost uint32 |
| 348 | Retrans uint32 |
| 349 | Fackets uint32 |
| 350 | Last_data_sent uint32 |
| 351 | Last_ack_sent uint32 |
| 352 | Last_data_recv uint32 |
| 353 | Last_ack_recv uint32 |
| 354 | Pmtu uint32 |
| 355 | Rcv_ssthresh uint32 |
| 356 | Rtt uint32 |
| 357 | Rttvar uint32 |
| 358 | Snd_ssthresh uint32 |
| 359 | Snd_cwnd uint32 |
| 360 | Advmss uint32 |
| 361 | Reordering uint32 |
| 362 | Rcv_rtt uint32 |
| 363 | Rcv_space uint32 |
| 364 | Total_retrans uint32 |
| 365 | } |
| 366 | |
| 367 | const ( |
| 368 | SizeofSockaddrInet4 = 0x10 |
| 369 | SizeofSockaddrInet6 = 0x1c |
| 370 | SizeofSockaddrAny = 0x70 |
| 371 | SizeofSockaddrUnix = 0x6e |
| 372 | SizeofSockaddrLinklayer = 0x14 |
| 373 | SizeofSockaddrNetlink = 0xc |
| 374 | SizeofSockaddrHCI = 0x6 |
| 375 | SizeofSockaddrCAN = 0x10 |
Matt Layher | e24f485 | 2017-02-10 21:03:03 -0500 | [diff] [blame] | 376 | SizeofSockaddrALG = 0x58 |
Matt Layher | d67a327 | 2017-03-07 20:18:38 -0500 | [diff] [blame] | 377 | SizeofSockaddrVM = 0x10 |
Vladimir Stefanovic | 478fcf5 | 2016-12-05 16:46:50 +0100 | [diff] [blame] | 378 | SizeofLinger = 0x8 |
| 379 | SizeofIPMreq = 0x8 |
| 380 | SizeofIPMreqn = 0xc |
| 381 | SizeofIPv6Mreq = 0x14 |
| 382 | SizeofMsghdr = 0x1c |
| 383 | SizeofCmsghdr = 0xc |
| 384 | SizeofInet4Pktinfo = 0xc |
| 385 | SizeofInet6Pktinfo = 0x14 |
| 386 | SizeofIPv6MTUInfo = 0x20 |
| 387 | SizeofICMPv6Filter = 0x20 |
| 388 | SizeofUcred = 0xc |
| 389 | SizeofTCPInfo = 0x68 |
| 390 | ) |
| 391 | |
| 392 | const ( |
| 393 | IFA_UNSPEC = 0x0 |
| 394 | IFA_ADDRESS = 0x1 |
| 395 | IFA_LOCAL = 0x2 |
| 396 | IFA_LABEL = 0x3 |
| 397 | IFA_BROADCAST = 0x4 |
| 398 | IFA_ANYCAST = 0x5 |
| 399 | IFA_CACHEINFO = 0x6 |
| 400 | IFA_MULTICAST = 0x7 |
| 401 | IFLA_UNSPEC = 0x0 |
| 402 | IFLA_ADDRESS = 0x1 |
| 403 | IFLA_BROADCAST = 0x2 |
| 404 | IFLA_IFNAME = 0x3 |
| 405 | IFLA_MTU = 0x4 |
| 406 | IFLA_LINK = 0x5 |
| 407 | IFLA_QDISC = 0x6 |
| 408 | IFLA_STATS = 0x7 |
| 409 | IFLA_COST = 0x8 |
| 410 | IFLA_PRIORITY = 0x9 |
| 411 | IFLA_MASTER = 0xa |
| 412 | IFLA_WIRELESS = 0xb |
| 413 | IFLA_PROTINFO = 0xc |
| 414 | IFLA_TXQLEN = 0xd |
| 415 | IFLA_MAP = 0xe |
| 416 | IFLA_WEIGHT = 0xf |
| 417 | IFLA_OPERSTATE = 0x10 |
| 418 | IFLA_LINKMODE = 0x11 |
| 419 | IFLA_LINKINFO = 0x12 |
| 420 | IFLA_NET_NS_PID = 0x13 |
| 421 | IFLA_IFALIAS = 0x14 |
Joe Richey | ea9bcad | 2017-03-08 10:50:27 -0800 | [diff] [blame] | 422 | IFLA_MAX = 0x2b |
Vladimir Stefanovic | 478fcf5 | 2016-12-05 16:46:50 +0100 | [diff] [blame] | 423 | RT_SCOPE_UNIVERSE = 0x0 |
| 424 | RT_SCOPE_SITE = 0xc8 |
| 425 | RT_SCOPE_LINK = 0xfd |
| 426 | RT_SCOPE_HOST = 0xfe |
| 427 | RT_SCOPE_NOWHERE = 0xff |
| 428 | RT_TABLE_UNSPEC = 0x0 |
| 429 | RT_TABLE_COMPAT = 0xfc |
| 430 | RT_TABLE_DEFAULT = 0xfd |
| 431 | RT_TABLE_MAIN = 0xfe |
| 432 | RT_TABLE_LOCAL = 0xff |
| 433 | RT_TABLE_MAX = 0xffffffff |
| 434 | RTA_UNSPEC = 0x0 |
| 435 | RTA_DST = 0x1 |
| 436 | RTA_SRC = 0x2 |
| 437 | RTA_IIF = 0x3 |
| 438 | RTA_OIF = 0x4 |
| 439 | RTA_GATEWAY = 0x5 |
| 440 | RTA_PRIORITY = 0x6 |
| 441 | RTA_PREFSRC = 0x7 |
| 442 | RTA_METRICS = 0x8 |
| 443 | RTA_MULTIPATH = 0x9 |
| 444 | RTA_FLOW = 0xb |
| 445 | RTA_CACHEINFO = 0xc |
| 446 | RTA_TABLE = 0xf |
| 447 | RTN_UNSPEC = 0x0 |
| 448 | RTN_UNICAST = 0x1 |
| 449 | RTN_LOCAL = 0x2 |
| 450 | RTN_BROADCAST = 0x3 |
| 451 | RTN_ANYCAST = 0x4 |
| 452 | RTN_MULTICAST = 0x5 |
| 453 | RTN_BLACKHOLE = 0x6 |
| 454 | RTN_UNREACHABLE = 0x7 |
| 455 | RTN_PROHIBIT = 0x8 |
| 456 | RTN_THROW = 0x9 |
| 457 | RTN_NAT = 0xa |
| 458 | RTN_XRESOLVE = 0xb |
| 459 | RTNLGRP_NONE = 0x0 |
| 460 | RTNLGRP_LINK = 0x1 |
| 461 | RTNLGRP_NOTIFY = 0x2 |
| 462 | RTNLGRP_NEIGH = 0x3 |
| 463 | RTNLGRP_TC = 0x4 |
| 464 | RTNLGRP_IPV4_IFADDR = 0x5 |
| 465 | RTNLGRP_IPV4_MROUTE = 0x6 |
| 466 | RTNLGRP_IPV4_ROUTE = 0x7 |
| 467 | RTNLGRP_IPV4_RULE = 0x8 |
| 468 | RTNLGRP_IPV6_IFADDR = 0x9 |
| 469 | RTNLGRP_IPV6_MROUTE = 0xa |
| 470 | RTNLGRP_IPV6_ROUTE = 0xb |
| 471 | RTNLGRP_IPV6_IFINFO = 0xc |
| 472 | RTNLGRP_IPV6_PREFIX = 0x12 |
| 473 | RTNLGRP_IPV6_RULE = 0x13 |
| 474 | RTNLGRP_ND_USEROPT = 0x14 |
| 475 | SizeofNlMsghdr = 0x10 |
| 476 | SizeofNlMsgerr = 0x14 |
| 477 | SizeofRtGenmsg = 0x1 |
| 478 | SizeofNlAttr = 0x4 |
| 479 | SizeofRtAttr = 0x4 |
| 480 | SizeofIfInfomsg = 0x10 |
| 481 | SizeofIfAddrmsg = 0x8 |
| 482 | SizeofRtMsg = 0xc |
| 483 | SizeofRtNexthop = 0x8 |
| 484 | ) |
| 485 | |
| 486 | type NlMsghdr struct { |
| 487 | Len uint32 |
| 488 | Type uint16 |
| 489 | Flags uint16 |
| 490 | Seq uint32 |
| 491 | Pid uint32 |
| 492 | } |
| 493 | |
| 494 | type NlMsgerr struct { |
| 495 | Error int32 |
| 496 | Msg NlMsghdr |
| 497 | } |
| 498 | |
| 499 | type RtGenmsg struct { |
| 500 | Family uint8 |
| 501 | } |
| 502 | |
| 503 | type NlAttr struct { |
| 504 | Len uint16 |
| 505 | Type uint16 |
| 506 | } |
| 507 | |
| 508 | type RtAttr struct { |
| 509 | Len uint16 |
| 510 | Type uint16 |
| 511 | } |
| 512 | |
| 513 | type IfInfomsg struct { |
| 514 | Family uint8 |
| 515 | X__ifi_pad uint8 |
| 516 | Type uint16 |
| 517 | Index int32 |
| 518 | Flags uint32 |
| 519 | Change uint32 |
| 520 | } |
| 521 | |
| 522 | type IfAddrmsg struct { |
| 523 | Family uint8 |
| 524 | Prefixlen uint8 |
| 525 | Flags uint8 |
| 526 | Scope uint8 |
| 527 | Index uint32 |
| 528 | } |
| 529 | |
| 530 | type RtMsg struct { |
| 531 | Family uint8 |
| 532 | Dst_len uint8 |
| 533 | Src_len uint8 |
| 534 | Tos uint8 |
| 535 | Table uint8 |
| 536 | Protocol uint8 |
| 537 | Scope uint8 |
| 538 | Type uint8 |
| 539 | Flags uint32 |
| 540 | } |
| 541 | |
| 542 | type RtNexthop struct { |
| 543 | Len uint16 |
| 544 | Flags uint8 |
| 545 | Hops uint8 |
| 546 | Ifindex int32 |
| 547 | } |
| 548 | |
| 549 | const ( |
| 550 | SizeofSockFilter = 0x8 |
| 551 | SizeofSockFprog = 0x8 |
| 552 | ) |
| 553 | |
| 554 | type SockFilter struct { |
| 555 | Code uint16 |
| 556 | Jt uint8 |
| 557 | Jf uint8 |
| 558 | K uint32 |
| 559 | } |
| 560 | |
| 561 | type SockFprog struct { |
| 562 | Len uint16 |
| 563 | Pad_cgo_0 [2]byte |
| 564 | Filter *SockFilter |
| 565 | } |
| 566 | |
| 567 | type InotifyEvent struct { |
| 568 | Wd int32 |
| 569 | Mask uint32 |
| 570 | Cookie uint32 |
| 571 | Len uint32 |
| 572 | } |
| 573 | |
| 574 | const SizeofInotifyEvent = 0x10 |
| 575 | |
| 576 | type PtraceRegs struct { |
James Cowgill | 156c5a2 | 2017-05-12 16:43:35 +0100 | [diff] [blame] | 577 | Regs [32]uint64 |
| 578 | Lo uint64 |
| 579 | Hi uint64 |
| 580 | Epc uint64 |
| 581 | Badvaddr uint64 |
| 582 | Status uint64 |
| 583 | Cause uint64 |
Vladimir Stefanovic | 478fcf5 | 2016-12-05 16:46:50 +0100 | [diff] [blame] | 584 | } |
| 585 | |
Vladimir Stefanovic | 478fcf5 | 2016-12-05 16:46:50 +0100 | [diff] [blame] | 586 | type FdSet struct { |
| 587 | Bits [32]int32 |
| 588 | } |
| 589 | |
| 590 | type Sysinfo_t struct { |
| 591 | Uptime int32 |
| 592 | Loads [3]uint32 |
| 593 | Totalram uint32 |
| 594 | Freeram uint32 |
| 595 | Sharedram uint32 |
| 596 | Bufferram uint32 |
| 597 | Totalswap uint32 |
| 598 | Freeswap uint32 |
| 599 | Procs uint16 |
| 600 | Pad uint16 |
| 601 | Totalhigh uint32 |
| 602 | Freehigh uint32 |
| 603 | Unit uint32 |
| 604 | X_f [8]int8 |
| 605 | } |
| 606 | |
| 607 | type Utsname struct { |
| 608 | Sysname [65]int8 |
| 609 | Nodename [65]int8 |
| 610 | Release [65]int8 |
| 611 | Version [65]int8 |
| 612 | Machine [65]int8 |
| 613 | Domainname [65]int8 |
| 614 | } |
| 615 | |
| 616 | type Ustat_t struct { |
| 617 | Tfree int32 |
| 618 | Tinode uint32 |
| 619 | Fname [6]int8 |
| 620 | Fpack [6]int8 |
| 621 | } |
| 622 | |
| 623 | type EpollEvent struct { |
| 624 | Events uint32 |
| 625 | PadFd int32 |
| 626 | Fd int32 |
| 627 | Pad int32 |
| 628 | } |
| 629 | |
| 630 | const ( |
| 631 | AT_FDCWD = -0x64 |
| 632 | AT_REMOVEDIR = 0x200 |
| 633 | AT_SYMLINK_FOLLOW = 0x400 |
| 634 | AT_SYMLINK_NOFOLLOW = 0x100 |
| 635 | ) |
| 636 | |
| 637 | type PollFd struct { |
| 638 | Fd int32 |
| 639 | Events int16 |
| 640 | Revents int16 |
| 641 | } |
| 642 | |
| 643 | const ( |
| 644 | POLLIN = 0x1 |
| 645 | POLLPRI = 0x2 |
| 646 | POLLOUT = 0x4 |
| 647 | POLLRDHUP = 0x2000 |
| 648 | POLLERR = 0x8 |
| 649 | POLLHUP = 0x10 |
| 650 | POLLNVAL = 0x20 |
| 651 | ) |
| 652 | |
| 653 | type Sigset_t struct { |
| 654 | X__val [32]uint32 |
| 655 | } |
| 656 | |
Matt Layher | a55a760 | 2017-05-23 22:50:34 -0400 | [diff] [blame] | 657 | const RNDGETENTCNT = 0x40045200 |
| 658 | |
Tobias Klauser | 7397344 | 2017-07-07 13:51:12 +0200 | [diff] [blame] | 659 | const PERF_IOC_FLAG_GROUP = 0x1 |
| 660 | |
Vladimir Stefanovic | 478fcf5 | 2016-12-05 16:46:50 +0100 | [diff] [blame] | 661 | const _SC_PAGESIZE = 0x1e |
| 662 | |
| 663 | type Termios struct { |
| 664 | Iflag uint32 |
| 665 | Oflag uint32 |
| 666 | Cflag uint32 |
| 667 | Lflag uint32 |
| 668 | Line uint8 |
| 669 | Cc [23]uint8 |
| 670 | Ispeed uint32 |
| 671 | Ospeed uint32 |
| 672 | } |