github.com/Kalvelign/golang-windows-sys-lib@v0.0.0-20221121121202-63da651435e1/unix/ztypes_linux_loong64.go (about)

     1  // cgo -godefs -objdir=/tmp/loong64/cgo -- -Wall -Werror -static -I/tmp/loong64/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 loong64 && linux
     5  // +build loong64,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]int8
   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]int8
   148  }
   149  
   150  type RawSockaddrAny struct {
   151  	Addr RawSockaddr
   152  	Pad  [96]int8
   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  	Regs     [32]uint64
   195  	Orig_a0  uint64
   196  	Era      uint64
   197  	Badv     uint64
   198  	Reserved [10]uint64
   199  }
   200  
   201  type FdSet struct {
   202  	Bits [16]int64
   203  }
   204  
   205  type Sysinfo_t struct {
   206  	Uptime    int64
   207  	Loads     [3]uint64
   208  	Totalram  uint64
   209  	Freeram   uint64
   210  	Sharedram uint64
   211  	Bufferram uint64
   212  	Totalswap uint64
   213  	Freeswap  uint64
   214  	Procs     uint16
   215  	Pad       uint16
   216  	Totalhigh uint64
   217  	Freehigh  uint64
   218  	Unit      uint32
   219  	_         [0]int8
   220  	_         [4]byte
   221  }
   222  
   223  type Ustat_t struct {
   224  	Tfree  int32
   225  	Tinode uint64
   226  	Fname  [6]int8
   227  	Fpack  [6]int8
   228  	_      [4]byte
   229  }
   230  
   231  type EpollEvent struct {
   232  	Events uint32
   233  	_      int32
   234  	Fd     int32
   235  	Pad    int32
   236  }
   237  
   238  const (
   239  	OPEN_TREE_CLOEXEC = 0x80000
   240  )
   241  
   242  const (
   243  	POLLRDHUP = 0x2000
   244  )
   245  
   246  type Sigset_t struct {
   247  	Val [16]uint64
   248  }
   249  
   250  const _C__NSIG = 0x41
   251  
   252  const (
   253  	SIG_BLOCK   = 0x0
   254  	SIG_UNBLOCK = 0x1
   255  	SIG_SETMASK = 0x2
   256  )
   257  
   258  type Siginfo struct {
   259  	Signo int32
   260  	Errno int32
   261  	Code  int32
   262  	_     int32
   263  	_     [112]byte
   264  }
   265  
   266  type Termios struct {
   267  	Iflag  uint32
   268  	Oflag  uint32
   269  	Cflag  uint32
   270  	Lflag  uint32
   271  	Line   uint8
   272  	Cc     [19]uint8
   273  	Ispeed uint32
   274  	Ospeed uint32
   275  }
   276  
   277  type Taskstats struct {
   278  	Version                   uint16
   279  	Ac_exitcode               uint32
   280  	Ac_flag                   uint8
   281  	Ac_nice                   uint8
   282  	Cpu_count                 uint64
   283  	Cpu_delay_total           uint64
   284  	Blkio_count               uint64
   285  	Blkio_delay_total         uint64
   286  	Swapin_count              uint64
   287  	Swapin_delay_total        uint64
   288  	Cpu_run_real_total        uint64
   289  	Cpu_run_virtual_total     uint64
   290  	Ac_comm                   [32]int8
   291  	Ac_sched                  uint8
   292  	Ac_pad                    [3]uint8
   293  	_                         [4]byte
   294  	Ac_uid                    uint32
   295  	Ac_gid                    uint32
   296  	Ac_pid                    uint32
   297  	Ac_ppid                   uint32
   298  	Ac_btime                  uint32
   299  	Ac_etime                  uint64
   300  	Ac_utime                  uint64
   301  	Ac_stime                  uint64
   302  	Ac_minflt                 uint64
   303  	Ac_majflt                 uint64
   304  	Coremem                   uint64
   305  	Virtmem                   uint64
   306  	Hiwater_rss               uint64
   307  	Hiwater_vm                uint64
   308  	Read_char                 uint64
   309  	Write_char                uint64
   310  	Read_syscalls             uint64
   311  	Write_syscalls            uint64
   312  	Read_bytes                uint64
   313  	Write_bytes               uint64
   314  	Cancelled_write_bytes     uint64
   315  	Nvcsw                     uint64
   316  	Nivcsw                    uint64
   317  	Ac_utimescaled            uint64
   318  	Ac_stimescaled            uint64
   319  	Cpu_scaled_run_real_total uint64
   320  	Freepages_count           uint64
   321  	Freepages_delay_total     uint64
   322  	Thrashing_count           uint64
   323  	Thrashing_delay_total     uint64
   324  	Ac_btime64                uint64
   325  	Compact_count             uint64
   326  	Compact_delay_total       uint64
   327  	Ac_tgid                   uint32
   328  	Ac_tgetime                uint64
   329  	Ac_exe_dev                uint64
   330  	Ac_exe_inode              uint64
   331  	Wpcopy_count              uint64
   332  	Wpcopy_delay_total        uint64
   333  }
   334  
   335  type cpuMask uint64
   336  
   337  const (
   338  	_NCPUBITS = 0x40
   339  )
   340  
   341  const (
   342  	CBitFieldMaskBit0  = 0x1
   343  	CBitFieldMaskBit1  = 0x2
   344  	CBitFieldMaskBit2  = 0x4
   345  	CBitFieldMaskBit3  = 0x8
   346  	CBitFieldMaskBit4  = 0x10
   347  	CBitFieldMaskBit5  = 0x20
   348  	CBitFieldMaskBit6  = 0x40
   349  	CBitFieldMaskBit7  = 0x80
   350  	CBitFieldMaskBit8  = 0x100
   351  	CBitFieldMaskBit9  = 0x200
   352  	CBitFieldMaskBit10 = 0x400
   353  	CBitFieldMaskBit11 = 0x800
   354  	CBitFieldMaskBit12 = 0x1000
   355  	CBitFieldMaskBit13 = 0x2000
   356  	CBitFieldMaskBit14 = 0x4000
   357  	CBitFieldMaskBit15 = 0x8000
   358  	CBitFieldMaskBit16 = 0x10000
   359  	CBitFieldMaskBit17 = 0x20000
   360  	CBitFieldMaskBit18 = 0x40000
   361  	CBitFieldMaskBit19 = 0x80000
   362  	CBitFieldMaskBit20 = 0x100000
   363  	CBitFieldMaskBit21 = 0x200000
   364  	CBitFieldMaskBit22 = 0x400000
   365  	CBitFieldMaskBit23 = 0x800000
   366  	CBitFieldMaskBit24 = 0x1000000
   367  	CBitFieldMaskBit25 = 0x2000000
   368  	CBitFieldMaskBit26 = 0x4000000
   369  	CBitFieldMaskBit27 = 0x8000000
   370  	CBitFieldMaskBit28 = 0x10000000
   371  	CBitFieldMaskBit29 = 0x20000000
   372  	CBitFieldMaskBit30 = 0x40000000
   373  	CBitFieldMaskBit31 = 0x80000000
   374  	CBitFieldMaskBit32 = 0x100000000
   375  	CBitFieldMaskBit33 = 0x200000000
   376  	CBitFieldMaskBit34 = 0x400000000
   377  	CBitFieldMaskBit35 = 0x800000000
   378  	CBitFieldMaskBit36 = 0x1000000000
   379  	CBitFieldMaskBit37 = 0x2000000000
   380  	CBitFieldMaskBit38 = 0x4000000000
   381  	CBitFieldMaskBit39 = 0x8000000000
   382  	CBitFieldMaskBit40 = 0x10000000000
   383  	CBitFieldMaskBit41 = 0x20000000000
   384  	CBitFieldMaskBit42 = 0x40000000000
   385  	CBitFieldMaskBit43 = 0x80000000000
   386  	CBitFieldMaskBit44 = 0x100000000000
   387  	CBitFieldMaskBit45 = 0x200000000000
   388  	CBitFieldMaskBit46 = 0x400000000000
   389  	CBitFieldMaskBit47 = 0x800000000000
   390  	CBitFieldMaskBit48 = 0x1000000000000
   391  	CBitFieldMaskBit49 = 0x2000000000000
   392  	CBitFieldMaskBit50 = 0x4000000000000
   393  	CBitFieldMaskBit51 = 0x8000000000000
   394  	CBitFieldMaskBit52 = 0x10000000000000
   395  	CBitFieldMaskBit53 = 0x20000000000000
   396  	CBitFieldMaskBit54 = 0x40000000000000
   397  	CBitFieldMaskBit55 = 0x80000000000000
   398  	CBitFieldMaskBit56 = 0x100000000000000
   399  	CBitFieldMaskBit57 = 0x200000000000000
   400  	CBitFieldMaskBit58 = 0x400000000000000
   401  	CBitFieldMaskBit59 = 0x800000000000000
   402  	CBitFieldMaskBit60 = 0x1000000000000000
   403  	CBitFieldMaskBit61 = 0x2000000000000000
   404  	CBitFieldMaskBit62 = 0x4000000000000000
   405  	CBitFieldMaskBit63 = 0x8000000000000000
   406  )
   407  
   408  type SockaddrStorage struct {
   409  	Family uint16
   410  	_      [118]int8
   411  	_      uint64
   412  }
   413  
   414  type HDGeometry struct {
   415  	Heads     uint8
   416  	Sectors   uint8
   417  	Cylinders uint16
   418  	Start     uint64
   419  }
   420  
   421  type Statfs_t struct {
   422  	Type    int64
   423  	Bsize   int64
   424  	Blocks  uint64
   425  	Bfree   uint64
   426  	Bavail  uint64
   427  	Files   uint64
   428  	Ffree   uint64
   429  	Fsid    Fsid
   430  	Namelen int64
   431  	Frsize  int64
   432  	Flags   int64
   433  	Spare   [4]int64
   434  }
   435  
   436  type TpacketHdr struct {
   437  	Status  uint64
   438  	Len     uint32
   439  	Snaplen uint32
   440  	Mac     uint16
   441  	Net     uint16
   442  	Sec     uint32
   443  	Usec    uint32
   444  	_       [4]byte
   445  }
   446  
   447  const (
   448  	SizeofTpacketHdr = 0x20
   449  )
   450  
   451  type RTCPLLInfo struct {
   452  	Ctrl    int32
   453  	Value   int32
   454  	Max     int32
   455  	Min     int32
   456  	Posmult int32
   457  	Negmult int32
   458  	Clock   int64
   459  }
   460  
   461  type BlkpgPartition struct {
   462  	Start   int64
   463  	Length  int64
   464  	Pno     int32
   465  	Devname [64]uint8
   466  	Volname [64]uint8
   467  	_       [4]byte
   468  }
   469  
   470  const (
   471  	BLKPG = 0x1269
   472  )
   473  
   474  type XDPUmemReg struct {
   475  	Addr     uint64
   476  	Len      uint64
   477  	Size     uint32
   478  	Headroom uint32
   479  	Flags    uint32
   480  	_        [4]byte
   481  }
   482  
   483  type CryptoUserAlg struct {
   484  	Name        [64]int8
   485  	Driver_name [64]int8
   486  	Module_name [64]int8
   487  	Type        uint32
   488  	Mask        uint32
   489  	Refcnt      uint32
   490  	Flags       uint32
   491  }
   492  
   493  type CryptoStatAEAD struct {
   494  	Type         [64]int8
   495  	Encrypt_cnt  uint64
   496  	Encrypt_tlen uint64
   497  	Decrypt_cnt  uint64
   498  	Decrypt_tlen uint64
   499  	Err_cnt      uint64
   500  }
   501  
   502  type CryptoStatAKCipher struct {
   503  	Type         [64]int8
   504  	Encrypt_cnt  uint64
   505  	Encrypt_tlen uint64
   506  	Decrypt_cnt  uint64
   507  	Decrypt_tlen uint64
   508  	Verify_cnt   uint64
   509  	Sign_cnt     uint64
   510  	Err_cnt      uint64
   511  }
   512  
   513  type CryptoStatCipher struct {
   514  	Type         [64]int8
   515  	Encrypt_cnt  uint64
   516  	Encrypt_tlen uint64
   517  	Decrypt_cnt  uint64
   518  	Decrypt_tlen uint64
   519  	Err_cnt      uint64
   520  }
   521  
   522  type CryptoStatCompress struct {
   523  	Type            [64]int8
   524  	Compress_cnt    uint64
   525  	Compress_tlen   uint64
   526  	Decompress_cnt  uint64
   527  	Decompress_tlen uint64
   528  	Err_cnt         uint64
   529  }
   530  
   531  type CryptoStatHash struct {
   532  	Type      [64]int8
   533  	Hash_cnt  uint64
   534  	Hash_tlen uint64
   535  	Err_cnt   uint64
   536  }
   537  
   538  type CryptoStatKPP struct {
   539  	Type                      [64]int8
   540  	Setsecret_cnt             uint64
   541  	Generate_public_key_cnt   uint64
   542  	Compute_shared_secret_cnt uint64
   543  	Err_cnt                   uint64
   544  }
   545  
   546  type CryptoStatRNG struct {
   547  	Type          [64]int8
   548  	Generate_cnt  uint64
   549  	Generate_tlen uint64
   550  	Seed_cnt      uint64
   551  	Err_cnt       uint64
   552  }
   553  
   554  type CryptoStatLarval struct {
   555  	Type [64]int8
   556  }
   557  
   558  type CryptoReportLarval struct {
   559  	Type [64]int8
   560  }
   561  
   562  type CryptoReportHash struct {
   563  	Type       [64]int8
   564  	Blocksize  uint32
   565  	Digestsize uint32
   566  }
   567  
   568  type CryptoReportCipher struct {
   569  	Type        [64]int8
   570  	Blocksize   uint32
   571  	Min_keysize uint32
   572  	Max_keysize uint32
   573  }
   574  
   575  type CryptoReportBlkCipher struct {
   576  	Type        [64]int8
   577  	Geniv       [64]int8
   578  	Blocksize   uint32
   579  	Min_keysize uint32
   580  	Max_keysize uint32
   581  	Ivsize      uint32
   582  }
   583  
   584  type CryptoReportAEAD struct {
   585  	Type        [64]int8
   586  	Geniv       [64]int8
   587  	Blocksize   uint32
   588  	Maxauthsize uint32
   589  	Ivsize      uint32
   590  }
   591  
   592  type CryptoReportComp struct {
   593  	Type [64]int8
   594  }
   595  
   596  type CryptoReportRNG struct {
   597  	Type     [64]int8
   598  	Seedsize uint32
   599  }
   600  
   601  type CryptoReportAKCipher struct {
   602  	Type [64]int8
   603  }
   604  
   605  type CryptoReportKPP struct {
   606  	Type [64]int8
   607  }
   608  
   609  type CryptoReportAcomp struct {
   610  	Type [64]int8
   611  }
   612  
   613  type LoopInfo struct {
   614  	Number           int32
   615  	Device           uint32
   616  	Inode            uint64
   617  	Rdevice          uint32
   618  	Offset           int32
   619  	Encrypt_type     int32
   620  	Encrypt_key_size int32
   621  	Flags            int32
   622  	Name             [64]int8
   623  	Encrypt_key      [32]uint8
   624  	Init             [2]uint64
   625  	Reserved         [4]int8
   626  	_                [4]byte
   627  }
   628  
   629  type TIPCSubscr struct {
   630  	Seq     TIPCServiceRange
   631  	Timeout uint32
   632  	Filter  uint32
   633  	Handle  [8]int8
   634  }
   635  
   636  type TIPCSIOCLNReq struct {
   637  	Peer     uint32
   638  	Id       uint32
   639  	Linkname [68]int8
   640  }
   641  
   642  type TIPCSIOCNodeIDReq struct {
   643  	Peer uint32
   644  	Id   [16]int8
   645  }
   646  
   647  type PPSKInfo struct {
   648  	Assert_sequence uint32
   649  	Clear_sequence  uint32
   650  	Assert_tu       PPSKTime
   651  	Clear_tu        PPSKTime
   652  	Current_mode    int32
   653  	_               [4]byte
   654  }
   655  
   656  const (
   657  	PPS_GETPARAMS = 0x800870a1
   658  	PPS_SETPARAMS = 0x400870a2
   659  	PPS_GETCAP    = 0x800870a3
   660  	PPS_FETCH     = 0xc00870a4
   661  )
   662  
   663  const (
   664  	PIDFD_NONBLOCK = 0x800
   665  )
   666  
   667  type SysvIpcPerm struct {
   668  	Key  int32
   669  	Uid  uint32
   670  	Gid  uint32
   671  	Cuid uint32
   672  	Cgid uint32
   673  	Mode uint32
   674  	_    [0]uint8
   675  	Seq  uint16
   676  	_    uint16
   677  	_    uint64
   678  	_    uint64
   679  }
   680  type SysvShmDesc struct {
   681  	Perm   SysvIpcPerm
   682  	Segsz  uint64
   683  	Atime  int64
   684  	Dtime  int64
   685  	Ctime  int64
   686  	Cpid   int32
   687  	Lpid   int32
   688  	Nattch uint64
   689  	_      uint64
   690  	_      uint64
   691  }