Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

ztypes_linux_arm64.go 12KB

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