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

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