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

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