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