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_arm.go 12KB

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