golang.org/x/sys@v0.9.0/unix/ztypes_linux_riscv64.go (about)

     1  // cgo -godefs -objdir=/tmp/riscv64/cgo -- -Wall -Werror -static -I/tmp/riscv64/include linux/types.go | go run mkpost.go
     2  // Code generated by the command above; see README.md. DO NOT EDIT.
     3  
     4  //go:build riscv64 && linux
     5  // +build riscv64,linux
     6  
     7  package unix
     8  
     9  const (
    10  	SizeofPtr  = 0x8
    11  	SizeofLong = 0x8
    12  )
    13  
    14  type (
    15  	_C_long int64
    16  )
    17  
    18  type Timespec struct {
    19  	Sec  int64
    20  	Nsec int64
    21  }
    22  
    23  type Timeval struct {
    24  	Sec  int64
    25  	Usec int64
    26  }
    27  
    28  type Timex struct {
    29  	Modes     uint32
    30  	Offset    int64
    31  	Freq      int64
    32  	Maxerror  int64
    33  	Esterror  int64
    34  	Status    int32
    35  	Constant  int64
    36  	Precision int64
    37  	Tolerance int64
    38  	Time      Timeval
    39  	Tick      int64
    40  	Ppsfreq   int64
    41  	Jitter    int64
    42  	Shift     int32
    43  	Stabil    int64
    44  	Jitcnt    int64
    45  	Calcnt    int64
    46  	Errcnt    int64
    47  	Stbcnt    int64
    48  	Tai       int32
    49  	_         [44]byte
    50  }
    51  
    52  type Time_t int64
    53  
    54  type Tms struct {
    55  	Utime  int64
    56  	Stime  int64
    57  	Cutime int64
    58  	Cstime int64
    59  }
    60  
    61  type Utimbuf struct {
    62  	Actime  int64
    63  	Modtime int64
    64  }
    65  
    66  type Rusage struct {
    67  	Utime    Timeval
    68  	Stime    Timeval
    69  	Maxrss   int64
    70  	Ixrss    int64
    71  	Idrss    int64
    72  	Isrss    int64
    73  	Minflt   int64
    74  	Majflt   int64
    75  	Nswap    int64
    76  	Inblock  int64
    77  	Oublock  int64
    78  	Msgsnd   int64
    79  	Msgrcv   int64
    80  	Nsignals int64
    81  	Nvcsw    int64
    82  	Nivcsw   int64
    83  }
    84  
    85  type Stat_t struct {
    86  	Dev     uint64
    87  	Ino     uint64
    88  	Mode    uint32
    89  	Nlink   uint32
    90  	Uid     uint32
    91  	Gid     uint32
    92  	Rdev    uint64
    93  	_       uint64
    94  	Size    int64
    95  	Blksize int32
    96  	_       int32
    97  	Blocks  int64
    98  	Atim    Timespec
    99  	Mtim    Timespec
   100  	Ctim    Timespec
   101  	_       [2]int32
   102  }
   103  
   104  type Dirent struct {
   105  	Ino    uint64
   106  	Off    int64
   107  	Reclen uint16
   108  	Type   uint8
   109  	Name   [256]uint8
   110  	_      [5]byte
   111  }
   112  
   113  type Flock_t struct {
   114  	Type   int16
   115  	Whence int16
   116  	Start  int64
   117  	Len    int64
   118  	Pid    int32
   119  	_      [4]byte
   120  }
   121  
   122  type DmNameList struct {
   123  	Dev  uint64
   124  	Next uint32
   125  	Name [0]byte
   126  	_    [4]byte
   127  }
   128  
   129  const (
   130  	FADV_DONTNEED = 0x4
   131  	FADV_NOREUSE  = 0x5
   132  )
   133  
   134  type RawSockaddrNFCLLCP struct {
   135  	Sa_family        uint16
   136  	Dev_idx          uint32
   137  	Target_idx       uint32
   138  	Nfc_protocol     uint32
   139  	Dsap             uint8
   140  	Ssap             uint8
   141  	Service_name     [63]uint8
   142  	Service_name_len uint64
   143  }
   144  
   145  type RawSockaddr struct {
   146  	Family uint16
   147  	Data   [14]uint8
   148  }
   149  
   150  type RawSockaddrAny struct {
   151  	Addr RawSockaddr
   152  	Pad  [96]uint8
   153  }
   154  
   155  type Iovec struct {
   156  	Base *byte
   157  	Len  uint64
   158  }
   159  
   160  type Msghdr struct {
   161  	Name       *byte
   162  	Namelen    uint32
   163  	Iov        *Iovec
   164  	Iovlen     uint64
   165  	Control    *byte
   166  	Controllen uint64
   167  	Flags      int32
   168  	_          [4]byte
   169  }
   170  
   171  type Cmsghdr struct {
   172  	Len   uint64
   173  	Level int32
   174  	Type  int32
   175  }
   176  
   177  type ifreq struct {
   178  	Ifrn [16]byte
   179  	Ifru [24]byte
   180  }
   181  
   182  const (
   183  	SizeofSockaddrNFCLLCP = 0x60
   184  	SizeofIovec           = 0x10
   185  	SizeofMsghdr          = 0x38
   186  	SizeofCmsghdr         = 0x10
   187  )
   188  
   189  const (
   190  	SizeofSockFprog = 0x10
   191  )
   192  
   193  type PtraceRegs struct {
   194  	Pc  uint64
   195  	Ra  uint64
   196  	Sp  uint64
   197  	Gp  uint64
   198  	Tp  uint64
   199  	T0  uint64
   200  	T1  uint64
   201  	T2  uint64
   202  	S0  uint64
   203  	S1  uint64
   204  	A0  uint64
   205  	A1  uint64
   206  	A2  uint64
   207  	A3  uint64
   208  	A4  uint64
   209  	A5  uint64
   210  	A6  uint64
   211  	A7  uint64
   212  	S2  uint64
   213  	S3  uint64
   214  	S4  uint64
   215  	S5  uint64
   216  	S6  uint64
   217  	S7  uint64
   218  	S8  uint64
   219  	S9  uint64
   220  	S10 uint64
   221  	S11 uint64
   222  	T3  uint64
   223  	T4  uint64
   224  	T5  uint64
   225  	T6  uint64
   226  }
   227  
   228  type FdSet struct {
   229  	Bits [16]int64
   230  }
   231  
   232  type Sysinfo_t struct {
   233  	Uptime    int64
   234  	Loads     [3]uint64
   235  	Totalram  uint64
   236  	Freeram   uint64
   237  	Sharedram uint64
   238  	Bufferram uint64
   239  	Totalswap uint64
   240  	Freeswap  uint64
   241  	Procs     uint16
   242  	Pad       uint16
   243  	Totalhigh uint64
   244  	Freehigh  uint64
   245  	Unit      uint32
   246  	_         [0]uint8
   247  	_         [4]byte
   248  }
   249  
   250  type Ustat_t struct {
   251  	Tfree  int32
   252  	Tinode uint64
   253  	Fname  [6]uint8
   254  	Fpack  [6]uint8
   255  	_      [4]byte
   256  }
   257  
   258  type EpollEvent struct {
   259  	Events uint32
   260  	_      int32
   261  	Fd     int32
   262  	Pad    int32
   263  }
   264  
   265  const (
   266  	OPEN_TREE_CLOEXEC = 0x80000
   267  )
   268  
   269  const (
   270  	POLLRDHUP = 0x2000
   271  )
   272  
   273  type Sigset_t struct {
   274  	Val [16]uint64
   275  }
   276  
   277  const _C__NSIG = 0x41
   278  
   279  const (
   280  	SIG_BLOCK   = 0x0
   281  	SIG_UNBLOCK = 0x1
   282  	SIG_SETMASK = 0x2
   283  )
   284  
   285  type Siginfo struct {
   286  	Signo int32
   287  	Errno int32
   288  	Code  int32
   289  	_     int32
   290  	_     [112]byte
   291  }
   292  
   293  type Termios struct {
   294  	Iflag  uint32
   295  	Oflag  uint32
   296  	Cflag  uint32
   297  	Lflag  uint32
   298  	Line   uint8
   299  	Cc     [19]uint8
   300  	Ispeed uint32
   301  	Ospeed uint32
   302  }
   303  
   304  type Taskstats struct {
   305  	Version                   uint16
   306  	Ac_exitcode               uint32
   307  	Ac_flag                   uint8
   308  	Ac_nice                   uint8
   309  	Cpu_count                 uint64
   310  	Cpu_delay_total           uint64
   311  	Blkio_count               uint64
   312  	Blkio_delay_total         uint64
   313  	Swapin_count              uint64
   314  	Swapin_delay_total        uint64
   315  	Cpu_run_real_total        uint64
   316  	Cpu_run_virtual_total     uint64
   317  	Ac_comm                   [32]uint8
   318  	Ac_sched                  uint8
   319  	Ac_pad                    [3]uint8
   320  	_                         [4]byte
   321  	Ac_uid                    uint32
   322  	Ac_gid                    uint32
   323  	Ac_pid                    uint32
   324  	Ac_ppid                   uint32
   325  	Ac_btime                  uint32
   326  	Ac_etime                  uint64
   327  	Ac_utime                  uint64
   328  	Ac_stime                  uint64
   329  	Ac_minflt                 uint64
   330  	Ac_majflt                 uint64
   331  	Coremem                   uint64
   332  	Virtmem                   uint64
   333  	Hiwater_rss               uint64
   334  	Hiwater_vm                uint64
   335  	Read_char                 uint64
   336  	Write_char                uint64
   337  	Read_syscalls             uint64
   338  	Write_syscalls            uint64
   339  	Read_bytes                uint64
   340  	Write_bytes               uint64
   341  	Cancelled_write_bytes     uint64
   342  	Nvcsw                     uint64
   343  	Nivcsw                    uint64
   344  	Ac_utimescaled            uint64
   345  	Ac_stimescaled            uint64
   346  	Cpu_scaled_run_real_total uint64
   347  	Freepages_count           uint64
   348  	Freepages_delay_total     uint64
   349  	Thrashing_count           uint64
   350  	Thrashing_delay_total     uint64
   351  	Ac_btime64                uint64
   352  	Compact_count             uint64
   353  	Compact_delay_total       uint64
   354  	Ac_tgid                   uint32
   355  	Ac_tgetime                uint64
   356  	Ac_exe_dev                uint64
   357  	Ac_exe_inode              uint64
   358  	Wpcopy_count              uint64
   359  	Wpcopy_delay_total        uint64
   360  }
   361  
   362  type cpuMask uint64
   363  
   364  const (
   365  	_NCPUBITS = 0x40
   366  )
   367  
   368  const (
   369  	CBitFieldMaskBit0  = 0x1
   370  	CBitFieldMaskBit1  = 0x2
   371  	CBitFieldMaskBit2  = 0x4
   372  	CBitFieldMaskBit3  = 0x8
   373  	CBitFieldMaskBit4  = 0x10
   374  	CBitFieldMaskBit5  = 0x20
   375  	CBitFieldMaskBit6  = 0x40
   376  	CBitFieldMaskBit7  = 0x80
   377  	CBitFieldMaskBit8  = 0x100
   378  	CBitFieldMaskBit9  = 0x200
   379  	CBitFieldMaskBit10 = 0x400
   380  	CBitFieldMaskBit11 = 0x800
   381  	CBitFieldMaskBit12 = 0x1000
   382  	CBitFieldMaskBit13 = 0x2000
   383  	CBitFieldMaskBit14 = 0x4000
   384  	CBitFieldMaskBit15 = 0x8000
   385  	CBitFieldMaskBit16 = 0x10000
   386  	CBitFieldMaskBit17 = 0x20000
   387  	CBitFieldMaskBit18 = 0x40000
   388  	CBitFieldMaskBit19 = 0x80000
   389  	CBitFieldMaskBit20 = 0x100000
   390  	CBitFieldMaskBit21 = 0x200000
   391  	CBitFieldMaskBit22 = 0x400000
   392  	CBitFieldMaskBit23 = 0x800000
   393  	CBitFieldMaskBit24 = 0x1000000
   394  	CBitFieldMaskBit25 = 0x2000000
   395  	CBitFieldMaskBit26 = 0x4000000
   396  	CBitFieldMaskBit27 = 0x8000000
   397  	CBitFieldMaskBit28 = 0x10000000
   398  	CBitFieldMaskBit29 = 0x20000000
   399  	CBitFieldMaskBit30 = 0x40000000
   400  	CBitFieldMaskBit31 = 0x80000000
   401  	CBitFieldMaskBit32 = 0x100000000
   402  	CBitFieldMaskBit33 = 0x200000000
   403  	CBitFieldMaskBit34 = 0x400000000
   404  	CBitFieldMaskBit35 = 0x800000000
   405  	CBitFieldMaskBit36 = 0x1000000000
   406  	CBitFieldMaskBit37 = 0x2000000000
   407  	CBitFieldMaskBit38 = 0x4000000000
   408  	CBitFieldMaskBit39 = 0x8000000000
   409  	CBitFieldMaskBit40 = 0x10000000000
   410  	CBitFieldMaskBit41 = 0x20000000000
   411  	CBitFieldMaskBit42 = 0x40000000000
   412  	CBitFieldMaskBit43 = 0x80000000000
   413  	CBitFieldMaskBit44 = 0x100000000000
   414  	CBitFieldMaskBit45 = 0x200000000000
   415  	CBitFieldMaskBit46 = 0x400000000000
   416  	CBitFieldMaskBit47 = 0x800000000000
   417  	CBitFieldMaskBit48 = 0x1000000000000
   418  	CBitFieldMaskBit49 = 0x2000000000000
   419  	CBitFieldMaskBit50 = 0x4000000000000
   420  	CBitFieldMaskBit51 = 0x8000000000000
   421  	CBitFieldMaskBit52 = 0x10000000000000
   422  	CBitFieldMaskBit53 = 0x20000000000000
   423  	CBitFieldMaskBit54 = 0x40000000000000
   424  	CBitFieldMaskBit55 = 0x80000000000000
   425  	CBitFieldMaskBit56 = 0x100000000000000
   426  	CBitFieldMaskBit57 = 0x200000000000000
   427  	CBitFieldMaskBit58 = 0x400000000000000
   428  	CBitFieldMaskBit59 = 0x800000000000000
   429  	CBitFieldMaskBit60 = 0x1000000000000000
   430  	CBitFieldMaskBit61 = 0x2000000000000000
   431  	CBitFieldMaskBit62 = 0x4000000000000000
   432  	CBitFieldMaskBit63 = 0x8000000000000000
   433  )
   434  
   435  type SockaddrStorage struct {
   436  	Family uint16
   437  	Data   [118]byte
   438  	_      uint64
   439  }
   440  
   441  type HDGeometry struct {
   442  	Heads     uint8
   443  	Sectors   uint8
   444  	Cylinders uint16
   445  	Start     uint64
   446  }
   447  
   448  type Statfs_t struct {
   449  	Type    int64
   450  	Bsize   int64
   451  	Blocks  uint64
   452  	Bfree   uint64
   453  	Bavail  uint64
   454  	Files   uint64
   455  	Ffree   uint64
   456  	Fsid    Fsid
   457  	Namelen int64
   458  	Frsize  int64
   459  	Flags   int64
   460  	Spare   [4]int64
   461  }
   462  
   463  type TpacketHdr struct {
   464  	Status  uint64
   465  	Len     uint32
   466  	Snaplen uint32
   467  	Mac     uint16
   468  	Net     uint16
   469  	Sec     uint32
   470  	Usec    uint32
   471  	_       [4]byte
   472  }
   473  
   474  const (
   475  	SizeofTpacketHdr = 0x20
   476  )
   477  
   478  type RTCPLLInfo struct {
   479  	Ctrl    int32
   480  	Value   int32
   481  	Max     int32
   482  	Min     int32
   483  	Posmult int32
   484  	Negmult int32
   485  	Clock   int64
   486  }
   487  
   488  type BlkpgPartition struct {
   489  	Start   int64
   490  	Length  int64
   491  	Pno     int32
   492  	Devname [64]uint8
   493  	Volname [64]uint8
   494  	_       [4]byte
   495  }
   496  
   497  const (
   498  	BLKPG = 0x1269
   499  )
   500  
   501  type XDPUmemReg struct {
   502  	Addr     uint64
   503  	Len      uint64
   504  	Size     uint32
   505  	Headroom uint32
   506  	Flags    uint32
   507  	_        [4]byte
   508  }
   509  
   510  type CryptoUserAlg struct {
   511  	Name        [64]uint8
   512  	Driver_name [64]uint8
   513  	Module_name [64]uint8
   514  	Type        uint32
   515  	Mask        uint32
   516  	Refcnt      uint32
   517  	Flags       uint32
   518  }
   519  
   520  type CryptoStatAEAD struct {
   521  	Type         [64]uint8
   522  	Encrypt_cnt  uint64
   523  	Encrypt_tlen uint64
   524  	Decrypt_cnt  uint64
   525  	Decrypt_tlen uint64
   526  	Err_cnt      uint64
   527  }
   528  
   529  type CryptoStatAKCipher struct {
   530  	Type         [64]uint8
   531  	Encrypt_cnt  uint64
   532  	Encrypt_tlen uint64
   533  	Decrypt_cnt  uint64
   534  	Decrypt_tlen uint64
   535  	Verify_cnt   uint64
   536  	Sign_cnt     uint64
   537  	Err_cnt      uint64
   538  }
   539  
   540  type CryptoStatCipher struct {
   541  	Type         [64]uint8
   542  	Encrypt_cnt  uint64
   543  	Encrypt_tlen uint64
   544  	Decrypt_cnt  uint64
   545  	Decrypt_tlen uint64
   546  	Err_cnt      uint64
   547  }
   548  
   549  type CryptoStatCompress struct {
   550  	Type            [64]uint8
   551  	Compress_cnt    uint64
   552  	Compress_tlen   uint64
   553  	Decompress_cnt  uint64
   554  	Decompress_tlen uint64
   555  	Err_cnt         uint64
   556  }
   557  
   558  type CryptoStatHash struct {
   559  	Type      [64]uint8
   560  	Hash_cnt  uint64
   561  	Hash_tlen uint64
   562  	Err_cnt   uint64
   563  }
   564  
   565  type CryptoStatKPP struct {
   566  	Type                      [64]uint8
   567  	Setsecret_cnt             uint64
   568  	Generate_public_key_cnt   uint64
   569  	Compute_shared_secret_cnt uint64
   570  	Err_cnt                   uint64
   571  }
   572  
   573  type CryptoStatRNG struct {
   574  	Type          [64]uint8
   575  	Generate_cnt  uint64
   576  	Generate_tlen uint64
   577  	Seed_cnt      uint64
   578  	Err_cnt       uint64
   579  }
   580  
   581  type CryptoStatLarval struct {
   582  	Type [64]uint8
   583  }
   584  
   585  type CryptoReportLarval struct {
   586  	Type [64]uint8
   587  }
   588  
   589  type CryptoReportHash struct {
   590  	Type       [64]uint8
   591  	Blocksize  uint32
   592  	Digestsize uint32
   593  }
   594  
   595  type CryptoReportCipher struct {
   596  	Type        [64]uint8
   597  	Blocksize   uint32
   598  	Min_keysize uint32
   599  	Max_keysize uint32
   600  }
   601  
   602  type CryptoReportBlkCipher struct {
   603  	Type        [64]uint8
   604  	Geniv       [64]uint8
   605  	Blocksize   uint32
   606  	Min_keysize uint32
   607  	Max_keysize uint32
   608  	Ivsize      uint32
   609  }
   610  
   611  type CryptoReportAEAD struct {
   612  	Type        [64]uint8
   613  	Geniv       [64]uint8
   614  	Blocksize   uint32
   615  	Maxauthsize uint32
   616  	Ivsize      uint32
   617  }
   618  
   619  type CryptoReportComp struct {
   620  	Type [64]uint8
   621  }
   622  
   623  type CryptoReportRNG struct {
   624  	Type     [64]uint8
   625  	Seedsize uint32
   626  }
   627  
   628  type CryptoReportAKCipher struct {
   629  	Type [64]uint8
   630  }
   631  
   632  type CryptoReportKPP struct {
   633  	Type [64]uint8
   634  }
   635  
   636  type CryptoReportAcomp struct {
   637  	Type [64]uint8
   638  }
   639  
   640  type LoopInfo struct {
   641  	Number           int32
   642  	Device           uint32
   643  	Inode            uint64
   644  	Rdevice          uint32
   645  	Offset           int32
   646  	Encrypt_type     int32
   647  	Encrypt_key_size int32
   648  	Flags            int32
   649  	Name             [64]uint8
   650  	Encrypt_key      [32]uint8
   651  	Init             [2]uint64
   652  	Reserved         [4]uint8
   653  	_                [4]byte
   654  }
   655  
   656  type TIPCSubscr struct {
   657  	Seq     TIPCServiceRange
   658  	Timeout uint32
   659  	Filter  uint32
   660  	Handle  [8]uint8
   661  }
   662  
   663  type TIPCSIOCLNReq struct {
   664  	Peer     uint32
   665  	Id       uint32
   666  	Linkname [68]uint8
   667  }
   668  
   669  type TIPCSIOCNodeIDReq struct {
   670  	Peer uint32
   671  	Id   [16]uint8
   672  }
   673  
   674  type PPSKInfo struct {
   675  	Assert_sequence uint32
   676  	Clear_sequence  uint32
   677  	Assert_tu       PPSKTime
   678  	Clear_tu        PPSKTime
   679  	Current_mode    int32
   680  	_               [4]byte
   681  }
   682  
   683  const (
   684  	PPS_GETPARAMS = 0x800870a1
   685  	PPS_SETPARAMS = 0x400870a2
   686  	PPS_GETCAP    = 0x800870a3
   687  	PPS_FETCH     = 0xc00870a4
   688  )
   689  
   690  const (
   691  	PIDFD_NONBLOCK = 0x800
   692  )
   693  
   694  type SysvIpcPerm struct {
   695  	Key  int32
   696  	Uid  uint32
   697  	Gid  uint32
   698  	Cuid uint32
   699  	Cgid uint32
   700  	Mode uint32
   701  	_    [0]uint8
   702  	Seq  uint16
   703  	_    uint16
   704  	_    uint64
   705  	_    uint64
   706  }
   707  type SysvShmDesc struct {
   708  	Perm   SysvIpcPerm
   709  	Segsz  uint64
   710  	Atime  int64
   711  	Dtime  int64
   712  	Ctime  int64
   713  	Cpid   int32
   714  	Lpid   int32
   715  	Nattch uint64
   716  	_      uint64
   717  	_      uint64
   718  }