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

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