github.com/HACKERALERT/Picocrypt/src/external/sys@v0.0.0-20210609020157-e519952f829f/unix/ztypes_linux_amd64.go (about)

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