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

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