github.com/xingly-cn/shorturl-go@v0.0.0-20220110130535-e21de4659f74/pkg/mod/golang.org/x/sys@v0.0.0-20200323222414-85ca7c5b95cd/unix/ztypes_linux_386.go (about)

     1  // cgo -godefs -- -Wall -Werror -static -I/tmp/include -m32 linux/types.go | go run mkpost.go
     2  // Code generated by the command above; see README.md. DO NOT EDIT.
     3  
     4  // +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  const (
   121  	FADV_DONTNEED = 0x4
   122  	FADV_NOREUSE  = 0x5
   123  )
   124  
   125  type RawSockaddr struct {
   126  	Family uint16
   127  	Data   [14]int8
   128  }
   129  
   130  type RawSockaddrAny struct {
   131  	Addr RawSockaddr
   132  	Pad  [96]int8
   133  }
   134  
   135  type Iovec struct {
   136  	Base *byte
   137  	Len  uint32
   138  }
   139  
   140  type Msghdr struct {
   141  	Name       *byte
   142  	Namelen    uint32
   143  	Iov        *Iovec
   144  	Iovlen     uint32
   145  	Control    *byte
   146  	Controllen uint32
   147  	Flags      int32
   148  }
   149  
   150  type Cmsghdr struct {
   151  	Len   uint32
   152  	Level int32
   153  	Type  int32
   154  }
   155  
   156  const (
   157  	SizeofIovec   = 0x8
   158  	SizeofMsghdr  = 0x1c
   159  	SizeofCmsghdr = 0xc
   160  )
   161  
   162  const (
   163  	SizeofSockFprog = 0x8
   164  )
   165  
   166  type PtraceRegs struct {
   167  	Ebx      int32
   168  	Ecx      int32
   169  	Edx      int32
   170  	Esi      int32
   171  	Edi      int32
   172  	Ebp      int32
   173  	Eax      int32
   174  	Xds      int32
   175  	Xes      int32
   176  	Xfs      int32
   177  	Xgs      int32
   178  	Orig_eax int32
   179  	Eip      int32
   180  	Xcs      int32
   181  	Eflags   int32
   182  	Esp      int32
   183  	Xss      int32
   184  }
   185  
   186  type FdSet struct {
   187  	Bits [32]int32
   188  }
   189  
   190  type Sysinfo_t struct {
   191  	Uptime    int32
   192  	Loads     [3]uint32
   193  	Totalram  uint32
   194  	Freeram   uint32
   195  	Sharedram uint32
   196  	Bufferram uint32
   197  	Totalswap uint32
   198  	Freeswap  uint32
   199  	Procs     uint16
   200  	Pad       uint16
   201  	Totalhigh uint32
   202  	Freehigh  uint32
   203  	Unit      uint32
   204  	_         [8]int8
   205  }
   206  
   207  type Ustat_t struct {
   208  	Tfree  int32
   209  	Tinode uint32
   210  	Fname  [6]int8
   211  	Fpack  [6]int8
   212  }
   213  
   214  type EpollEvent struct {
   215  	Events uint32
   216  	Fd     int32
   217  	Pad    int32
   218  }
   219  
   220  const (
   221  	POLLRDHUP = 0x2000
   222  )
   223  
   224  type Sigset_t struct {
   225  	Val [32]uint32
   226  }
   227  
   228  const _C__NSIG = 0x41
   229  
   230  type Termios struct {
   231  	Iflag  uint32
   232  	Oflag  uint32
   233  	Cflag  uint32
   234  	Lflag  uint32
   235  	Line   uint8
   236  	Cc     [19]uint8
   237  	Ispeed uint32
   238  	Ospeed uint32
   239  }
   240  
   241  type Taskstats struct {
   242  	Version                   uint16
   243  	Ac_exitcode               uint32
   244  	Ac_flag                   uint8
   245  	Ac_nice                   uint8
   246  	_                         [4]byte
   247  	Cpu_count                 uint64
   248  	Cpu_delay_total           uint64
   249  	Blkio_count               uint64
   250  	Blkio_delay_total         uint64
   251  	Swapin_count              uint64
   252  	Swapin_delay_total        uint64
   253  	Cpu_run_real_total        uint64
   254  	Cpu_run_virtual_total     uint64
   255  	Ac_comm                   [32]int8
   256  	Ac_sched                  uint8
   257  	Ac_pad                    [3]uint8
   258  	_                         [4]byte
   259  	Ac_uid                    uint32
   260  	Ac_gid                    uint32
   261  	Ac_pid                    uint32
   262  	Ac_ppid                   uint32
   263  	Ac_btime                  uint32
   264  	_                         [4]byte
   265  	Ac_etime                  uint64
   266  	Ac_utime                  uint64
   267  	Ac_stime                  uint64
   268  	Ac_minflt                 uint64
   269  	Ac_majflt                 uint64
   270  	Coremem                   uint64
   271  	Virtmem                   uint64
   272  	Hiwater_rss               uint64
   273  	Hiwater_vm                uint64
   274  	Read_char                 uint64
   275  	Write_char                uint64
   276  	Read_syscalls             uint64
   277  	Write_syscalls            uint64
   278  	Read_bytes                uint64
   279  	Write_bytes               uint64
   280  	Cancelled_write_bytes     uint64
   281  	Nvcsw                     uint64
   282  	Nivcsw                    uint64
   283  	Ac_utimescaled            uint64
   284  	Ac_stimescaled            uint64
   285  	Cpu_scaled_run_real_total uint64
   286  	Freepages_count           uint64
   287  	Freepages_delay_total     uint64
   288  	Thrashing_count           uint64
   289  	Thrashing_delay_total     uint64
   290  }
   291  
   292  type cpuMask uint32
   293  
   294  const (
   295  	_NCPUBITS = 0x20
   296  )
   297  
   298  const (
   299  	CBitFieldMaskBit0  = 0x1
   300  	CBitFieldMaskBit1  = 0x2
   301  	CBitFieldMaskBit2  = 0x4
   302  	CBitFieldMaskBit3  = 0x8
   303  	CBitFieldMaskBit4  = 0x10
   304  	CBitFieldMaskBit5  = 0x20
   305  	CBitFieldMaskBit6  = 0x40
   306  	CBitFieldMaskBit7  = 0x80
   307  	CBitFieldMaskBit8  = 0x100
   308  	CBitFieldMaskBit9  = 0x200
   309  	CBitFieldMaskBit10 = 0x400
   310  	CBitFieldMaskBit11 = 0x800
   311  	CBitFieldMaskBit12 = 0x1000
   312  	CBitFieldMaskBit13 = 0x2000
   313  	CBitFieldMaskBit14 = 0x4000
   314  	CBitFieldMaskBit15 = 0x8000
   315  	CBitFieldMaskBit16 = 0x10000
   316  	CBitFieldMaskBit17 = 0x20000
   317  	CBitFieldMaskBit18 = 0x40000
   318  	CBitFieldMaskBit19 = 0x80000
   319  	CBitFieldMaskBit20 = 0x100000
   320  	CBitFieldMaskBit21 = 0x200000
   321  	CBitFieldMaskBit22 = 0x400000
   322  	CBitFieldMaskBit23 = 0x800000
   323  	CBitFieldMaskBit24 = 0x1000000
   324  	CBitFieldMaskBit25 = 0x2000000
   325  	CBitFieldMaskBit26 = 0x4000000
   326  	CBitFieldMaskBit27 = 0x8000000
   327  	CBitFieldMaskBit28 = 0x10000000
   328  	CBitFieldMaskBit29 = 0x20000000
   329  	CBitFieldMaskBit30 = 0x40000000
   330  	CBitFieldMaskBit31 = 0x80000000
   331  	CBitFieldMaskBit32 = 0x100000000
   332  	CBitFieldMaskBit33 = 0x200000000
   333  	CBitFieldMaskBit34 = 0x400000000
   334  	CBitFieldMaskBit35 = 0x800000000
   335  	CBitFieldMaskBit36 = 0x1000000000
   336  	CBitFieldMaskBit37 = 0x2000000000
   337  	CBitFieldMaskBit38 = 0x4000000000
   338  	CBitFieldMaskBit39 = 0x8000000000
   339  	CBitFieldMaskBit40 = 0x10000000000
   340  	CBitFieldMaskBit41 = 0x20000000000
   341  	CBitFieldMaskBit42 = 0x40000000000
   342  	CBitFieldMaskBit43 = 0x80000000000
   343  	CBitFieldMaskBit44 = 0x100000000000
   344  	CBitFieldMaskBit45 = 0x200000000000
   345  	CBitFieldMaskBit46 = 0x400000000000
   346  	CBitFieldMaskBit47 = 0x800000000000
   347  	CBitFieldMaskBit48 = 0x1000000000000
   348  	CBitFieldMaskBit49 = 0x2000000000000
   349  	CBitFieldMaskBit50 = 0x4000000000000
   350  	CBitFieldMaskBit51 = 0x8000000000000
   351  	CBitFieldMaskBit52 = 0x10000000000000
   352  	CBitFieldMaskBit53 = 0x20000000000000
   353  	CBitFieldMaskBit54 = 0x40000000000000
   354  	CBitFieldMaskBit55 = 0x80000000000000
   355  	CBitFieldMaskBit56 = 0x100000000000000
   356  	CBitFieldMaskBit57 = 0x200000000000000
   357  	CBitFieldMaskBit58 = 0x400000000000000
   358  	CBitFieldMaskBit59 = 0x800000000000000
   359  	CBitFieldMaskBit60 = 0x1000000000000000
   360  	CBitFieldMaskBit61 = 0x2000000000000000
   361  	CBitFieldMaskBit62 = 0x4000000000000000
   362  	CBitFieldMaskBit63 = 0x8000000000000000
   363  )
   364  
   365  type SockaddrStorage struct {
   366  	Family uint16
   367  	_      [122]int8
   368  	_      uint32
   369  }
   370  
   371  type HDGeometry struct {
   372  	Heads     uint8
   373  	Sectors   uint8
   374  	Cylinders uint16
   375  	Start     uint32
   376  }
   377  
   378  type Statfs_t struct {
   379  	Type    int32
   380  	Bsize   int32
   381  	Blocks  uint64
   382  	Bfree   uint64
   383  	Bavail  uint64
   384  	Files   uint64
   385  	Ffree   uint64
   386  	Fsid    Fsid
   387  	Namelen int32
   388  	Frsize  int32
   389  	Flags   int32
   390  	Spare   [4]int32
   391  }
   392  
   393  type TpacketHdr struct {
   394  	Status  uint32
   395  	Len     uint32
   396  	Snaplen uint32
   397  	Mac     uint16
   398  	Net     uint16
   399  	Sec     uint32
   400  	Usec    uint32
   401  }
   402  
   403  const (
   404  	SizeofTpacketHdr = 0x18
   405  )
   406  
   407  type RTCPLLInfo struct {
   408  	Ctrl    int32
   409  	Value   int32
   410  	Max     int32
   411  	Min     int32
   412  	Posmult int32
   413  	Negmult int32
   414  	Clock   int32
   415  }
   416  
   417  type BlkpgPartition struct {
   418  	Start   int64
   419  	Length  int64
   420  	Pno     int32
   421  	Devname [64]uint8
   422  	Volname [64]uint8
   423  }
   424  
   425  const (
   426  	BLKPG = 0x1269
   427  )
   428  
   429  type XDPUmemReg struct {
   430  	Addr     uint64
   431  	Len      uint64
   432  	Size     uint32
   433  	Headroom uint32
   434  	Flags    uint32
   435  }
   436  
   437  type CryptoUserAlg struct {
   438  	Name        [64]int8
   439  	Driver_name [64]int8
   440  	Module_name [64]int8
   441  	Type        uint32
   442  	Mask        uint32
   443  	Refcnt      uint32
   444  	Flags       uint32
   445  }
   446  
   447  type CryptoStatAEAD struct {
   448  	Type         [64]int8
   449  	Encrypt_cnt  uint64
   450  	Encrypt_tlen uint64
   451  	Decrypt_cnt  uint64
   452  	Decrypt_tlen uint64
   453  	Err_cnt      uint64
   454  }
   455  
   456  type CryptoStatAKCipher struct {
   457  	Type         [64]int8
   458  	Encrypt_cnt  uint64
   459  	Encrypt_tlen uint64
   460  	Decrypt_cnt  uint64
   461  	Decrypt_tlen uint64
   462  	Verify_cnt   uint64
   463  	Sign_cnt     uint64
   464  	Err_cnt      uint64
   465  }
   466  
   467  type CryptoStatCipher struct {
   468  	Type         [64]int8
   469  	Encrypt_cnt  uint64
   470  	Encrypt_tlen uint64
   471  	Decrypt_cnt  uint64
   472  	Decrypt_tlen uint64
   473  	Err_cnt      uint64
   474  }
   475  
   476  type CryptoStatCompress struct {
   477  	Type            [64]int8
   478  	Compress_cnt    uint64
   479  	Compress_tlen   uint64
   480  	Decompress_cnt  uint64
   481  	Decompress_tlen uint64
   482  	Err_cnt         uint64
   483  }
   484  
   485  type CryptoStatHash struct {
   486  	Type      [64]int8
   487  	Hash_cnt  uint64
   488  	Hash_tlen uint64
   489  	Err_cnt   uint64
   490  }
   491  
   492  type CryptoStatKPP struct {
   493  	Type                      [64]int8
   494  	Setsecret_cnt             uint64
   495  	Generate_public_key_cnt   uint64
   496  	Compute_shared_secret_cnt uint64
   497  	Err_cnt                   uint64
   498  }
   499  
   500  type CryptoStatRNG struct {
   501  	Type          [64]int8
   502  	Generate_cnt  uint64
   503  	Generate_tlen uint64
   504  	Seed_cnt      uint64
   505  	Err_cnt       uint64
   506  }
   507  
   508  type CryptoStatLarval struct {
   509  	Type [64]int8
   510  }
   511  
   512  type CryptoReportLarval struct {
   513  	Type [64]int8
   514  }
   515  
   516  type CryptoReportHash struct {
   517  	Type       [64]int8
   518  	Blocksize  uint32
   519  	Digestsize uint32
   520  }
   521  
   522  type CryptoReportCipher struct {
   523  	Type        [64]int8
   524  	Blocksize   uint32
   525  	Min_keysize uint32
   526  	Max_keysize uint32
   527  }
   528  
   529  type CryptoReportBlkCipher struct {
   530  	Type        [64]int8
   531  	Geniv       [64]int8
   532  	Blocksize   uint32
   533  	Min_keysize uint32
   534  	Max_keysize uint32
   535  	Ivsize      uint32
   536  }
   537  
   538  type CryptoReportAEAD struct {
   539  	Type        [64]int8
   540  	Geniv       [64]int8
   541  	Blocksize   uint32
   542  	Maxauthsize uint32
   543  	Ivsize      uint32
   544  }
   545  
   546  type CryptoReportComp struct {
   547  	Type [64]int8
   548  }
   549  
   550  type CryptoReportRNG struct {
   551  	Type     [64]int8
   552  	Seedsize uint32
   553  }
   554  
   555  type CryptoReportAKCipher struct {
   556  	Type [64]int8
   557  }
   558  
   559  type CryptoReportKPP struct {
   560  	Type [64]int8
   561  }
   562  
   563  type CryptoReportAcomp struct {
   564  	Type [64]int8
   565  }
   566  
   567  type LoopInfo struct {
   568  	Number           int32
   569  	Device           uint16
   570  	Inode            uint32
   571  	Rdevice          uint16
   572  	Offset           int32
   573  	Encrypt_type     int32
   574  	Encrypt_key_size int32
   575  	Flags            int32
   576  	Name             [64]int8
   577  	Encrypt_key      [32]uint8
   578  	Init             [2]uint32
   579  	Reserved         [4]int8
   580  }
   581  
   582  type TIPCSubscr struct {
   583  	Seq     TIPCServiceRange
   584  	Timeout uint32
   585  	Filter  uint32
   586  	Handle  [8]int8
   587  }
   588  
   589  type TIPCSIOCLNReq struct {
   590  	Peer     uint32
   591  	Id       uint32
   592  	Linkname [68]int8
   593  }
   594  
   595  type TIPCSIOCNodeIDReq struct {
   596  	Peer uint32
   597  	Id   [16]int8
   598  }