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