github.com/neonyo/sys@v0.0.0-20230720094341-b1ee14be3ce8/unix/ztypes_linux_mips.go (about)

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