ztypes_linux_amd64.go 11 KB

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