ztypes_linux_arm.go 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615
  1. // cgo -godefs -- -Wall -Werror -static -I/tmp/include /build/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. // +build arm,linux
  5. package unix
  6. const (
  7. SizeofPtr = 0x4
  8. SizeofLong = 0x4
  9. )
  10. type (
  11. _C_long int32
  12. )
  13. type Timespec struct {
  14. Sec int32
  15. Nsec int32
  16. }
  17. type Timeval struct {
  18. Sec int32
  19. Usec int32
  20. }
  21. type Timex struct {
  22. Modes uint32
  23. Offset int32
  24. Freq int32
  25. Maxerror int32
  26. Esterror int32
  27. Status int32
  28. Constant int32
  29. Precision int32
  30. Tolerance int32
  31. Time Timeval
  32. Tick int32
  33. Ppsfreq int32
  34. Jitter int32
  35. Shift int32
  36. Stabil int32
  37. Jitcnt int32
  38. Calcnt int32
  39. Errcnt int32
  40. Stbcnt int32
  41. Tai int32
  42. _ [44]byte
  43. }
  44. type Time_t int32
  45. type Tms struct {
  46. Utime int32
  47. Stime int32
  48. Cutime int32
  49. Cstime int32
  50. }
  51. type Utimbuf struct {
  52. Actime int32
  53. Modtime int32
  54. }
  55. type Rusage struct {
  56. Utime Timeval
  57. Stime Timeval
  58. Maxrss int32
  59. Ixrss int32
  60. Idrss int32
  61. Isrss int32
  62. Minflt int32
  63. Majflt int32
  64. Nswap int32
  65. Inblock int32
  66. Oublock int32
  67. Msgsnd int32
  68. Msgrcv int32
  69. Nsignals int32
  70. Nvcsw int32
  71. Nivcsw int32
  72. }
  73. type Stat_t struct {
  74. Dev uint64
  75. _ uint16
  76. _ uint32
  77. Mode uint32
  78. Nlink uint32
  79. Uid uint32
  80. Gid uint32
  81. Rdev uint64
  82. _ uint16
  83. _ [4]byte
  84. Size int64
  85. Blksize int32
  86. _ [4]byte
  87. Blocks int64
  88. Atim Timespec
  89. Mtim Timespec
  90. Ctim Timespec
  91. Ino uint64
  92. }
  93. type Dirent struct {
  94. Ino uint64
  95. Off int64
  96. Reclen uint16
  97. Type uint8
  98. Name [256]uint8
  99. _ [5]byte
  100. }
  101. type Flock_t struct {
  102. Type int16
  103. Whence int16
  104. _ [4]byte
  105. Start int64
  106. Len int64
  107. Pid int32
  108. _ [4]byte
  109. }
  110. type DmNameList struct {
  111. Dev uint64
  112. Next uint32
  113. Name [0]byte
  114. _ [4]byte
  115. }
  116. const (
  117. FADV_DONTNEED = 0x4
  118. FADV_NOREUSE = 0x5
  119. )
  120. type RawSockaddr struct {
  121. Family uint16
  122. Data [14]uint8
  123. }
  124. type RawSockaddrAny struct {
  125. Addr RawSockaddr
  126. Pad [96]uint8
  127. }
  128. type Iovec struct {
  129. Base *byte
  130. Len uint32
  131. }
  132. type Msghdr struct {
  133. Name *byte
  134. Namelen uint32
  135. Iov *Iovec
  136. Iovlen uint32
  137. Control *byte
  138. Controllen uint32
  139. Flags int32
  140. }
  141. type Cmsghdr struct {
  142. Len uint32
  143. Level int32
  144. Type int32
  145. }
  146. const (
  147. SizeofIovec = 0x8
  148. SizeofMsghdr = 0x1c
  149. SizeofCmsghdr = 0xc
  150. )
  151. const (
  152. SizeofSockFprog = 0x8
  153. )
  154. type PtraceRegs struct {
  155. Uregs [18]uint32
  156. }
  157. type FdSet struct {
  158. Bits [32]int32
  159. }
  160. type Sysinfo_t struct {
  161. Uptime int32
  162. Loads [3]uint32
  163. Totalram uint32
  164. Freeram uint32
  165. Sharedram uint32
  166. Bufferram uint32
  167. Totalswap uint32
  168. Freeswap uint32
  169. Procs uint16
  170. Pad uint16
  171. Totalhigh uint32
  172. Freehigh uint32
  173. Unit uint32
  174. _ [8]uint8
  175. }
  176. type Ustat_t struct {
  177. Tfree int32
  178. Tinode uint32
  179. Fname [6]uint8
  180. Fpack [6]uint8
  181. }
  182. type EpollEvent struct {
  183. Events uint32
  184. PadFd int32
  185. Fd int32
  186. Pad int32
  187. }
  188. const (
  189. POLLRDHUP = 0x2000
  190. )
  191. type Sigset_t struct {
  192. Val [32]uint32
  193. }
  194. const _C__NSIG = 0x41
  195. type Termios struct {
  196. Iflag uint32
  197. Oflag uint32
  198. Cflag uint32
  199. Lflag uint32
  200. Line uint8
  201. Cc [19]uint8
  202. Ispeed uint32
  203. Ospeed uint32
  204. }
  205. type Taskstats struct {
  206. Version uint16
  207. Ac_exitcode uint32
  208. Ac_flag uint8
  209. Ac_nice uint8
  210. _ [4]byte
  211. Cpu_count uint64
  212. Cpu_delay_total uint64
  213. Blkio_count uint64
  214. Blkio_delay_total uint64
  215. Swapin_count uint64
  216. Swapin_delay_total uint64
  217. Cpu_run_real_total uint64
  218. Cpu_run_virtual_total uint64
  219. Ac_comm [32]uint8
  220. Ac_sched uint8
  221. Ac_pad [3]uint8
  222. _ [4]byte
  223. Ac_uid uint32
  224. Ac_gid uint32
  225. Ac_pid uint32
  226. Ac_ppid uint32
  227. Ac_btime uint32
  228. _ [4]byte
  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 uint32
  257. const (
  258. _NCPUBITS = 0x20
  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. _ [122]uint8
  329. _ uint32
  330. }
  331. type HDGeometry struct {
  332. Heads uint8
  333. Sectors uint8
  334. Cylinders uint16
  335. Start uint32
  336. }
  337. type Statfs_t struct {
  338. Type int32
  339. Bsize int32
  340. Blocks uint64
  341. Bfree uint64
  342. Bavail uint64
  343. Files uint64
  344. Ffree uint64
  345. Fsid Fsid
  346. Namelen int32
  347. Frsize int32
  348. Flags int32
  349. Spare [4]int32
  350. _ [4]byte
  351. }
  352. type TpacketHdr struct {
  353. Status uint32
  354. Len uint32
  355. Snaplen uint32
  356. Mac uint16
  357. Net uint16
  358. Sec uint32
  359. Usec uint32
  360. }
  361. const (
  362. SizeofTpacketHdr = 0x18
  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 int32
  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]uint8
  394. Driver_name [64]uint8
  395. Module_name [64]uint8
  396. Type uint32
  397. Mask uint32
  398. Refcnt uint32
  399. Flags uint32
  400. }
  401. type CryptoStatAEAD struct {
  402. Type [64]uint8
  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]uint8
  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]uint8
  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]uint8
  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]uint8
  437. Hash_cnt uint64
  438. Hash_tlen uint64
  439. Err_cnt uint64
  440. }
  441. type CryptoStatKPP struct {
  442. Type [64]uint8
  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]uint8
  450. Generate_cnt uint64
  451. Generate_tlen uint64
  452. Seed_cnt uint64
  453. Err_cnt uint64
  454. }
  455. type CryptoStatLarval struct {
  456. Type [64]uint8
  457. }
  458. type CryptoReportLarval struct {
  459. Type [64]uint8
  460. }
  461. type CryptoReportHash struct {
  462. Type [64]uint8
  463. Blocksize uint32
  464. Digestsize uint32
  465. }
  466. type CryptoReportCipher struct {
  467. Type [64]uint8
  468. Blocksize uint32
  469. Min_keysize uint32
  470. Max_keysize uint32
  471. }
  472. type CryptoReportBlkCipher struct {
  473. Type [64]uint8
  474. Geniv [64]uint8
  475. Blocksize uint32
  476. Min_keysize uint32
  477. Max_keysize uint32
  478. Ivsize uint32
  479. }
  480. type CryptoReportAEAD struct {
  481. Type [64]uint8
  482. Geniv [64]uint8
  483. Blocksize uint32
  484. Maxauthsize uint32
  485. Ivsize uint32
  486. }
  487. type CryptoReportComp struct {
  488. Type [64]uint8
  489. }
  490. type CryptoReportRNG struct {
  491. Type [64]uint8
  492. Seedsize uint32
  493. }
  494. type CryptoReportAKCipher struct {
  495. Type [64]uint8
  496. }
  497. type CryptoReportKPP struct {
  498. Type [64]uint8
  499. }
  500. type CryptoReportAcomp struct {
  501. Type [64]uint8
  502. }
  503. type LoopInfo struct {
  504. Number int32
  505. Device uint16
  506. Inode uint32
  507. Rdevice uint16
  508. Offset int32
  509. Encrypt_type int32
  510. Encrypt_key_size int32
  511. Flags int32
  512. Name [64]uint8
  513. Encrypt_key [32]uint8
  514. Init [2]uint32
  515. Reserved [4]uint8
  516. }
  517. type TIPCSubscr struct {
  518. Seq TIPCServiceRange
  519. Timeout uint32
  520. Filter uint32
  521. Handle [8]uint8
  522. }
  523. type TIPCSIOCLNReq struct {
  524. Peer uint32
  525. Id uint32
  526. Linkname [68]uint8
  527. }
  528. type TIPCSIOCNodeIDReq struct {
  529. Peer uint32
  530. Id [16]uint8
  531. }
  532. type PPSKInfo struct {
  533. Assert_sequence uint32
  534. Clear_sequence uint32
  535. Assert_tu PPSKTime
  536. Clear_tu PPSKTime
  537. Current_mode int32
  538. _ [4]byte
  539. }
  540. const (
  541. PPS_GETPARAMS = 0x800470a1
  542. PPS_SETPARAMS = 0x400470a2
  543. PPS_GETCAP = 0x800470a3
  544. PPS_FETCH = 0xc00470a4
  545. )