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 11KB

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