golang.org/x/sys@v0.20.1-0.20240517151509-673e0f94c16d/unix/ztypes_linux_mips64.go (about)

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