Source file src/syscall/ztypes_linux_riscv64.go

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

View as plain text