github.com/tristanisham/sys@v0.0.0-20240326010300-a16cbabb7555/unix/ztypes_linux_386.go (about)

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