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