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