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 11KB

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