You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ztypes_linux_amd64.go 13KB

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