github.com/neonyo/sys@v0.0.0-20230720094341-b1ee14be3ce8/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  // +build 386,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     uint64
    87  	_       uint16
    88  	_       uint32
    89  	Mode    uint32
    90  	Nlink   uint32
    91  	Uid     uint32
    92  	Gid     uint32
    93  	Rdev    uint64
    94  	_       uint16
    95  	Size    int64
    96  	Blksize int32
    97  	Blocks  int64
    98  	Atim    Timespec
    99  	Mtim    Timespec
   100  	Ctim    Timespec
   101  	Ino     uint64
   102  }
   103  
   104  type Dirent struct {
   105  	Ino    uint64
   106  	Off    int64
   107  	Reclen uint16
   108  	Type   uint8
   109  	Name   [256]int8
   110  	_      [1]byte
   111  }
   112  
   113  type Flock_t struct {
   114  	Type   int16
   115  	Whence int16
   116  	Start  int64
   117  	Len    int64
   118  	Pid    int32
   119  }
   120  
   121  type DmNameList struct {
   122  	Dev  uint64
   123  	Next uint32
   124  }
   125  
   126  const (
   127  	FADV_DONTNEED = 0x4
   128  	FADV_NOREUSE  = 0x5
   129  )
   130  
   131  type RawSockaddrNFCLLCP struct {
   132  	Sa_family        uint16
   133  	Dev_idx          uint32
   134  	Target_idx       uint32
   135  	Nfc_protocol     uint32
   136  	Dsap             uint8
   137  	Ssap             uint8
   138  	Service_name     [63]uint8
   139  	Service_name_len uint32
   140  }
   141  
   142  type RawSockaddr struct {
   143  	Family uint16
   144  	Data   [14]int8
   145  }
   146  
   147  type RawSockaddrAny struct {
   148  	Addr RawSockaddr
   149  	Pad  [96]int8
   150  }
   151  
   152  type Iovec struct {
   153  	Base *byte
   154  	Len  uint32
   155  }
   156  
   157  type Msghdr struct {
   158  	Name       *byte
   159  	Namelen    uint32
   160  	Iov        *Iovec
   161  	Iovlen     uint32
   162  	Control    *byte
   163  	Controllen uint32
   164  	Flags      int32
   165  }
   166  
   167  type Cmsghdr struct {
   168  	Len   uint32
   169  	Level int32
   170  	Type  int32
   171  }
   172  
   173  type ifreq struct {
   174  	Ifrn [16]byte
   175  	Ifru [16]byte
   176  }
   177  
   178  const (
   179  	SizeofSockaddrNFCLLCP = 0x58
   180  	SizeofIovec           = 0x8
   181  	SizeofMsghdr          = 0x1c
   182  	SizeofCmsghdr         = 0xc
   183  )
   184  
   185  const (
   186  	SizeofSockFprog = 0x8
   187  )
   188  
   189  type PtraceRegs struct {
   190  	Ebx      int32
   191  	Ecx      int32
   192  	Edx      int32
   193  	Esi      int32
   194  	Edi      int32
   195  	Ebp      int32
   196  	Eax      int32
   197  	Xds      int32
   198  	Xes      int32
   199  	Xfs      int32
   200  	Xgs      int32
   201  	Orig_eax int32
   202  	Eip      int32
   203  	Xcs      int32
   204  	Eflags   int32
   205  	Esp      int32
   206  	Xss      int32
   207  }
   208  
   209  type FdSet struct {
   210  	Bits [32]int32
   211  }
   212  
   213  type Sysinfo_t struct {
   214  	Uptime    int32
   215  	Loads     [3]uint32
   216  	Totalram  uint32
   217  	Freeram   uint32
   218  	Sharedram uint32
   219  	Bufferram uint32
   220  	Totalswap uint32
   221  	Freeswap  uint32
   222  	Procs     uint16
   223  	Pad       uint16
   224  	Totalhigh uint32
   225  	Freehigh  uint32
   226  	Unit      uint32
   227  	_         [8]int8
   228  }
   229  
   230  type Ustat_t struct {
   231  	Tfree  int32
   232  	Tinode uint32
   233  	Fname  [6]int8
   234  	Fpack  [6]int8
   235  }
   236  
   237  type EpollEvent struct {
   238  	Events uint32
   239  	Fd     int32
   240  	Pad    int32
   241  }
   242  
   243  const (
   244  	OPEN_TREE_CLOEXEC = 0x80000
   245  )
   246  
   247  const (
   248  	POLLRDHUP = 0x2000
   249  )
   250  
   251  type Sigset_t struct {
   252  	Val [32]uint32
   253  }
   254  
   255  const _C__NSIG = 0x41
   256  
   257  const (
   258  	SIG_BLOCK   = 0x0
   259  	SIG_UNBLOCK = 0x1
   260  	SIG_SETMASK = 0x2
   261  )
   262  
   263  type Siginfo struct {
   264  	Signo int32
   265  	Errno int32
   266  	Code  int32
   267  	_     [116]byte
   268  }
   269  
   270  type Termios struct {
   271  	Iflag  uint32
   272  	Oflag  uint32
   273  	Cflag  uint32
   274  	Lflag  uint32
   275  	Line   uint8
   276  	Cc     [19]uint8
   277  	Ispeed uint32
   278  	Ospeed uint32
   279  }
   280  
   281  type Taskstats struct {
   282  	Version                   uint16
   283  	Ac_exitcode               uint32
   284  	Ac_flag                   uint8
   285  	Ac_nice                   uint8
   286  	_                         [4]byte
   287  	Cpu_count                 uint64
   288  	Cpu_delay_total           uint64
   289  	Blkio_count               uint64
   290  	Blkio_delay_total         uint64
   291  	Swapin_count              uint64
   292  	Swapin_delay_total        uint64
   293  	Cpu_run_real_total        uint64
   294  	Cpu_run_virtual_total     uint64
   295  	Ac_comm                   [32]int8
   296  	Ac_sched                  uint8
   297  	Ac_pad                    [3]uint8
   298  	_                         [4]byte
   299  	Ac_uid                    uint32
   300  	Ac_gid                    uint32
   301  	Ac_pid                    uint32
   302  	Ac_ppid                   uint32
   303  	Ac_btime                  uint32
   304  	_                         [4]byte
   305  	Ac_etime                  uint64
   306  	Ac_utime                  uint64
   307  	Ac_stime                  uint64
   308  	Ac_minflt                 uint64
   309  	Ac_majflt                 uint64
   310  	Coremem                   uint64
   311  	Virtmem                   uint64
   312  	Hiwater_rss               uint64
   313  	Hiwater_vm                uint64
   314  	Read_char                 uint64
   315  	Write_char                uint64
   316  	Read_syscalls             uint64
   317  	Write_syscalls            uint64
   318  	Read_bytes                uint64
   319  	Write_bytes               uint64
   320  	Cancelled_write_bytes     uint64
   321  	Nvcsw                     uint64
   322  	Nivcsw                    uint64
   323  	Ac_utimescaled            uint64
   324  	Ac_stimescaled            uint64
   325  	Cpu_scaled_run_real_total uint64
   326  	Freepages_count           uint64
   327  	Freepages_delay_total     uint64
   328  	Thrashing_count           uint64
   329  	Thrashing_delay_total     uint64
   330  	Ac_btime64                uint64
   331  	Compact_count             uint64
   332  	Compact_delay_total       uint64
   333  	Ac_tgid                   uint32
   334  	_                         [4]byte
   335  	Ac_tgetime                uint64
   336  	Ac_exe_dev                uint64
   337  	Ac_exe_inode              uint64
   338  	Wpcopy_count              uint64
   339  	Wpcopy_delay_total        uint64
   340  	Irq_count                 uint64
   341  	Irq_delay_total           uint64
   342  }
   343  
   344  type cpuMask uint32
   345  
   346  const (
   347  	_NCPUBITS = 0x20
   348  )
   349  
   350  const (
   351  	CBitFieldMaskBit0  = 0x1
   352  	CBitFieldMaskBit1  = 0x2
   353  	CBitFieldMaskBit2  = 0x4
   354  	CBitFieldMaskBit3  = 0x8
   355  	CBitFieldMaskBit4  = 0x10
   356  	CBitFieldMaskBit5  = 0x20
   357  	CBitFieldMaskBit6  = 0x40
   358  	CBitFieldMaskBit7  = 0x80
   359  	CBitFieldMaskBit8  = 0x100
   360  	CBitFieldMaskBit9  = 0x200
   361  	CBitFieldMaskBit10 = 0x400
   362  	CBitFieldMaskBit11 = 0x800
   363  	CBitFieldMaskBit12 = 0x1000
   364  	CBitFieldMaskBit13 = 0x2000
   365  	CBitFieldMaskBit14 = 0x4000
   366  	CBitFieldMaskBit15 = 0x8000
   367  	CBitFieldMaskBit16 = 0x10000
   368  	CBitFieldMaskBit17 = 0x20000
   369  	CBitFieldMaskBit18 = 0x40000
   370  	CBitFieldMaskBit19 = 0x80000
   371  	CBitFieldMaskBit20 = 0x100000
   372  	CBitFieldMaskBit21 = 0x200000
   373  	CBitFieldMaskBit22 = 0x400000
   374  	CBitFieldMaskBit23 = 0x800000
   375  	CBitFieldMaskBit24 = 0x1000000
   376  	CBitFieldMaskBit25 = 0x2000000
   377  	CBitFieldMaskBit26 = 0x4000000
   378  	CBitFieldMaskBit27 = 0x8000000
   379  	CBitFieldMaskBit28 = 0x10000000
   380  	CBitFieldMaskBit29 = 0x20000000
   381  	CBitFieldMaskBit30 = 0x40000000
   382  	CBitFieldMaskBit31 = 0x80000000
   383  	CBitFieldMaskBit32 = 0x100000000
   384  	CBitFieldMaskBit33 = 0x200000000
   385  	CBitFieldMaskBit34 = 0x400000000
   386  	CBitFieldMaskBit35 = 0x800000000
   387  	CBitFieldMaskBit36 = 0x1000000000
   388  	CBitFieldMaskBit37 = 0x2000000000
   389  	CBitFieldMaskBit38 = 0x4000000000
   390  	CBitFieldMaskBit39 = 0x8000000000
   391  	CBitFieldMaskBit40 = 0x10000000000
   392  	CBitFieldMaskBit41 = 0x20000000000
   393  	CBitFieldMaskBit42 = 0x40000000000
   394  	CBitFieldMaskBit43 = 0x80000000000
   395  	CBitFieldMaskBit44 = 0x100000000000
   396  	CBitFieldMaskBit45 = 0x200000000000
   397  	CBitFieldMaskBit46 = 0x400000000000
   398  	CBitFieldMaskBit47 = 0x800000000000
   399  	CBitFieldMaskBit48 = 0x1000000000000
   400  	CBitFieldMaskBit49 = 0x2000000000000
   401  	CBitFieldMaskBit50 = 0x4000000000000
   402  	CBitFieldMaskBit51 = 0x8000000000000
   403  	CBitFieldMaskBit52 = 0x10000000000000
   404  	CBitFieldMaskBit53 = 0x20000000000000
   405  	CBitFieldMaskBit54 = 0x40000000000000
   406  	CBitFieldMaskBit55 = 0x80000000000000
   407  	CBitFieldMaskBit56 = 0x100000000000000
   408  	CBitFieldMaskBit57 = 0x200000000000000
   409  	CBitFieldMaskBit58 = 0x400000000000000
   410  	CBitFieldMaskBit59 = 0x800000000000000
   411  	CBitFieldMaskBit60 = 0x1000000000000000
   412  	CBitFieldMaskBit61 = 0x2000000000000000
   413  	CBitFieldMaskBit62 = 0x4000000000000000
   414  	CBitFieldMaskBit63 = 0x8000000000000000
   415  )
   416  
   417  type SockaddrStorage struct {
   418  	Family uint16
   419  	Data   [122]byte
   420  	_      uint32
   421  }
   422  
   423  type HDGeometry struct {
   424  	Heads     uint8
   425  	Sectors   uint8
   426  	Cylinders uint16
   427  	Start     uint32
   428  }
   429  
   430  type Statfs_t struct {
   431  	Type    int32
   432  	Bsize   int32
   433  	Blocks  uint64
   434  	Bfree   uint64
   435  	Bavail  uint64
   436  	Files   uint64
   437  	Ffree   uint64
   438  	Fsid    Fsid
   439  	Namelen int32
   440  	Frsize  int32
   441  	Flags   int32
   442  	Spare   [4]int32
   443  }
   444  
   445  type TpacketHdr struct {
   446  	Status  uint32
   447  	Len     uint32
   448  	Snaplen uint32
   449  	Mac     uint16
   450  	Net     uint16
   451  	Sec     uint32
   452  	Usec    uint32
   453  }
   454  
   455  const (
   456  	SizeofTpacketHdr = 0x18
   457  )
   458  
   459  type RTCPLLInfo struct {
   460  	Ctrl    int32
   461  	Value   int32
   462  	Max     int32
   463  	Min     int32
   464  	Posmult int32
   465  	Negmult int32
   466  	Clock   int32
   467  }
   468  
   469  type BlkpgPartition struct {
   470  	Start   int64
   471  	Length  int64
   472  	Pno     int32
   473  	Devname [64]uint8
   474  	Volname [64]uint8
   475  }
   476  
   477  const (
   478  	BLKPG = 0x1269
   479  )
   480  
   481  type XDPUmemReg struct {
   482  	Addr     uint64
   483  	Len      uint64
   484  	Size     uint32
   485  	Headroom uint32
   486  	Flags    uint32
   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           uint16
   622  	Inode            uint32
   623  	Rdevice          uint16
   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  }
   659  
   660  const (
   661  	PPS_GETPARAMS = 0x800470a1
   662  	PPS_SETPARAMS = 0x400470a2
   663  	PPS_GETCAP    = 0x800470a3
   664  	PPS_FETCH     = 0xc00470a4
   665  )
   666  
   667  const (
   668  	PIDFD_NONBLOCK = 0x800
   669  )
   670  
   671  type SysvIpcPerm struct {
   672  	Key  int32
   673  	Uid  uint32
   674  	Gid  uint32
   675  	Cuid uint32
   676  	Cgid uint32
   677  	Mode uint16
   678  	_    [2]uint8
   679  	Seq  uint16
   680  	_    uint16
   681  	_    uint32
   682  	_    uint32
   683  }
   684  type SysvShmDesc struct {
   685  	Perm       SysvIpcPerm
   686  	Segsz      uint32
   687  	Atime      uint32
   688  	Atime_high uint32
   689  	Dtime      uint32
   690  	Dtime_high uint32
   691  	Ctime      uint32
   692  	Ctime_high uint32
   693  	Cpid       int32
   694  	Lpid       int32
   695  	Nattch     uint32
   696  	_          uint32
   697  	_          uint32
   698  }