Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 

689 řádky
12 KiB

  1. // cgo -godefs -objdir=/tmp/sparc64/cgo -- -Wall -Werror -static -I/tmp/sparc64/include linux/types.go | go run mkpost.go
  2. // Code generated by the command above; see README.md. DO NOT EDIT.
  3. //go:build sparc64 && linux
  4. // +build sparc64,linux
  5. package unix
  6. const (
  7. SizeofPtr = 0x8
  8. SizeofLong = 0x8
  9. )
  10. type (
  11. _C_long int64
  12. )
  13. type Timespec struct {
  14. Sec int64
  15. Nsec int64
  16. }
  17. type Timeval struct {
  18. Sec int64
  19. Usec int32
  20. _ [4]byte
  21. }
  22. type Timex struct {
  23. Modes uint32
  24. Offset int64
  25. Freq int64
  26. Maxerror int64
  27. Esterror int64
  28. Status int32
  29. Constant int64
  30. Precision int64
  31. Tolerance int64
  32. Time Timeval
  33. Tick int64
  34. Ppsfreq int64
  35. Jitter int64
  36. Shift int32
  37. Stabil int64
  38. Jitcnt int64
  39. Calcnt int64
  40. Errcnt int64
  41. Stbcnt int64
  42. Tai int32
  43. _ [44]byte
  44. }
  45. type Time_t int64
  46. type Tms struct {
  47. Utime int64
  48. Stime int64
  49. Cutime int64
  50. Cstime int64
  51. }
  52. type Utimbuf struct {
  53. Actime int64
  54. Modtime int64
  55. }
  56. type Rusage struct {
  57. Utime Timeval
  58. Stime Timeval
  59. Maxrss int64
  60. Ixrss int64
  61. Idrss int64
  62. Isrss int64
  63. Minflt int64
  64. Majflt int64
  65. Nswap int64
  66. Inblock int64
  67. Oublock int64
  68. Msgsnd int64
  69. Msgrcv int64
  70. Nsignals int64
  71. Nvcsw int64
  72. Nivcsw int64
  73. }
  74. type Stat_t struct {
  75. Dev uint64
  76. _ uint16
  77. Ino uint64
  78. Mode uint32
  79. Nlink uint32
  80. Uid uint32
  81. Gid uint32
  82. Rdev uint64
  83. _ uint16
  84. Size int64
  85. Blksize int64
  86. Blocks int64
  87. Atim Timespec
  88. Mtim Timespec
  89. Ctim Timespec
  90. _ uint64
  91. _ uint64
  92. }
  93. type Dirent struct {
  94. Ino uint64
  95. Off int64
  96. Reclen uint16
  97. Type uint8
  98. Name [256]int8
  99. _ [5]byte
  100. }
  101. type Flock_t struct {
  102. Type int16
  103. Whence int16
  104. Start int64
  105. Len int64
  106. Pid int32
  107. _ int16
  108. _ [2]byte
  109. }
  110. type DmNameList struct {
  111. Dev uint64
  112. Next uint32
  113. Name [0]byte
  114. _ [4]byte
  115. }
  116. const (
  117. FADV_DONTNEED = 0x4
  118. FADV_NOREUSE = 0x5
  119. )
  120. type RawSockaddrNFCLLCP struct {
  121. Sa_family uint16
  122. Dev_idx uint32
  123. Target_idx uint32
  124. Nfc_protocol uint32
  125. Dsap uint8
  126. Ssap uint8
  127. Service_name [63]uint8
  128. Service_name_len uint64
  129. }
  130. type RawSockaddr struct {
  131. Family uint16
  132. Data [14]int8
  133. }
  134. type RawSockaddrAny struct {
  135. Addr RawSockaddr
  136. Pad [96]int8
  137. }
  138. type Iovec struct {
  139. Base *byte
  140. Len uint64
  141. }
  142. type Msghdr struct {
  143. Name *byte
  144. Namelen uint32
  145. Iov *Iovec
  146. Iovlen uint64
  147. Control *byte
  148. Controllen uint64
  149. Flags int32
  150. _ [4]byte
  151. }
  152. type Cmsghdr struct {
  153. Len uint64
  154. Level int32
  155. Type int32
  156. }
  157. type ifreq struct {
  158. Ifrn [16]byte
  159. Ifru [24]byte
  160. }
  161. const (
  162. SizeofSockaddrNFCLLCP = 0x60
  163. SizeofIovec = 0x10
  164. SizeofMsghdr = 0x38
  165. SizeofCmsghdr = 0x10
  166. )
  167. const (
  168. SizeofSockFprog = 0x10
  169. )
  170. type PtraceRegs struct {
  171. Regs [16]uint64
  172. Tstate uint64
  173. Tpc uint64
  174. Tnpc uint64
  175. Y uint32
  176. Magic uint32
  177. }
  178. type FdSet struct {
  179. Bits [16]int64
  180. }
  181. type Sysinfo_t struct {
  182. Uptime int64
  183. Loads [3]uint64
  184. Totalram uint64
  185. Freeram uint64
  186. Sharedram uint64
  187. Bufferram uint64
  188. Totalswap uint64
  189. Freeswap uint64
  190. Procs uint16
  191. Pad uint16
  192. Totalhigh uint64
  193. Freehigh uint64
  194. Unit uint32
  195. _ [0]int8
  196. _ [4]byte
  197. }
  198. type Ustat_t struct {
  199. Tfree int32
  200. Tinode uint64
  201. Fname [6]int8
  202. Fpack [6]int8
  203. _ [4]byte
  204. }
  205. type EpollEvent struct {
  206. Events uint32
  207. _ int32
  208. Fd int32
  209. Pad int32
  210. }
  211. const (
  212. OPEN_TREE_CLOEXEC = 0x400000
  213. )
  214. const (
  215. POLLRDHUP = 0x800
  216. )
  217. type Sigset_t struct {
  218. Val [16]uint64
  219. }
  220. const _C__NSIG = 0x41
  221. type Siginfo struct {
  222. Signo int32
  223. Errno int32
  224. Code int32
  225. _ int32
  226. _ [112]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. Cpu_count uint64
  244. Cpu_delay_total uint64
  245. Blkio_count uint64
  246. Blkio_delay_total uint64
  247. Swapin_count uint64
  248. Swapin_delay_total uint64
  249. Cpu_run_real_total uint64
  250. Cpu_run_virtual_total uint64
  251. Ac_comm [32]int8
  252. Ac_sched uint8
  253. Ac_pad [3]uint8
  254. _ [4]byte
  255. Ac_uid uint32
  256. Ac_gid uint32
  257. Ac_pid uint32
  258. Ac_ppid uint32
  259. Ac_btime uint32
  260. Ac_etime uint64
  261. Ac_utime uint64
  262. Ac_stime uint64
  263. Ac_minflt uint64
  264. Ac_majflt uint64
  265. Coremem uint64
  266. Virtmem uint64
  267. Hiwater_rss uint64
  268. Hiwater_vm uint64
  269. Read_char uint64
  270. Write_char uint64
  271. Read_syscalls uint64
  272. Write_syscalls uint64
  273. Read_bytes uint64
  274. Write_bytes uint64
  275. Cancelled_write_bytes uint64
  276. Nvcsw uint64
  277. Nivcsw uint64
  278. Ac_utimescaled uint64
  279. Ac_stimescaled uint64
  280. Cpu_scaled_run_real_total uint64
  281. Freepages_count uint64
  282. Freepages_delay_total uint64
  283. Thrashing_count uint64
  284. Thrashing_delay_total uint64
  285. Ac_btime64 uint64
  286. Compact_count uint64
  287. Compact_delay_total uint64
  288. Ac_tgid uint32
  289. Ac_tgetime uint64
  290. Ac_exe_dev uint64
  291. Ac_exe_inode uint64
  292. Wpcopy_count uint64
  293. Wpcopy_delay_total uint64
  294. }
  295. type cpuMask uint64
  296. const (
  297. _NCPUBITS = 0x40
  298. )
  299. const (
  300. CBitFieldMaskBit0 = 0x8000000000000000
  301. CBitFieldMaskBit1 = 0x4000000000000000
  302. CBitFieldMaskBit2 = 0x2000000000000000
  303. CBitFieldMaskBit3 = 0x1000000000000000
  304. CBitFieldMaskBit4 = 0x800000000000000
  305. CBitFieldMaskBit5 = 0x400000000000000
  306. CBitFieldMaskBit6 = 0x200000000000000
  307. CBitFieldMaskBit7 = 0x100000000000000
  308. CBitFieldMaskBit8 = 0x80000000000000
  309. CBitFieldMaskBit9 = 0x40000000000000
  310. CBitFieldMaskBit10 = 0x20000000000000
  311. CBitFieldMaskBit11 = 0x10000000000000
  312. CBitFieldMaskBit12 = 0x8000000000000
  313. CBitFieldMaskBit13 = 0x4000000000000
  314. CBitFieldMaskBit14 = 0x2000000000000
  315. CBitFieldMaskBit15 = 0x1000000000000
  316. CBitFieldMaskBit16 = 0x800000000000
  317. CBitFieldMaskBit17 = 0x400000000000
  318. CBitFieldMaskBit18 = 0x200000000000
  319. CBitFieldMaskBit19 = 0x100000000000
  320. CBitFieldMaskBit20 = 0x80000000000
  321. CBitFieldMaskBit21 = 0x40000000000
  322. CBitFieldMaskBit22 = 0x20000000000
  323. CBitFieldMaskBit23 = 0x10000000000
  324. CBitFieldMaskBit24 = 0x8000000000
  325. CBitFieldMaskBit25 = 0x4000000000
  326. CBitFieldMaskBit26 = 0x2000000000
  327. CBitFieldMaskBit27 = 0x1000000000
  328. CBitFieldMaskBit28 = 0x800000000
  329. CBitFieldMaskBit29 = 0x400000000
  330. CBitFieldMaskBit30 = 0x200000000
  331. CBitFieldMaskBit31 = 0x100000000
  332. CBitFieldMaskBit32 = 0x80000000
  333. CBitFieldMaskBit33 = 0x40000000
  334. CBitFieldMaskBit34 = 0x20000000
  335. CBitFieldMaskBit35 = 0x10000000
  336. CBitFieldMaskBit36 = 0x8000000
  337. CBitFieldMaskBit37 = 0x4000000
  338. CBitFieldMaskBit38 = 0x2000000
  339. CBitFieldMaskBit39 = 0x1000000
  340. CBitFieldMaskBit40 = 0x800000
  341. CBitFieldMaskBit41 = 0x400000
  342. CBitFieldMaskBit42 = 0x200000
  343. CBitFieldMaskBit43 = 0x100000
  344. CBitFieldMaskBit44 = 0x80000
  345. CBitFieldMaskBit45 = 0x40000
  346. CBitFieldMaskBit46 = 0x20000
  347. CBitFieldMaskBit47 = 0x10000
  348. CBitFieldMaskBit48 = 0x8000
  349. CBitFieldMaskBit49 = 0x4000
  350. CBitFieldMaskBit50 = 0x2000
  351. CBitFieldMaskBit51 = 0x1000
  352. CBitFieldMaskBit52 = 0x800
  353. CBitFieldMaskBit53 = 0x400
  354. CBitFieldMaskBit54 = 0x200
  355. CBitFieldMaskBit55 = 0x100
  356. CBitFieldMaskBit56 = 0x80
  357. CBitFieldMaskBit57 = 0x40
  358. CBitFieldMaskBit58 = 0x20
  359. CBitFieldMaskBit59 = 0x10
  360. CBitFieldMaskBit60 = 0x8
  361. CBitFieldMaskBit61 = 0x4
  362. CBitFieldMaskBit62 = 0x2
  363. CBitFieldMaskBit63 = 0x1
  364. )
  365. type SockaddrStorage struct {
  366. Family uint16
  367. _ [118]int8
  368. _ uint64
  369. }
  370. type HDGeometry struct {
  371. Heads uint8
  372. Sectors uint8
  373. Cylinders uint16
  374. Start uint64
  375. }
  376. type Statfs_t struct {
  377. Type int64
  378. Bsize int64
  379. Blocks uint64
  380. Bfree uint64
  381. Bavail uint64
  382. Files uint64
  383. Ffree uint64
  384. Fsid Fsid
  385. Namelen int64
  386. Frsize int64
  387. Flags int64
  388. Spare [4]int64
  389. }
  390. type TpacketHdr struct {
  391. Status uint64
  392. Len uint32
  393. Snaplen uint32
  394. Mac uint16
  395. Net uint16
  396. Sec uint32
  397. Usec uint32
  398. _ [4]byte
  399. }
  400. const (
  401. SizeofTpacketHdr = 0x20
  402. )
  403. type RTCPLLInfo struct {
  404. Ctrl int32
  405. Value int32
  406. Max int32
  407. Min int32
  408. Posmult int32
  409. Negmult int32
  410. Clock int64
  411. }
  412. type BlkpgPartition struct {
  413. Start int64
  414. Length int64
  415. Pno int32
  416. Devname [64]uint8
  417. Volname [64]uint8
  418. _ [4]byte
  419. }
  420. const (
  421. BLKPG = 0x20001269
  422. )
  423. type XDPUmemReg struct {
  424. Addr uint64
  425. Len uint64
  426. Size uint32
  427. Headroom uint32
  428. Flags uint32
  429. _ [4]byte
  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 uint32
  545. Inode uint64
  546. Rdevice uint32
  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]uint64
  554. Reserved [4]int8
  555. _ [4]byte
  556. }
  557. type TIPCSubscr struct {
  558. Seq TIPCServiceRange
  559. Timeout uint32
  560. Filter uint32
  561. Handle [8]int8
  562. }
  563. type TIPCSIOCLNReq struct {
  564. Peer uint32
  565. Id uint32
  566. Linkname [68]int8
  567. }
  568. type TIPCSIOCNodeIDReq struct {
  569. Peer uint32
  570. Id [16]int8
  571. }
  572. type PPSKInfo struct {
  573. Assert_sequence uint32
  574. Clear_sequence uint32
  575. Assert_tu PPSKTime
  576. Clear_tu PPSKTime
  577. Current_mode int32
  578. _ [4]byte
  579. }
  580. const (
  581. PPS_GETPARAMS = 0x400870a1
  582. PPS_SETPARAMS = 0x800870a2
  583. PPS_GETCAP = 0x400870a3
  584. PPS_FETCH = 0xc00870a4
  585. )
  586. const (
  587. PIDFD_NONBLOCK = 0x4000
  588. )
  589. type SysvIpcPerm struct {
  590. Key int32
  591. Uid uint32
  592. Gid uint32
  593. Cuid uint32
  594. Cgid uint32
  595. Mode uint32
  596. _ uint16
  597. Seq uint16
  598. _ uint64
  599. _ uint64
  600. }
  601. type SysvShmDesc struct {
  602. Perm SysvIpcPerm
  603. Atime int64
  604. Dtime int64
  605. Ctime int64
  606. Segsz uint64
  607. Cpid int32
  608. Lpid int32
  609. Nattch uint64
  610. _ uint64
  611. _ uint64
  612. }