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.
 
 

695 lines
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. const (
  222. SIG_BLOCK = 0x1
  223. SIG_UNBLOCK = 0x2
  224. SIG_SETMASK = 0x4
  225. )
  226. type Siginfo struct {
  227. Signo int32
  228. Errno int32
  229. Code int32
  230. _ int32
  231. _ [112]byte
  232. }
  233. type Termios struct {
  234. Iflag uint32
  235. Oflag uint32
  236. Cflag uint32
  237. Lflag uint32
  238. Line uint8
  239. Cc [19]uint8
  240. Ispeed uint32
  241. Ospeed uint32
  242. }
  243. type Taskstats struct {
  244. Version uint16
  245. Ac_exitcode uint32
  246. Ac_flag uint8
  247. Ac_nice uint8
  248. Cpu_count uint64
  249. Cpu_delay_total uint64
  250. Blkio_count uint64
  251. Blkio_delay_total uint64
  252. Swapin_count uint64
  253. Swapin_delay_total uint64
  254. Cpu_run_real_total uint64
  255. Cpu_run_virtual_total uint64
  256. Ac_comm [32]int8
  257. Ac_sched uint8
  258. Ac_pad [3]uint8
  259. _ [4]byte
  260. Ac_uid uint32
  261. Ac_gid uint32
  262. Ac_pid uint32
  263. Ac_ppid uint32
  264. Ac_btime uint32
  265. Ac_etime uint64
  266. Ac_utime uint64
  267. Ac_stime uint64
  268. Ac_minflt uint64
  269. Ac_majflt uint64
  270. Coremem uint64
  271. Virtmem uint64
  272. Hiwater_rss uint64
  273. Hiwater_vm uint64
  274. Read_char uint64
  275. Write_char uint64
  276. Read_syscalls uint64
  277. Write_syscalls uint64
  278. Read_bytes uint64
  279. Write_bytes uint64
  280. Cancelled_write_bytes uint64
  281. Nvcsw uint64
  282. Nivcsw uint64
  283. Ac_utimescaled uint64
  284. Ac_stimescaled uint64
  285. Cpu_scaled_run_real_total uint64
  286. Freepages_count uint64
  287. Freepages_delay_total uint64
  288. Thrashing_count uint64
  289. Thrashing_delay_total uint64
  290. Ac_btime64 uint64
  291. Compact_count uint64
  292. Compact_delay_total uint64
  293. Ac_tgid uint32
  294. Ac_tgetime uint64
  295. Ac_exe_dev uint64
  296. Ac_exe_inode uint64
  297. Wpcopy_count uint64
  298. Wpcopy_delay_total uint64
  299. }
  300. type cpuMask uint64
  301. const (
  302. _NCPUBITS = 0x40
  303. )
  304. const (
  305. CBitFieldMaskBit0 = 0x8000000000000000
  306. CBitFieldMaskBit1 = 0x4000000000000000
  307. CBitFieldMaskBit2 = 0x2000000000000000
  308. CBitFieldMaskBit3 = 0x1000000000000000
  309. CBitFieldMaskBit4 = 0x800000000000000
  310. CBitFieldMaskBit5 = 0x400000000000000
  311. CBitFieldMaskBit6 = 0x200000000000000
  312. CBitFieldMaskBit7 = 0x100000000000000
  313. CBitFieldMaskBit8 = 0x80000000000000
  314. CBitFieldMaskBit9 = 0x40000000000000
  315. CBitFieldMaskBit10 = 0x20000000000000
  316. CBitFieldMaskBit11 = 0x10000000000000
  317. CBitFieldMaskBit12 = 0x8000000000000
  318. CBitFieldMaskBit13 = 0x4000000000000
  319. CBitFieldMaskBit14 = 0x2000000000000
  320. CBitFieldMaskBit15 = 0x1000000000000
  321. CBitFieldMaskBit16 = 0x800000000000
  322. CBitFieldMaskBit17 = 0x400000000000
  323. CBitFieldMaskBit18 = 0x200000000000
  324. CBitFieldMaskBit19 = 0x100000000000
  325. CBitFieldMaskBit20 = 0x80000000000
  326. CBitFieldMaskBit21 = 0x40000000000
  327. CBitFieldMaskBit22 = 0x20000000000
  328. CBitFieldMaskBit23 = 0x10000000000
  329. CBitFieldMaskBit24 = 0x8000000000
  330. CBitFieldMaskBit25 = 0x4000000000
  331. CBitFieldMaskBit26 = 0x2000000000
  332. CBitFieldMaskBit27 = 0x1000000000
  333. CBitFieldMaskBit28 = 0x800000000
  334. CBitFieldMaskBit29 = 0x400000000
  335. CBitFieldMaskBit30 = 0x200000000
  336. CBitFieldMaskBit31 = 0x100000000
  337. CBitFieldMaskBit32 = 0x80000000
  338. CBitFieldMaskBit33 = 0x40000000
  339. CBitFieldMaskBit34 = 0x20000000
  340. CBitFieldMaskBit35 = 0x10000000
  341. CBitFieldMaskBit36 = 0x8000000
  342. CBitFieldMaskBit37 = 0x4000000
  343. CBitFieldMaskBit38 = 0x2000000
  344. CBitFieldMaskBit39 = 0x1000000
  345. CBitFieldMaskBit40 = 0x800000
  346. CBitFieldMaskBit41 = 0x400000
  347. CBitFieldMaskBit42 = 0x200000
  348. CBitFieldMaskBit43 = 0x100000
  349. CBitFieldMaskBit44 = 0x80000
  350. CBitFieldMaskBit45 = 0x40000
  351. CBitFieldMaskBit46 = 0x20000
  352. CBitFieldMaskBit47 = 0x10000
  353. CBitFieldMaskBit48 = 0x8000
  354. CBitFieldMaskBit49 = 0x4000
  355. CBitFieldMaskBit50 = 0x2000
  356. CBitFieldMaskBit51 = 0x1000
  357. CBitFieldMaskBit52 = 0x800
  358. CBitFieldMaskBit53 = 0x400
  359. CBitFieldMaskBit54 = 0x200
  360. CBitFieldMaskBit55 = 0x100
  361. CBitFieldMaskBit56 = 0x80
  362. CBitFieldMaskBit57 = 0x40
  363. CBitFieldMaskBit58 = 0x20
  364. CBitFieldMaskBit59 = 0x10
  365. CBitFieldMaskBit60 = 0x8
  366. CBitFieldMaskBit61 = 0x4
  367. CBitFieldMaskBit62 = 0x2
  368. CBitFieldMaskBit63 = 0x1
  369. )
  370. type SockaddrStorage struct {
  371. Family uint16
  372. Data [118]byte
  373. _ uint64
  374. }
  375. type HDGeometry struct {
  376. Heads uint8
  377. Sectors uint8
  378. Cylinders uint16
  379. Start uint64
  380. }
  381. type Statfs_t struct {
  382. Type int64
  383. Bsize int64
  384. Blocks uint64
  385. Bfree uint64
  386. Bavail uint64
  387. Files uint64
  388. Ffree uint64
  389. Fsid Fsid
  390. Namelen int64
  391. Frsize int64
  392. Flags int64
  393. Spare [4]int64
  394. }
  395. type TpacketHdr struct {
  396. Status uint64
  397. Len uint32
  398. Snaplen uint32
  399. Mac uint16
  400. Net uint16
  401. Sec uint32
  402. Usec uint32
  403. _ [4]byte
  404. }
  405. const (
  406. SizeofTpacketHdr = 0x20
  407. )
  408. type RTCPLLInfo struct {
  409. Ctrl int32
  410. Value int32
  411. Max int32
  412. Min int32
  413. Posmult int32
  414. Negmult int32
  415. Clock int64
  416. }
  417. type BlkpgPartition struct {
  418. Start int64
  419. Length int64
  420. Pno int32
  421. Devname [64]uint8
  422. Volname [64]uint8
  423. _ [4]byte
  424. }
  425. const (
  426. BLKPG = 0x20001269
  427. )
  428. type XDPUmemReg struct {
  429. Addr uint64
  430. Len uint64
  431. Size uint32
  432. Headroom uint32
  433. Flags uint32
  434. _ [4]byte
  435. }
  436. type CryptoUserAlg struct {
  437. Name [64]int8
  438. Driver_name [64]int8
  439. Module_name [64]int8
  440. Type uint32
  441. Mask uint32
  442. Refcnt uint32
  443. Flags uint32
  444. }
  445. type CryptoStatAEAD struct {
  446. Type [64]int8
  447. Encrypt_cnt uint64
  448. Encrypt_tlen uint64
  449. Decrypt_cnt uint64
  450. Decrypt_tlen uint64
  451. Err_cnt uint64
  452. }
  453. type CryptoStatAKCipher struct {
  454. Type [64]int8
  455. Encrypt_cnt uint64
  456. Encrypt_tlen uint64
  457. Decrypt_cnt uint64
  458. Decrypt_tlen uint64
  459. Verify_cnt uint64
  460. Sign_cnt uint64
  461. Err_cnt uint64
  462. }
  463. type CryptoStatCipher struct {
  464. Type [64]int8
  465. Encrypt_cnt uint64
  466. Encrypt_tlen uint64
  467. Decrypt_cnt uint64
  468. Decrypt_tlen uint64
  469. Err_cnt uint64
  470. }
  471. type CryptoStatCompress struct {
  472. Type [64]int8
  473. Compress_cnt uint64
  474. Compress_tlen uint64
  475. Decompress_cnt uint64
  476. Decompress_tlen uint64
  477. Err_cnt uint64
  478. }
  479. type CryptoStatHash struct {
  480. Type [64]int8
  481. Hash_cnt uint64
  482. Hash_tlen uint64
  483. Err_cnt uint64
  484. }
  485. type CryptoStatKPP struct {
  486. Type [64]int8
  487. Setsecret_cnt uint64
  488. Generate_public_key_cnt uint64
  489. Compute_shared_secret_cnt uint64
  490. Err_cnt uint64
  491. }
  492. type CryptoStatRNG struct {
  493. Type [64]int8
  494. Generate_cnt uint64
  495. Generate_tlen uint64
  496. Seed_cnt uint64
  497. Err_cnt uint64
  498. }
  499. type CryptoStatLarval struct {
  500. Type [64]int8
  501. }
  502. type CryptoReportLarval struct {
  503. Type [64]int8
  504. }
  505. type CryptoReportHash struct {
  506. Type [64]int8
  507. Blocksize uint32
  508. Digestsize uint32
  509. }
  510. type CryptoReportCipher struct {
  511. Type [64]int8
  512. Blocksize uint32
  513. Min_keysize uint32
  514. Max_keysize uint32
  515. }
  516. type CryptoReportBlkCipher struct {
  517. Type [64]int8
  518. Geniv [64]int8
  519. Blocksize uint32
  520. Min_keysize uint32
  521. Max_keysize uint32
  522. Ivsize uint32
  523. }
  524. type CryptoReportAEAD struct {
  525. Type [64]int8
  526. Geniv [64]int8
  527. Blocksize uint32
  528. Maxauthsize uint32
  529. Ivsize uint32
  530. }
  531. type CryptoReportComp struct {
  532. Type [64]int8
  533. }
  534. type CryptoReportRNG struct {
  535. Type [64]int8
  536. Seedsize uint32
  537. }
  538. type CryptoReportAKCipher struct {
  539. Type [64]int8
  540. }
  541. type CryptoReportKPP struct {
  542. Type [64]int8
  543. }
  544. type CryptoReportAcomp struct {
  545. Type [64]int8
  546. }
  547. type LoopInfo struct {
  548. Number int32
  549. Device uint32
  550. Inode uint64
  551. Rdevice uint32
  552. Offset int32
  553. Encrypt_type int32
  554. Encrypt_key_size int32
  555. Flags int32
  556. Name [64]int8
  557. Encrypt_key [32]uint8
  558. Init [2]uint64
  559. Reserved [4]int8
  560. _ [4]byte
  561. }
  562. type TIPCSubscr struct {
  563. Seq TIPCServiceRange
  564. Timeout uint32
  565. Filter uint32
  566. Handle [8]int8
  567. }
  568. type TIPCSIOCLNReq struct {
  569. Peer uint32
  570. Id uint32
  571. Linkname [68]int8
  572. }
  573. type TIPCSIOCNodeIDReq struct {
  574. Peer uint32
  575. Id [16]int8
  576. }
  577. type PPSKInfo struct {
  578. Assert_sequence uint32
  579. Clear_sequence uint32
  580. Assert_tu PPSKTime
  581. Clear_tu PPSKTime
  582. Current_mode int32
  583. _ [4]byte
  584. }
  585. const (
  586. PPS_GETPARAMS = 0x400870a1
  587. PPS_SETPARAMS = 0x800870a2
  588. PPS_GETCAP = 0x400870a3
  589. PPS_FETCH = 0xc00870a4
  590. )
  591. const (
  592. PIDFD_NONBLOCK = 0x4000
  593. )
  594. type SysvIpcPerm struct {
  595. Key int32
  596. Uid uint32
  597. Gid uint32
  598. Cuid uint32
  599. Cgid uint32
  600. Mode uint32
  601. _ uint16
  602. Seq uint16
  603. _ uint64
  604. _ uint64
  605. }
  606. type SysvShmDesc struct {
  607. Perm SysvIpcPerm
  608. Atime int64
  609. Dtime int64
  610. Ctime int64
  611. Segsz uint64
  612. Cpid int32
  613. Lpid int32
  614. Nattch uint64
  615. _ uint64
  616. _ uint64
  617. }