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_s390x.go 13KB

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