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.
 
 

697 lines
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. const (
  223. SIG_BLOCK = 0x0
  224. SIG_UNBLOCK = 0x1
  225. SIG_SETMASK = 0x2
  226. )
  227. type Siginfo struct {
  228. Signo int32
  229. Errno int32
  230. Code int32
  231. _ [116]byte
  232. }
  233. type Termios struct {
  234. Iflag uint32
  235. Oflag uint32
  236. Cflag uint32
  237. Lflag uint32
  238. Line uint8
  239. Cc [19]uint8
  240. Ispeed uint32
  241. Ospeed uint32
  242. }
  243. type Taskstats struct {
  244. Version uint16
  245. Ac_exitcode uint32
  246. Ac_flag uint8
  247. Ac_nice uint8
  248. _ [4]byte
  249. Cpu_count uint64
  250. Cpu_delay_total uint64
  251. Blkio_count uint64
  252. Blkio_delay_total uint64
  253. Swapin_count uint64
  254. Swapin_delay_total uint64
  255. Cpu_run_real_total uint64
  256. Cpu_run_virtual_total uint64
  257. Ac_comm [32]int8
  258. Ac_sched uint8
  259. Ac_pad [3]uint8
  260. _ [4]byte
  261. Ac_uid uint32
  262. Ac_gid uint32
  263. Ac_pid uint32
  264. Ac_ppid uint32
  265. Ac_btime uint32
  266. _ [4]byte
  267. Ac_etime uint64
  268. Ac_utime uint64
  269. Ac_stime uint64
  270. Ac_minflt uint64
  271. Ac_majflt uint64
  272. Coremem uint64
  273. Virtmem uint64
  274. Hiwater_rss uint64
  275. Hiwater_vm uint64
  276. Read_char uint64
  277. Write_char uint64
  278. Read_syscalls uint64
  279. Write_syscalls uint64
  280. Read_bytes uint64
  281. Write_bytes uint64
  282. Cancelled_write_bytes uint64
  283. Nvcsw uint64
  284. Nivcsw uint64
  285. Ac_utimescaled uint64
  286. Ac_stimescaled uint64
  287. Cpu_scaled_run_real_total uint64
  288. Freepages_count uint64
  289. Freepages_delay_total uint64
  290. Thrashing_count uint64
  291. Thrashing_delay_total uint64
  292. Ac_btime64 uint64
  293. Compact_count uint64
  294. Compact_delay_total uint64
  295. Ac_tgid uint32
  296. _ [4]byte
  297. Ac_tgetime uint64
  298. Ac_exe_dev uint64
  299. Ac_exe_inode uint64
  300. Wpcopy_count uint64
  301. Wpcopy_delay_total uint64
  302. }
  303. type cpuMask uint32
  304. const (
  305. _NCPUBITS = 0x20
  306. )
  307. const (
  308. CBitFieldMaskBit0 = 0x1
  309. CBitFieldMaskBit1 = 0x2
  310. CBitFieldMaskBit2 = 0x4
  311. CBitFieldMaskBit3 = 0x8
  312. CBitFieldMaskBit4 = 0x10
  313. CBitFieldMaskBit5 = 0x20
  314. CBitFieldMaskBit6 = 0x40
  315. CBitFieldMaskBit7 = 0x80
  316. CBitFieldMaskBit8 = 0x100
  317. CBitFieldMaskBit9 = 0x200
  318. CBitFieldMaskBit10 = 0x400
  319. CBitFieldMaskBit11 = 0x800
  320. CBitFieldMaskBit12 = 0x1000
  321. CBitFieldMaskBit13 = 0x2000
  322. CBitFieldMaskBit14 = 0x4000
  323. CBitFieldMaskBit15 = 0x8000
  324. CBitFieldMaskBit16 = 0x10000
  325. CBitFieldMaskBit17 = 0x20000
  326. CBitFieldMaskBit18 = 0x40000
  327. CBitFieldMaskBit19 = 0x80000
  328. CBitFieldMaskBit20 = 0x100000
  329. CBitFieldMaskBit21 = 0x200000
  330. CBitFieldMaskBit22 = 0x400000
  331. CBitFieldMaskBit23 = 0x800000
  332. CBitFieldMaskBit24 = 0x1000000
  333. CBitFieldMaskBit25 = 0x2000000
  334. CBitFieldMaskBit26 = 0x4000000
  335. CBitFieldMaskBit27 = 0x8000000
  336. CBitFieldMaskBit28 = 0x10000000
  337. CBitFieldMaskBit29 = 0x20000000
  338. CBitFieldMaskBit30 = 0x40000000
  339. CBitFieldMaskBit31 = 0x80000000
  340. CBitFieldMaskBit32 = 0x100000000
  341. CBitFieldMaskBit33 = 0x200000000
  342. CBitFieldMaskBit34 = 0x400000000
  343. CBitFieldMaskBit35 = 0x800000000
  344. CBitFieldMaskBit36 = 0x1000000000
  345. CBitFieldMaskBit37 = 0x2000000000
  346. CBitFieldMaskBit38 = 0x4000000000
  347. CBitFieldMaskBit39 = 0x8000000000
  348. CBitFieldMaskBit40 = 0x10000000000
  349. CBitFieldMaskBit41 = 0x20000000000
  350. CBitFieldMaskBit42 = 0x40000000000
  351. CBitFieldMaskBit43 = 0x80000000000
  352. CBitFieldMaskBit44 = 0x100000000000
  353. CBitFieldMaskBit45 = 0x200000000000
  354. CBitFieldMaskBit46 = 0x400000000000
  355. CBitFieldMaskBit47 = 0x800000000000
  356. CBitFieldMaskBit48 = 0x1000000000000
  357. CBitFieldMaskBit49 = 0x2000000000000
  358. CBitFieldMaskBit50 = 0x4000000000000
  359. CBitFieldMaskBit51 = 0x8000000000000
  360. CBitFieldMaskBit52 = 0x10000000000000
  361. CBitFieldMaskBit53 = 0x20000000000000
  362. CBitFieldMaskBit54 = 0x40000000000000
  363. CBitFieldMaskBit55 = 0x80000000000000
  364. CBitFieldMaskBit56 = 0x100000000000000
  365. CBitFieldMaskBit57 = 0x200000000000000
  366. CBitFieldMaskBit58 = 0x400000000000000
  367. CBitFieldMaskBit59 = 0x800000000000000
  368. CBitFieldMaskBit60 = 0x1000000000000000
  369. CBitFieldMaskBit61 = 0x2000000000000000
  370. CBitFieldMaskBit62 = 0x4000000000000000
  371. CBitFieldMaskBit63 = 0x8000000000000000
  372. )
  373. type SockaddrStorage struct {
  374. Family uint16
  375. Data [122]byte
  376. _ uint32
  377. }
  378. type HDGeometry struct {
  379. Heads uint8
  380. Sectors uint8
  381. Cylinders uint16
  382. Start uint32
  383. }
  384. type Statfs_t struct {
  385. Type int32
  386. Bsize int32
  387. Blocks uint64
  388. Bfree uint64
  389. Bavail uint64
  390. Files uint64
  391. Ffree uint64
  392. Fsid Fsid
  393. Namelen int32
  394. Frsize int32
  395. Flags int32
  396. Spare [4]int32
  397. }
  398. type TpacketHdr struct {
  399. Status uint32
  400. Len uint32
  401. Snaplen uint32
  402. Mac uint16
  403. Net uint16
  404. Sec uint32
  405. Usec uint32
  406. }
  407. const (
  408. SizeofTpacketHdr = 0x18
  409. )
  410. type RTCPLLInfo struct {
  411. Ctrl int32
  412. Value int32
  413. Max int32
  414. Min int32
  415. Posmult int32
  416. Negmult int32
  417. Clock int32
  418. }
  419. type BlkpgPartition struct {
  420. Start int64
  421. Length int64
  422. Pno int32
  423. Devname [64]uint8
  424. Volname [64]uint8
  425. }
  426. const (
  427. BLKPG = 0x1269
  428. )
  429. type XDPUmemReg struct {
  430. Addr uint64
  431. Len uint64
  432. Size uint32
  433. Headroom uint32
  434. Flags uint32
  435. }
  436. type CryptoUserAlg struct {
  437. Name [64]int8
  438. Driver_name [64]int8
  439. Module_name [64]int8
  440. Type uint32
  441. Mask uint32
  442. Refcnt uint32
  443. Flags uint32
  444. }
  445. type CryptoStatAEAD struct {
  446. Type [64]int8
  447. Encrypt_cnt uint64
  448. Encrypt_tlen uint64
  449. Decrypt_cnt uint64
  450. Decrypt_tlen uint64
  451. Err_cnt uint64
  452. }
  453. type CryptoStatAKCipher struct {
  454. Type [64]int8
  455. Encrypt_cnt uint64
  456. Encrypt_tlen uint64
  457. Decrypt_cnt uint64
  458. Decrypt_tlen uint64
  459. Verify_cnt uint64
  460. Sign_cnt uint64
  461. Err_cnt uint64
  462. }
  463. type CryptoStatCipher struct {
  464. Type [64]int8
  465. Encrypt_cnt uint64
  466. Encrypt_tlen uint64
  467. Decrypt_cnt uint64
  468. Decrypt_tlen uint64
  469. Err_cnt uint64
  470. }
  471. type CryptoStatCompress struct {
  472. Type [64]int8
  473. Compress_cnt uint64
  474. Compress_tlen uint64
  475. Decompress_cnt uint64
  476. Decompress_tlen uint64
  477. Err_cnt uint64
  478. }
  479. type CryptoStatHash struct {
  480. Type [64]int8
  481. Hash_cnt uint64
  482. Hash_tlen uint64
  483. Err_cnt uint64
  484. }
  485. type CryptoStatKPP struct {
  486. Type [64]int8
  487. Setsecret_cnt uint64
  488. Generate_public_key_cnt uint64
  489. Compute_shared_secret_cnt uint64
  490. Err_cnt uint64
  491. }
  492. type CryptoStatRNG struct {
  493. Type [64]int8
  494. Generate_cnt uint64
  495. Generate_tlen uint64
  496. Seed_cnt uint64
  497. Err_cnt uint64
  498. }
  499. type CryptoStatLarval struct {
  500. Type [64]int8
  501. }
  502. type CryptoReportLarval struct {
  503. Type [64]int8
  504. }
  505. type CryptoReportHash struct {
  506. Type [64]int8
  507. Blocksize uint32
  508. Digestsize uint32
  509. }
  510. type CryptoReportCipher struct {
  511. Type [64]int8
  512. Blocksize uint32
  513. Min_keysize uint32
  514. Max_keysize uint32
  515. }
  516. type CryptoReportBlkCipher struct {
  517. Type [64]int8
  518. Geniv [64]int8
  519. Blocksize uint32
  520. Min_keysize uint32
  521. Max_keysize uint32
  522. Ivsize uint32
  523. }
  524. type CryptoReportAEAD struct {
  525. Type [64]int8
  526. Geniv [64]int8
  527. Blocksize uint32
  528. Maxauthsize uint32
  529. Ivsize uint32
  530. }
  531. type CryptoReportComp struct {
  532. Type [64]int8
  533. }
  534. type CryptoReportRNG struct {
  535. Type [64]int8
  536. Seedsize uint32
  537. }
  538. type CryptoReportAKCipher struct {
  539. Type [64]int8
  540. }
  541. type CryptoReportKPP struct {
  542. Type [64]int8
  543. }
  544. type CryptoReportAcomp struct {
  545. Type [64]int8
  546. }
  547. type LoopInfo struct {
  548. Number int32
  549. Device uint16
  550. Inode uint32
  551. Rdevice uint16
  552. Offset int32
  553. Encrypt_type int32
  554. Encrypt_key_size int32
  555. Flags int32
  556. Name [64]int8
  557. Encrypt_key [32]uint8
  558. Init [2]uint32
  559. Reserved [4]int8
  560. }
  561. type TIPCSubscr struct {
  562. Seq TIPCServiceRange
  563. Timeout uint32
  564. Filter uint32
  565. Handle [8]int8
  566. }
  567. type TIPCSIOCLNReq struct {
  568. Peer uint32
  569. Id uint32
  570. Linkname [68]int8
  571. }
  572. type TIPCSIOCNodeIDReq struct {
  573. Peer uint32
  574. Id [16]int8
  575. }
  576. type PPSKInfo struct {
  577. Assert_sequence uint32
  578. Clear_sequence uint32
  579. Assert_tu PPSKTime
  580. Clear_tu PPSKTime
  581. Current_mode int32
  582. }
  583. const (
  584. PPS_GETPARAMS = 0x800470a1
  585. PPS_SETPARAMS = 0x400470a2
  586. PPS_GETCAP = 0x800470a3
  587. PPS_FETCH = 0xc00470a4
  588. )
  589. const (
  590. PIDFD_NONBLOCK = 0x800
  591. )
  592. type SysvIpcPerm struct {
  593. Key int32
  594. Uid uint32
  595. Gid uint32
  596. Cuid uint32
  597. Cgid uint32
  598. Mode uint16
  599. _ [2]uint8
  600. Seq uint16
  601. _ uint16
  602. _ uint32
  603. _ uint32
  604. }
  605. type SysvShmDesc struct {
  606. Perm SysvIpcPerm
  607. Segsz uint32
  608. Atime uint32
  609. Atime_high uint32
  610. Dtime uint32
  611. Dtime_high uint32
  612. Ctime uint32
  613. Ctime_high uint32
  614. Cpid int32
  615. Lpid int32
  616. Nattch uint32
  617. _ uint32
  618. _ uint32
  619. }