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.

691 lignes
12 KiB

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