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

     1  // cgo -godefs -objdir=/tmp/arm/cgo -- -Wall -Werror -static -I/tmp/arm/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 arm && linux
     5  
     6  package unix
     7  
     8  const (
     9  	SizeofPtr  = 0x4
    10  	SizeofLong = 0x4
    11  )
    12  
    13  type (
    14  	_C_long int32
    15  )
    16  
    17  type Timespec struct {
    18  	Sec  int32
    19  	Nsec int32
    20  }
    21  
    22  type Timeval struct {
    23  	Sec  int32
    24  	Usec int32
    25  }
    26  
    27  type Timex struct {
    28  	Modes     uint32
    29  	Offset    int32
    30  	Freq      int32
    31  	Maxerror  int32
    32  	Esterror  int32
    33  	Status    int32
    34  	Constant  int32
    35  	Precision int32
    36  	Tolerance int32
    37  	Time      Timeval
    38  	Tick      int32
    39  	Ppsfreq   int32
    40  	Jitter    int32
    41  	Shift     int32
    42  	Stabil    int32
    43  	Jitcnt    int32
    44  	Calcnt    int32
    45  	Errcnt    int32
    46  	Stbcnt    int32
    47  	Tai       int32
    48  	_         [44]byte
    49  }
    50  
    51  type Time_t int32
    52  
    53  type Tms struct {
    54  	Utime  int32
    55  	Stime  int32
    56  	Cutime int32
    57  	Cstime int32
    58  }
    59  
    60  type Utimbuf struct {
    61  	Actime  int32
    62  	Modtime int32
    63  }
    64  
    65  type Rusage struct {
    66  	Utime    Timeval
    67  	Stime    Timeval
    68  	Maxrss   int32
    69  	Ixrss    int32
    70  	Idrss    int32
    71  	Isrss    int32
    72  	Minflt   int32
    73  	Majflt   int32
    74  	Nswap    int32
    75  	Inblock  int32
    76  	Oublock  int32
    77  	Msgsnd   int32
    78  	Msgrcv   int32
    79  	Nsignals int32
    80  	Nvcsw    int32
    81  	Nivcsw   int32
    82  }
    83  
    84  type Stat_t struct {
    85  	Dev     uint64
    86  	_       uint16
    87  	_       uint32
    88  	Mode    uint32
    89  	Nlink   uint32
    90  	Uid     uint32
    91  	Gid     uint32
    92  	Rdev    uint64
    93  	_       uint16
    94  	_       [4]byte
    95  	Size    int64
    96  	Blksize int32
    97  	_       [4]byte
    98  	Blocks  int64
    99  	Atim    Timespec
   100  	Mtim    Timespec
   101  	Ctim    Timespec
   102  	Ino     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  	_      [4]byte
   118  	Start  int64
   119  	Len    int64
   120  	Pid    int32
   121  	_      [4]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 uint32
   145  }
   146  
   147  type RawSockaddr struct {
   148  	Family uint16
   149  	Data   [14]uint8
   150  }
   151  
   152  type RawSockaddrAny struct {
   153  	Addr RawSockaddr
   154  	Pad  [96]uint8
   155  }
   156  
   157  type Iovec struct {
   158  	Base *byte
   159  	Len  uint32
   160  }
   161  
   162  type Msghdr struct {
   163  	Name       *byte
   164  	Namelen    uint32
   165  	Iov        *Iovec
   166  	Iovlen     uint32
   167  	Control    *byte
   168  	Controllen uint32
   169  	Flags      int32
   170  }
   171  
   172  type Cmsghdr struct {
   173  	Len   uint32
   174  	Level int32
   175  	Type  int32
   176  }
   177  
   178  type ifreq struct {
   179  	Ifrn [16]byte
   180  	Ifru [16]byte
   181  }
   182  
   183  const (
   184  	SizeofSockaddrNFCLLCP = 0x58
   185  	SizeofIovec           = 0x8
   186  	SizeofMsghdr          = 0x1c
   187  	SizeofCmsghdr         = 0xc
   188  )
   189  
   190  const (
   191  	SizeofSockFprog = 0x8
   192  )
   193  
   194  type PtraceRegs struct {
   195  	Uregs [18]uint32
   196  }
   197  
   198  type FdSet struct {
   199  	Bits [32]int32
   200  }
   201  
   202  type Sysinfo_t struct {
   203  	Uptime    int32
   204  	Loads     [3]uint32
   205  	Totalram  uint32
   206  	Freeram   uint32
   207  	Sharedram uint32
   208  	Bufferram uint32
   209  	Totalswap uint32
   210  	Freeswap  uint32
   211  	Procs     uint16
   212  	Pad       uint16
   213  	Totalhigh uint32
   214  	Freehigh  uint32
   215  	Unit      uint32
   216  	_         [8]uint8
   217  }
   218  
   219  type Ustat_t struct {
   220  	Tfree  int32
   221  	Tinode uint32
   222  	Fname  [6]uint8
   223  	Fpack  [6]uint8
   224  }
   225  
   226  type EpollEvent struct {
   227  	Events uint32
   228  	PadFd  int32
   229  	Fd     int32
   230  	Pad    int32
   231  }
   232  
   233  const (
   234  	OPEN_TREE_CLOEXEC = 0x80000
   235  )
   236  
   237  const (
   238  	POLLRDHUP = 0x2000
   239  )
   240  
   241  type Sigset_t struct {
   242  	Val [32]uint32
   243  }
   244  
   245  const _C__NSIG = 0x41
   246  
   247  const (
   248  	SIG_BLOCK   = 0x0
   249  	SIG_UNBLOCK = 0x1
   250  	SIG_SETMASK = 0x2
   251  )
   252  
   253  type Siginfo struct {
   254  	Signo int32
   255  	Errno int32
   256  	Code  int32
   257  	_     [116]byte
   258  }
   259  
   260  type Termios struct {
   261  	Iflag  uint32
   262  	Oflag  uint32
   263  	Cflag  uint32
   264  	Lflag  uint32
   265  	Line   uint8
   266  	Cc     [19]uint8
   267  	Ispeed uint32
   268  	Ospeed uint32
   269  }
   270  
   271  type Taskstats struct {
   272  	Version                   uint16
   273  	Ac_exitcode               uint32
   274  	Ac_flag                   uint8
   275  	Ac_nice                   uint8
   276  	_                         [4]byte
   277  	Cpu_count                 uint64
   278  	Cpu_delay_total           uint64
   279  	Blkio_count               uint64
   280  	Blkio_delay_total         uint64
   281  	Swapin_count              uint64
   282  	Swapin_delay_total        uint64
   283  	Cpu_run_real_total        uint64
   284  	Cpu_run_virtual_total     uint64
   285  	Ac_comm                   [32]uint8
   286  	Ac_sched                  uint8
   287  	Ac_pad                    [3]uint8
   288  	_                         [4]byte
   289  	Ac_uid                    uint32
   290  	Ac_gid                    uint32
   291  	Ac_pid                    uint32
   292  	Ac_ppid                   uint32
   293  	Ac_btime                  uint32
   294  	_                         [4]byte
   295  	Ac_etime                  uint64
   296  	Ac_utime                  uint64
   297  	Ac_stime                  uint64
   298  	Ac_minflt                 uint64
   299  	Ac_majflt                 uint64
   300  	Coremem                   uint64
   301  	Virtmem                   uint64
   302  	Hiwater_rss               uint64
   303  	Hiwater_vm                uint64
   304  	Read_char                 uint64
   305  	Write_char                uint64
   306  	Read_syscalls             uint64
   307  	Write_syscalls            uint64
   308  	Read_bytes                uint64
   309  	Write_bytes               uint64
   310  	Cancelled_write_bytes     uint64
   311  	Nvcsw                     uint64
   312  	Nivcsw                    uint64
   313  	Ac_utimescaled            uint64
   314  	Ac_stimescaled            uint64
   315  	Cpu_scaled_run_real_total uint64
   316  	Freepages_count           uint64
   317  	Freepages_delay_total     uint64
   318  	Thrashing_count           uint64
   319  	Thrashing_delay_total     uint64
   320  	Ac_btime64                uint64
   321  	Compact_count             uint64
   322  	Compact_delay_total       uint64
   323  	Ac_tgid                   uint32
   324  	_                         [4]byte
   325  	Ac_tgetime                uint64
   326  	Ac_exe_dev                uint64
   327  	Ac_exe_inode              uint64
   328  	Wpcopy_count              uint64
   329  	Wpcopy_delay_total        uint64
   330  	Irq_count                 uint64
   331  	Irq_delay_total           uint64
   332  }
   333  
   334  type cpuMask uint32
   335  
   336  const (
   337  	_NCPUBITS = 0x20
   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  	Data   [122]byte
   410  	_      uint32
   411  }
   412  
   413  type HDGeometry struct {
   414  	Heads     uint8
   415  	Sectors   uint8
   416  	Cylinders uint16
   417  	Start     uint32
   418  }
   419  
   420  type Statfs_t struct {
   421  	Type    int32
   422  	Bsize   int32
   423  	Blocks  uint64
   424  	Bfree   uint64
   425  	Bavail  uint64
   426  	Files   uint64
   427  	Ffree   uint64
   428  	Fsid    Fsid
   429  	Namelen int32
   430  	Frsize  int32
   431  	Flags   int32
   432  	Spare   [4]int32
   433  	_       [4]byte
   434  }
   435  
   436  type TpacketHdr struct {
   437  	Status  uint32
   438  	Len     uint32
   439  	Snaplen uint32
   440  	Mac     uint16
   441  	Net     uint16
   442  	Sec     uint32
   443  	Usec    uint32
   444  }
   445  
   446  const (
   447  	SizeofTpacketHdr = 0x18
   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   int32
   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 CryptoUserAlg struct {
   474  	Name        [64]uint8
   475  	Driver_name [64]uint8
   476  	Module_name [64]uint8
   477  	Type        uint32
   478  	Mask        uint32
   479  	Refcnt      uint32
   480  	Flags       uint32
   481  }
   482  
   483  type CryptoStatAEAD struct {
   484  	Type         [64]uint8
   485  	Encrypt_cnt  uint64
   486  	Encrypt_tlen uint64
   487  	Decrypt_cnt  uint64
   488  	Decrypt_tlen uint64
   489  	Err_cnt      uint64
   490  }
   491  
   492  type CryptoStatAKCipher struct {
   493  	Type         [64]uint8
   494  	Encrypt_cnt  uint64
   495  	Encrypt_tlen uint64
   496  	Decrypt_cnt  uint64
   497  	Decrypt_tlen uint64
   498  	Verify_cnt   uint64
   499  	Sign_cnt     uint64
   500  	Err_cnt      uint64
   501  }
   502  
   503  type CryptoStatCipher struct {
   504  	Type         [64]uint8
   505  	Encrypt_cnt  uint64
   506  	Encrypt_tlen uint64
   507  	Decrypt_cnt  uint64
   508  	Decrypt_tlen uint64
   509  	Err_cnt      uint64
   510  }
   511  
   512  type CryptoStatCompress struct {
   513  	Type            [64]uint8
   514  	Compress_cnt    uint64
   515  	Compress_tlen   uint64
   516  	Decompress_cnt  uint64
   517  	Decompress_tlen uint64
   518  	Err_cnt         uint64
   519  }
   520  
   521  type CryptoStatHash struct {
   522  	Type      [64]uint8
   523  	Hash_cnt  uint64
   524  	Hash_tlen uint64
   525  	Err_cnt   uint64
   526  }
   527  
   528  type CryptoStatKPP struct {
   529  	Type                      [64]uint8
   530  	Setsecret_cnt             uint64
   531  	Generate_public_key_cnt   uint64
   532  	Compute_shared_secret_cnt uint64
   533  	Err_cnt                   uint64
   534  }
   535  
   536  type CryptoStatRNG struct {
   537  	Type          [64]uint8
   538  	Generate_cnt  uint64
   539  	Generate_tlen uint64
   540  	Seed_cnt      uint64
   541  	Err_cnt       uint64
   542  }
   543  
   544  type CryptoStatLarval struct {
   545  	Type [64]uint8
   546  }
   547  
   548  type CryptoReportLarval struct {
   549  	Type [64]uint8
   550  }
   551  
   552  type CryptoReportHash struct {
   553  	Type       [64]uint8
   554  	Blocksize  uint32
   555  	Digestsize uint32
   556  }
   557  
   558  type CryptoReportCipher struct {
   559  	Type        [64]uint8
   560  	Blocksize   uint32
   561  	Min_keysize uint32
   562  	Max_keysize uint32
   563  }
   564  
   565  type CryptoReportBlkCipher struct {
   566  	Type        [64]uint8
   567  	Geniv       [64]uint8
   568  	Blocksize   uint32
   569  	Min_keysize uint32
   570  	Max_keysize uint32
   571  	Ivsize      uint32
   572  }
   573  
   574  type CryptoReportAEAD struct {
   575  	Type        [64]uint8
   576  	Geniv       [64]uint8
   577  	Blocksize   uint32
   578  	Maxauthsize uint32
   579  	Ivsize      uint32
   580  }
   581  
   582  type CryptoReportComp struct {
   583  	Type [64]uint8
   584  }
   585  
   586  type CryptoReportRNG struct {
   587  	Type     [64]uint8
   588  	Seedsize uint32
   589  }
   590  
   591  type CryptoReportAKCipher struct {
   592  	Type [64]uint8
   593  }
   594  
   595  type CryptoReportKPP struct {
   596  	Type [64]uint8
   597  }
   598  
   599  type CryptoReportAcomp struct {
   600  	Type [64]uint8
   601  }
   602  
   603  type LoopInfo struct {
   604  	Number           int32
   605  	Device           uint16
   606  	Inode            uint32
   607  	Rdevice          uint16
   608  	Offset           int32
   609  	Encrypt_type     int32
   610  	Encrypt_key_size int32
   611  	Flags            int32
   612  	Name             [64]uint8
   613  	Encrypt_key      [32]uint8
   614  	Init             [2]uint32
   615  	Reserved         [4]uint8
   616  }
   617  
   618  type TIPCSubscr struct {
   619  	Seq     TIPCServiceRange
   620  	Timeout uint32
   621  	Filter  uint32
   622  	Handle  [8]uint8
   623  }
   624  
   625  type TIPCSIOCLNReq struct {
   626  	Peer     uint32
   627  	Id       uint32
   628  	Linkname [68]uint8
   629  }
   630  
   631  type TIPCSIOCNodeIDReq struct {
   632  	Peer uint32
   633  	Id   [16]uint8
   634  }
   635  
   636  type PPSKInfo struct {
   637  	Assert_sequence uint32
   638  	Clear_sequence  uint32
   639  	Assert_tu       PPSKTime
   640  	Clear_tu        PPSKTime
   641  	Current_mode    int32
   642  	_               [4]byte
   643  }
   644  
   645  const (
   646  	PPS_GETPARAMS = 0x800470a1
   647  	PPS_SETPARAMS = 0x400470a2
   648  	PPS_GETCAP    = 0x800470a3
   649  	PPS_FETCH     = 0xc00470a4
   650  )
   651  
   652  const (
   653  	PIDFD_NONBLOCK = 0x800
   654  )
   655  
   656  type SysvIpcPerm struct {
   657  	Key  int32
   658  	Uid  uint32
   659  	Gid  uint32
   660  	Cuid uint32
   661  	Cgid uint32
   662  	Mode uint16
   663  	_    [2]uint8
   664  	Seq  uint16
   665  	_    uint16
   666  	_    uint32
   667  	_    uint32
   668  }
   669  type SysvShmDesc struct {
   670  	Perm       SysvIpcPerm
   671  	Segsz      uint32
   672  	Atime      uint32
   673  	Atime_high uint32
   674  	Dtime      uint32
   675  	Dtime_high uint32
   676  	Ctime      uint32
   677  	Ctime_high uint32
   678  	Cpid       int32
   679  	Lpid       int32
   680  	Nattch     uint32
   681  	_          uint32
   682  	_          uint32
   683  }