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