Source file src/syscall/ztypes_linux_loong64.go

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

View as plain text