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

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