Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

ztypes_linux_386.go 12KB

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