github.com/maenmax/kairep@v0.0.0-20210218001208-55bf3df36788/src/golang.org/x/sys/unix/ztypes_linux_mips64le.go (about)

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