ztypes_linux_arm64.go 11 KB

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