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