ztypes_linux_386.go 11 KB

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