github.com/Kalvelign/golang-windows-sys-lib@v0.0.0-20221121121202-63da651435e1/unix/ztypes_linux_ppc64.go (about)

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