ztypes_linux_sparc64.go 11 KB

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