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

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