golang.org/x/sys@v0.20.1-0.20240517151509-673e0f94c16d/unix/ztypes_linux_sparc64.go (about)

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