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 11KB

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