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

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