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_386.go 11KB

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