blob: cca1b6be2706dfec92ecac9bc93f9defc9b57736 [file] [log] [blame]
Matteo Scandoloa4285862020-12-01 18:10:10 -08001// 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 Ac_btime64 uint64
304}
305
306type cpuMask uint64
307
308const (
309 _NCPUBITS = 0x40
310)
311
312const (
313 CBitFieldMaskBit0 = 0x8000000000000000
314 CBitFieldMaskBit1 = 0x4000000000000000
315 CBitFieldMaskBit2 = 0x2000000000000000
316 CBitFieldMaskBit3 = 0x1000000000000000
317 CBitFieldMaskBit4 = 0x800000000000000
318 CBitFieldMaskBit5 = 0x400000000000000
319 CBitFieldMaskBit6 = 0x200000000000000
320 CBitFieldMaskBit7 = 0x100000000000000
321 CBitFieldMaskBit8 = 0x80000000000000
322 CBitFieldMaskBit9 = 0x40000000000000
323 CBitFieldMaskBit10 = 0x20000000000000
324 CBitFieldMaskBit11 = 0x10000000000000
325 CBitFieldMaskBit12 = 0x8000000000000
326 CBitFieldMaskBit13 = 0x4000000000000
327 CBitFieldMaskBit14 = 0x2000000000000
328 CBitFieldMaskBit15 = 0x1000000000000
329 CBitFieldMaskBit16 = 0x800000000000
330 CBitFieldMaskBit17 = 0x400000000000
331 CBitFieldMaskBit18 = 0x200000000000
332 CBitFieldMaskBit19 = 0x100000000000
333 CBitFieldMaskBit20 = 0x80000000000
334 CBitFieldMaskBit21 = 0x40000000000
335 CBitFieldMaskBit22 = 0x20000000000
336 CBitFieldMaskBit23 = 0x10000000000
337 CBitFieldMaskBit24 = 0x8000000000
338 CBitFieldMaskBit25 = 0x4000000000
339 CBitFieldMaskBit26 = 0x2000000000
340 CBitFieldMaskBit27 = 0x1000000000
341 CBitFieldMaskBit28 = 0x800000000
342 CBitFieldMaskBit29 = 0x400000000
343 CBitFieldMaskBit30 = 0x200000000
344 CBitFieldMaskBit31 = 0x100000000
345 CBitFieldMaskBit32 = 0x80000000
346 CBitFieldMaskBit33 = 0x40000000
347 CBitFieldMaskBit34 = 0x20000000
348 CBitFieldMaskBit35 = 0x10000000
349 CBitFieldMaskBit36 = 0x8000000
350 CBitFieldMaskBit37 = 0x4000000
351 CBitFieldMaskBit38 = 0x2000000
352 CBitFieldMaskBit39 = 0x1000000
353 CBitFieldMaskBit40 = 0x800000
354 CBitFieldMaskBit41 = 0x400000
355 CBitFieldMaskBit42 = 0x200000
356 CBitFieldMaskBit43 = 0x100000
357 CBitFieldMaskBit44 = 0x80000
358 CBitFieldMaskBit45 = 0x40000
359 CBitFieldMaskBit46 = 0x20000
360 CBitFieldMaskBit47 = 0x10000
361 CBitFieldMaskBit48 = 0x8000
362 CBitFieldMaskBit49 = 0x4000
363 CBitFieldMaskBit50 = 0x2000
364 CBitFieldMaskBit51 = 0x1000
365 CBitFieldMaskBit52 = 0x800
366 CBitFieldMaskBit53 = 0x400
367 CBitFieldMaskBit54 = 0x200
368 CBitFieldMaskBit55 = 0x100
369 CBitFieldMaskBit56 = 0x80
370 CBitFieldMaskBit57 = 0x40
371 CBitFieldMaskBit58 = 0x20
372 CBitFieldMaskBit59 = 0x10
373 CBitFieldMaskBit60 = 0x8
374 CBitFieldMaskBit61 = 0x4
375 CBitFieldMaskBit62 = 0x2
376 CBitFieldMaskBit63 = 0x1
377)
378
379type SockaddrStorage struct {
380 Family uint16
381 _ [118]int8
382 _ uint64
383}
384
385type HDGeometry struct {
386 Heads uint8
387 Sectors uint8
388 Cylinders uint16
389 Start uint64
390}
391
392type Statfs_t struct {
393 Type uint32
394 Bsize uint32
395 Blocks uint64
396 Bfree uint64
397 Bavail uint64
398 Files uint64
399 Ffree uint64
400 Fsid Fsid
401 Namelen uint32
402 Frsize uint32
403 Flags uint32
404 Spare [4]uint32
405 _ [4]byte
406}
407
408type TpacketHdr struct {
409 Status uint64
410 Len uint32
411 Snaplen uint32
412 Mac uint16
413 Net uint16
414 Sec uint32
415 Usec uint32
416 _ [4]byte
417}
418
419const (
420 SizeofTpacketHdr = 0x20
421)
422
423type RTCPLLInfo struct {
424 Ctrl int32
425 Value int32
426 Max int32
427 Min int32
428 Posmult int32
429 Negmult int32
430 Clock int64
431}
432
433type BlkpgPartition struct {
434 Start int64
435 Length int64
436 Pno int32
437 Devname [64]uint8
438 Volname [64]uint8
439 _ [4]byte
440}
441
442const (
443 BLKPG = 0x1269
444)
445
446type XDPUmemReg struct {
447 Addr uint64
448 Len uint64
449 Size uint32
450 Headroom uint32
451 Flags uint32
452 _ [4]byte
453}
454
455type CryptoUserAlg struct {
456 Name [64]int8
457 Driver_name [64]int8
458 Module_name [64]int8
459 Type uint32
460 Mask uint32
461 Refcnt uint32
462 Flags uint32
463}
464
465type CryptoStatAEAD struct {
466 Type [64]int8
467 Encrypt_cnt uint64
468 Encrypt_tlen uint64
469 Decrypt_cnt uint64
470 Decrypt_tlen uint64
471 Err_cnt uint64
472}
473
474type CryptoStatAKCipher struct {
475 Type [64]int8
476 Encrypt_cnt uint64
477 Encrypt_tlen uint64
478 Decrypt_cnt uint64
479 Decrypt_tlen uint64
480 Verify_cnt uint64
481 Sign_cnt uint64
482 Err_cnt uint64
483}
484
485type CryptoStatCipher struct {
486 Type [64]int8
487 Encrypt_cnt uint64
488 Encrypt_tlen uint64
489 Decrypt_cnt uint64
490 Decrypt_tlen uint64
491 Err_cnt uint64
492}
493
494type CryptoStatCompress struct {
495 Type [64]int8
496 Compress_cnt uint64
497 Compress_tlen uint64
498 Decompress_cnt uint64
499 Decompress_tlen uint64
500 Err_cnt uint64
501}
502
503type CryptoStatHash struct {
504 Type [64]int8
505 Hash_cnt uint64
506 Hash_tlen uint64
507 Err_cnt uint64
508}
509
510type CryptoStatKPP struct {
511 Type [64]int8
512 Setsecret_cnt uint64
513 Generate_public_key_cnt uint64
514 Compute_shared_secret_cnt uint64
515 Err_cnt uint64
516}
517
518type CryptoStatRNG struct {
519 Type [64]int8
520 Generate_cnt uint64
521 Generate_tlen uint64
522 Seed_cnt uint64
523 Err_cnt uint64
524}
525
526type CryptoStatLarval struct {
527 Type [64]int8
528}
529
530type CryptoReportLarval struct {
531 Type [64]int8
532}
533
534type CryptoReportHash struct {
535 Type [64]int8
536 Blocksize uint32
537 Digestsize uint32
538}
539
540type CryptoReportCipher struct {
541 Type [64]int8
542 Blocksize uint32
543 Min_keysize uint32
544 Max_keysize uint32
545}
546
547type CryptoReportBlkCipher struct {
548 Type [64]int8
549 Geniv [64]int8
550 Blocksize uint32
551 Min_keysize uint32
552 Max_keysize uint32
553 Ivsize uint32
554}
555
556type CryptoReportAEAD struct {
557 Type [64]int8
558 Geniv [64]int8
559 Blocksize uint32
560 Maxauthsize uint32
561 Ivsize uint32
562}
563
564type CryptoReportComp struct {
565 Type [64]int8
566}
567
568type CryptoReportRNG struct {
569 Type [64]int8
570 Seedsize uint32
571}
572
573type CryptoReportAKCipher struct {
574 Type [64]int8
575}
576
577type CryptoReportKPP struct {
578 Type [64]int8
579}
580
581type CryptoReportAcomp struct {
582 Type [64]int8
583}
584
585type LoopInfo struct {
586 Number int32
587 Device uint16
588 Inode uint64
589 Rdevice uint16
590 Offset int32
591 Encrypt_type int32
592 Encrypt_key_size int32
593 Flags int32
594 Name [64]int8
595 Encrypt_key [32]uint8
596 Init [2]uint64
597 Reserved [4]int8
598 _ [4]byte
599}
600
601type TIPCSubscr struct {
602 Seq TIPCServiceRange
603 Timeout uint32
604 Filter uint32
605 Handle [8]int8
606}
607
608type TIPCSIOCLNReq struct {
609 Peer uint32
610 Id uint32
611 Linkname [68]int8
612}
613
614type TIPCSIOCNodeIDReq struct {
615 Peer uint32
616 Id [16]int8
617}