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_arm64.go 11KB

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