github.com/juelite/golang.org-x-sys@v0.0.0-20181121071242-7b69e1c5db33/unix/ztypes_linux_mips.go (about)

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