ztypes_linux_s390x.go 11 KB

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