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 11KB

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