Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

714 wiersze
13 KiB

  1. // cgo -godefs -objdir=/tmp/s390x/cgo -- -Wall -Werror -static -I/tmp/s390x/include -fsigned-char linux/types.go | go run mkpost.go
  2. // Code generated by the command above; see README.md. DO NOT EDIT.
  3. //go:build s390x && linux
  4. // +build s390x,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 int64
  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. Ino uint64
  76. Nlink uint64
  77. Mode uint32
  78. Uid uint32
  79. Gid uint32
  80. _ int32
  81. Rdev uint64
  82. Size int64
  83. Atim Timespec
  84. Mtim Timespec
  85. Ctim Timespec
  86. Blksize int64
  87. Blocks int64
  88. _ [3]int64
  89. }
  90. type Dirent struct {
  91. Ino uint64
  92. Off int64
  93. Reclen uint16
  94. Type uint8
  95. Name [256]int8
  96. _ [5]byte
  97. }
  98. type Flock_t struct {
  99. Type int16
  100. Whence int16
  101. Start int64
  102. Len int64
  103. Pid int32
  104. _ [4]byte
  105. }
  106. type DmNameList struct {
  107. Dev uint64
  108. Next uint32
  109. Name [0]byte
  110. _ [4]byte
  111. }
  112. const (
  113. FADV_DONTNEED = 0x6
  114. FADV_NOREUSE = 0x7
  115. )
  116. type RawSockaddrNFCLLCP struct {
  117. Sa_family uint16
  118. Dev_idx uint32
  119. Target_idx uint32
  120. Nfc_protocol uint32
  121. Dsap uint8
  122. Ssap uint8
  123. Service_name [63]uint8
  124. Service_name_len uint64
  125. }
  126. type RawSockaddr struct {
  127. Family uint16
  128. Data [14]int8
  129. }
  130. type RawSockaddrAny struct {
  131. Addr RawSockaddr
  132. Pad [96]int8
  133. }
  134. type Iovec struct {
  135. Base *byte
  136. Len uint64
  137. }
  138. type Msghdr struct {
  139. Name *byte
  140. Namelen uint32
  141. Iov *Iovec
  142. Iovlen uint64
  143. Control *byte
  144. Controllen uint64
  145. Flags int32
  146. _ [4]byte
  147. }
  148. type Cmsghdr struct {
  149. Len uint64
  150. Level int32
  151. Type int32
  152. }
  153. type ifreq struct {
  154. Ifrn [16]byte
  155. Ifru [24]byte
  156. }
  157. const (
  158. SizeofSockaddrNFCLLCP = 0x60
  159. SizeofIovec = 0x10
  160. SizeofMsghdr = 0x38
  161. SizeofCmsghdr = 0x10
  162. )
  163. const (
  164. SizeofSockFprog = 0x10
  165. )
  166. type PtraceRegs struct {
  167. Psw PtracePsw
  168. Gprs [16]uint64
  169. Acrs [16]uint32
  170. Orig_gpr2 uint64
  171. Fp_regs PtraceFpregs
  172. Per_info PtracePer
  173. Ieee_instruction_pointer uint64
  174. }
  175. type PtracePsw struct {
  176. Mask uint64
  177. Addr uint64
  178. }
  179. type PtraceFpregs struct {
  180. Fpc uint32
  181. Fprs [16]float64
  182. }
  183. type PtracePer struct {
  184. Control_regs [3]uint64
  185. _ [8]byte
  186. Starting_addr uint64
  187. Ending_addr uint64
  188. Perc_atmid uint16
  189. Address uint64
  190. Access_id uint8
  191. _ [7]byte
  192. }
  193. type FdSet struct {
  194. Bits [16]int64
  195. }
  196. type Sysinfo_t struct {
  197. Uptime int64
  198. Loads [3]uint64
  199. Totalram uint64
  200. Freeram uint64
  201. Sharedram uint64
  202. Bufferram uint64
  203. Totalswap uint64
  204. Freeswap uint64
  205. Procs uint16
  206. Pad uint16
  207. Totalhigh uint64
  208. Freehigh uint64
  209. Unit uint32
  210. _ [0]int8
  211. _ [4]byte
  212. }
  213. type Ustat_t struct {
  214. Tfree int32
  215. Tinode uint64
  216. Fname [6]int8
  217. Fpack [6]int8
  218. _ [4]byte
  219. }
  220. type EpollEvent struct {
  221. Events uint32
  222. _ int32
  223. Fd int32
  224. Pad int32
  225. }
  226. const (
  227. OPEN_TREE_CLOEXEC = 0x80000
  228. )
  229. const (
  230. POLLRDHUP = 0x2000
  231. )
  232. type Sigset_t struct {
  233. Val [16]uint64
  234. }
  235. const _C__NSIG = 0x41
  236. const (
  237. SIG_BLOCK = 0x0
  238. SIG_UNBLOCK = 0x1
  239. SIG_SETMASK = 0x2
  240. )
  241. type Siginfo struct {
  242. Signo int32
  243. Errno int32
  244. Code int32
  245. _ int32
  246. _ [112]byte
  247. }
  248. type Termios struct {
  249. Iflag uint32
  250. Oflag uint32
  251. Cflag uint32
  252. Lflag uint32
  253. Line uint8
  254. Cc [19]uint8
  255. Ispeed uint32
  256. Ospeed uint32
  257. }
  258. type Taskstats struct {
  259. Version uint16
  260. Ac_exitcode uint32
  261. Ac_flag uint8
  262. Ac_nice uint8
  263. Cpu_count uint64
  264. Cpu_delay_total uint64
  265. Blkio_count uint64
  266. Blkio_delay_total uint64
  267. Swapin_count uint64
  268. Swapin_delay_total uint64
  269. Cpu_run_real_total uint64
  270. Cpu_run_virtual_total uint64
  271. Ac_comm [32]int8
  272. Ac_sched uint8
  273. Ac_pad [3]uint8
  274. _ [4]byte
  275. Ac_uid uint32
  276. Ac_gid uint32
  277. Ac_pid uint32
  278. Ac_ppid uint32
  279. Ac_btime uint32
  280. Ac_etime uint64
  281. Ac_utime uint64
  282. Ac_stime uint64
  283. Ac_minflt uint64
  284. Ac_majflt uint64
  285. Coremem uint64
  286. Virtmem uint64
  287. Hiwater_rss uint64
  288. Hiwater_vm uint64
  289. Read_char uint64
  290. Write_char uint64
  291. Read_syscalls uint64
  292. Write_syscalls uint64
  293. Read_bytes uint64
  294. Write_bytes uint64
  295. Cancelled_write_bytes uint64
  296. Nvcsw uint64
  297. Nivcsw uint64
  298. Ac_utimescaled uint64
  299. Ac_stimescaled uint64
  300. Cpu_scaled_run_real_total uint64
  301. Freepages_count uint64
  302. Freepages_delay_total uint64
  303. Thrashing_count uint64
  304. Thrashing_delay_total uint64
  305. Ac_btime64 uint64
  306. Compact_count uint64
  307. Compact_delay_total uint64
  308. Ac_tgid uint32
  309. Ac_tgetime uint64
  310. Ac_exe_dev uint64
  311. Ac_exe_inode uint64
  312. Wpcopy_count uint64
  313. Wpcopy_delay_total uint64
  314. }
  315. type cpuMask uint64
  316. const (
  317. _NCPUBITS = 0x40
  318. )
  319. const (
  320. CBitFieldMaskBit0 = 0x8000000000000000
  321. CBitFieldMaskBit1 = 0x4000000000000000
  322. CBitFieldMaskBit2 = 0x2000000000000000
  323. CBitFieldMaskBit3 = 0x1000000000000000
  324. CBitFieldMaskBit4 = 0x800000000000000
  325. CBitFieldMaskBit5 = 0x400000000000000
  326. CBitFieldMaskBit6 = 0x200000000000000
  327. CBitFieldMaskBit7 = 0x100000000000000
  328. CBitFieldMaskBit8 = 0x80000000000000
  329. CBitFieldMaskBit9 = 0x40000000000000
  330. CBitFieldMaskBit10 = 0x20000000000000
  331. CBitFieldMaskBit11 = 0x10000000000000
  332. CBitFieldMaskBit12 = 0x8000000000000
  333. CBitFieldMaskBit13 = 0x4000000000000
  334. CBitFieldMaskBit14 = 0x2000000000000
  335. CBitFieldMaskBit15 = 0x1000000000000
  336. CBitFieldMaskBit16 = 0x800000000000
  337. CBitFieldMaskBit17 = 0x400000000000
  338. CBitFieldMaskBit18 = 0x200000000000
  339. CBitFieldMaskBit19 = 0x100000000000
  340. CBitFieldMaskBit20 = 0x80000000000
  341. CBitFieldMaskBit21 = 0x40000000000
  342. CBitFieldMaskBit22 = 0x20000000000
  343. CBitFieldMaskBit23 = 0x10000000000
  344. CBitFieldMaskBit24 = 0x8000000000
  345. CBitFieldMaskBit25 = 0x4000000000
  346. CBitFieldMaskBit26 = 0x2000000000
  347. CBitFieldMaskBit27 = 0x1000000000
  348. CBitFieldMaskBit28 = 0x800000000
  349. CBitFieldMaskBit29 = 0x400000000
  350. CBitFieldMaskBit30 = 0x200000000
  351. CBitFieldMaskBit31 = 0x100000000
  352. CBitFieldMaskBit32 = 0x80000000
  353. CBitFieldMaskBit33 = 0x40000000
  354. CBitFieldMaskBit34 = 0x20000000
  355. CBitFieldMaskBit35 = 0x10000000
  356. CBitFieldMaskBit36 = 0x8000000
  357. CBitFieldMaskBit37 = 0x4000000
  358. CBitFieldMaskBit38 = 0x2000000
  359. CBitFieldMaskBit39 = 0x1000000
  360. CBitFieldMaskBit40 = 0x800000
  361. CBitFieldMaskBit41 = 0x400000
  362. CBitFieldMaskBit42 = 0x200000
  363. CBitFieldMaskBit43 = 0x100000
  364. CBitFieldMaskBit44 = 0x80000
  365. CBitFieldMaskBit45 = 0x40000
  366. CBitFieldMaskBit46 = 0x20000
  367. CBitFieldMaskBit47 = 0x10000
  368. CBitFieldMaskBit48 = 0x8000
  369. CBitFieldMaskBit49 = 0x4000
  370. CBitFieldMaskBit50 = 0x2000
  371. CBitFieldMaskBit51 = 0x1000
  372. CBitFieldMaskBit52 = 0x800
  373. CBitFieldMaskBit53 = 0x400
  374. CBitFieldMaskBit54 = 0x200
  375. CBitFieldMaskBit55 = 0x100
  376. CBitFieldMaskBit56 = 0x80
  377. CBitFieldMaskBit57 = 0x40
  378. CBitFieldMaskBit58 = 0x20
  379. CBitFieldMaskBit59 = 0x10
  380. CBitFieldMaskBit60 = 0x8
  381. CBitFieldMaskBit61 = 0x4
  382. CBitFieldMaskBit62 = 0x2
  383. CBitFieldMaskBit63 = 0x1
  384. )
  385. type SockaddrStorage struct {
  386. Family uint16
  387. Data [118]byte
  388. _ uint64
  389. }
  390. type HDGeometry struct {
  391. Heads uint8
  392. Sectors uint8
  393. Cylinders uint16
  394. Start uint64
  395. }
  396. type Statfs_t struct {
  397. Type uint32
  398. Bsize uint32
  399. Blocks uint64
  400. Bfree uint64
  401. Bavail uint64
  402. Files uint64
  403. Ffree uint64
  404. Fsid Fsid
  405. Namelen uint32
  406. Frsize uint32
  407. Flags uint32
  408. Spare [4]uint32
  409. _ [4]byte
  410. }
  411. type TpacketHdr struct {
  412. Status uint64
  413. Len uint32
  414. Snaplen uint32
  415. Mac uint16
  416. Net uint16
  417. Sec uint32
  418. Usec uint32
  419. _ [4]byte
  420. }
  421. const (
  422. SizeofTpacketHdr = 0x20
  423. )
  424. type RTCPLLInfo struct {
  425. Ctrl int32
  426. Value int32
  427. Max int32
  428. Min int32
  429. Posmult int32
  430. Negmult int32
  431. Clock int64
  432. }
  433. type BlkpgPartition struct {
  434. Start int64
  435. Length int64
  436. Pno int32
  437. Devname [64]uint8
  438. Volname [64]uint8
  439. _ [4]byte
  440. }
  441. const (
  442. BLKPG = 0x1269
  443. )
  444. type XDPUmemReg struct {
  445. Addr uint64
  446. Len uint64
  447. Size uint32
  448. Headroom uint32
  449. Flags uint32
  450. _ [4]byte
  451. }
  452. type CryptoUserAlg struct {
  453. Name [64]int8
  454. Driver_name [64]int8
  455. Module_name [64]int8
  456. Type uint32
  457. Mask uint32
  458. Refcnt uint32
  459. Flags uint32
  460. }
  461. type CryptoStatAEAD struct {
  462. Type [64]int8
  463. Encrypt_cnt uint64
  464. Encrypt_tlen uint64
  465. Decrypt_cnt uint64
  466. Decrypt_tlen uint64
  467. Err_cnt uint64
  468. }
  469. type CryptoStatAKCipher struct {
  470. Type [64]int8
  471. Encrypt_cnt uint64
  472. Encrypt_tlen uint64
  473. Decrypt_cnt uint64
  474. Decrypt_tlen uint64
  475. Verify_cnt uint64
  476. Sign_cnt uint64
  477. Err_cnt uint64
  478. }
  479. type CryptoStatCipher struct {
  480. Type [64]int8
  481. Encrypt_cnt uint64
  482. Encrypt_tlen uint64
  483. Decrypt_cnt uint64
  484. Decrypt_tlen uint64
  485. Err_cnt uint64
  486. }
  487. type CryptoStatCompress struct {
  488. Type [64]int8
  489. Compress_cnt uint64
  490. Compress_tlen uint64
  491. Decompress_cnt uint64
  492. Decompress_tlen uint64
  493. Err_cnt uint64
  494. }
  495. type CryptoStatHash struct {
  496. Type [64]int8
  497. Hash_cnt uint64
  498. Hash_tlen uint64
  499. Err_cnt uint64
  500. }
  501. type CryptoStatKPP struct {
  502. Type [64]int8
  503. Setsecret_cnt uint64
  504. Generate_public_key_cnt uint64
  505. Compute_shared_secret_cnt uint64
  506. Err_cnt uint64
  507. }
  508. type CryptoStatRNG struct {
  509. Type [64]int8
  510. Generate_cnt uint64
  511. Generate_tlen uint64
  512. Seed_cnt uint64
  513. Err_cnt uint64
  514. }
  515. type CryptoStatLarval struct {
  516. Type [64]int8
  517. }
  518. type CryptoReportLarval struct {
  519. Type [64]int8
  520. }
  521. type CryptoReportHash struct {
  522. Type [64]int8
  523. Blocksize uint32
  524. Digestsize uint32
  525. }
  526. type CryptoReportCipher struct {
  527. Type [64]int8
  528. Blocksize uint32
  529. Min_keysize uint32
  530. Max_keysize uint32
  531. }
  532. type CryptoReportBlkCipher struct {
  533. Type [64]int8
  534. Geniv [64]int8
  535. Blocksize uint32
  536. Min_keysize uint32
  537. Max_keysize uint32
  538. Ivsize uint32
  539. }
  540. type CryptoReportAEAD struct {
  541. Type [64]int8
  542. Geniv [64]int8
  543. Blocksize uint32
  544. Maxauthsize uint32
  545. Ivsize uint32
  546. }
  547. type CryptoReportComp struct {
  548. Type [64]int8
  549. }
  550. type CryptoReportRNG struct {
  551. Type [64]int8
  552. Seedsize uint32
  553. }
  554. type CryptoReportAKCipher struct {
  555. Type [64]int8
  556. }
  557. type CryptoReportKPP struct {
  558. Type [64]int8
  559. }
  560. type CryptoReportAcomp struct {
  561. Type [64]int8
  562. }
  563. type LoopInfo struct {
  564. Number int32
  565. Device uint16
  566. Inode uint64
  567. Rdevice uint16
  568. Offset int32
  569. Encrypt_type int32
  570. Encrypt_key_size int32
  571. Flags int32
  572. Name [64]int8
  573. Encrypt_key [32]uint8
  574. Init [2]uint64
  575. Reserved [4]int8
  576. _ [4]byte
  577. }
  578. type TIPCSubscr struct {
  579. Seq TIPCServiceRange
  580. Timeout uint32
  581. Filter uint32
  582. Handle [8]int8
  583. }
  584. type TIPCSIOCLNReq struct {
  585. Peer uint32
  586. Id uint32
  587. Linkname [68]int8
  588. }
  589. type TIPCSIOCNodeIDReq struct {
  590. Peer uint32
  591. Id [16]int8
  592. }
  593. type PPSKInfo struct {
  594. Assert_sequence uint32
  595. Clear_sequence uint32
  596. Assert_tu PPSKTime
  597. Clear_tu PPSKTime
  598. Current_mode int32
  599. _ [4]byte
  600. }
  601. const (
  602. PPS_GETPARAMS = 0x800870a1
  603. PPS_SETPARAMS = 0x400870a2
  604. PPS_GETCAP = 0x800870a3
  605. PPS_FETCH = 0xc00870a4
  606. )
  607. const (
  608. PIDFD_NONBLOCK = 0x800
  609. )
  610. type SysvIpcPerm struct {
  611. Key int32
  612. Uid uint32
  613. Gid uint32
  614. Cuid uint32
  615. Cgid uint32
  616. Mode uint32
  617. _ uint16
  618. Seq uint16
  619. _ uint64
  620. _ uint64
  621. }
  622. type SysvShmDesc struct {
  623. Perm SysvIpcPerm
  624. Segsz uint64
  625. Atime int64
  626. Dtime int64
  627. Ctime int64
  628. Cpid int32
  629. Lpid int32
  630. Nattch uint64
  631. _ uint64
  632. _ uint64
  633. }