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.

ztypes_linux_sparc64.go 12KB

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