blob: 349f483a80ea630111fc5a3d747223e093b67424 [file] [log] [blame]
khenaidooac637102019-01-14 15:44:34 -05001// 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 (
Andrea Campanella3614a922021-02-25 12:40:42 +01009 SizeofPtr = 0x8
10 SizeofLong = 0x8
khenaidooac637102019-01-14 15:44:34 -050011)
12
13type (
Andrea Campanella3614a922021-02-25 12:40:42 +010014 _C_long int64
khenaidooac637102019-01-14 15:44:34 -050015)
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
khenaidooac637102019-01-14 15:44:34 -050084type 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
khenaidooac637102019-01-14 15:44:34 -0500102type Dirent struct {
103 Ino uint64
104 Off int64
105 Reclen uint16
106 Type uint8
107 Name [256]int8
108 _ [5]byte
109}
110
khenaidooac637102019-01-14 15:44:34 -0500111type Flock_t struct {
112 Type int16
113 Whence int16
114 Start int64
115 Len int64
116 Pid int32
117 _ [4]byte
118}
119
Andrea Campanella3614a922021-02-25 12:40:42 +0100120type DmNameList struct {
121 Dev uint64
122 Next uint32
123 Name [0]byte
124 _ [4]byte
khenaidooac637102019-01-14 15:44:34 -0500125}
126
127const (
Andrea Campanella3614a922021-02-25 12:40:42 +0100128 FADV_DONTNEED = 0x6
129 FADV_NOREUSE = 0x7
khenaidooac637102019-01-14 15:44:34 -0500130)
131
khenaidooac637102019-01-14 15:44:34 -0500132type RawSockaddr struct {
133 Family uint16
134 Data [14]int8
135}
136
137type RawSockaddrAny struct {
138 Addr RawSockaddr
139 Pad [96]int8
140}
141
khenaidooac637102019-01-14 15:44:34 -0500142type Iovec struct {
143 Base *byte
144 Len uint64
145}
146
khenaidooac637102019-01-14 15:44:34 -0500147type Msghdr struct {
148 Name *byte
149 Namelen uint32
150 Iov *Iovec
151 Iovlen uint64
152 Control *byte
153 Controllen uint64
154 Flags int32
155 _ [4]byte
156}
157
158type Cmsghdr struct {
159 Len uint64
160 Level int32
161 Type int32
162}
163
khenaidooac637102019-01-14 15:44:34 -0500164const (
Andrea Campanella3614a922021-02-25 12:40:42 +0100165 SizeofIovec = 0x10
166 SizeofMsghdr = 0x38
167 SizeofCmsghdr = 0x10
khenaidooac637102019-01-14 15:44:34 -0500168)
169
170const (
Andrea Campanella3614a922021-02-25 12:40:42 +0100171 SizeofSockFprog = 0x10
khenaidooac637102019-01-14 15:44:34 -0500172)
173
khenaidooac637102019-01-14 15:44:34 -0500174type PtraceRegs struct {
175 Psw PtracePsw
176 Gprs [16]uint64
177 Acrs [16]uint32
178 Orig_gpr2 uint64
179 Fp_regs PtraceFpregs
180 Per_info PtracePer
181 Ieee_instruction_pointer uint64
182}
183
184type PtracePsw struct {
185 Mask uint64
186 Addr uint64
187}
188
189type PtraceFpregs struct {
190 Fpc uint32
191 Fprs [16]float64
192}
193
194type PtracePer struct {
195 _ [0]uint64
196 _ [32]byte
197 Starting_addr uint64
198 Ending_addr uint64
199 Perc_atmid uint16
200 Address uint64
201 Access_id uint8
202 _ [7]byte
203}
204
205type FdSet struct {
206 Bits [16]int64
207}
208
209type Sysinfo_t struct {
210 Uptime int64
211 Loads [3]uint64
212 Totalram uint64
213 Freeram uint64
214 Sharedram uint64
215 Bufferram uint64
216 Totalswap uint64
217 Freeswap uint64
218 Procs uint16
219 Pad uint16
220 Totalhigh uint64
221 Freehigh uint64
222 Unit uint32
223 _ [0]int8
224 _ [4]byte
225}
226
khenaidooac637102019-01-14 15:44:34 -0500227type Ustat_t struct {
228 Tfree int32
229 Tinode uint64
230 Fname [6]int8
231 Fpack [6]int8
232 _ [4]byte
233}
234
235type EpollEvent struct {
236 Events uint32
237 _ int32
238 Fd int32
239 Pad int32
240}
241
242const (
khenaidooac637102019-01-14 15:44:34 -0500243 POLLRDHUP = 0x2000
khenaidooac637102019-01-14 15:44:34 -0500244)
245
246type Sigset_t struct {
247 Val [16]uint64
248}
249
Scott Baker8461e152019-10-01 14:44:30 -0700250const _C__NSIG = 0x41
251
khenaidooac637102019-01-14 15:44:34 -0500252type Termios struct {
253 Iflag uint32
254 Oflag uint32
255 Cflag uint32
256 Lflag uint32
257 Line uint8
258 Cc [19]uint8
259 Ispeed uint32
260 Ospeed uint32
261}
262
khenaidooac637102019-01-14 15:44:34 -0500263type Taskstats struct {
264 Version uint16
265 Ac_exitcode uint32
266 Ac_flag uint8
267 Ac_nice uint8
268 Cpu_count uint64
269 Cpu_delay_total uint64
270 Blkio_count uint64
271 Blkio_delay_total uint64
272 Swapin_count uint64
273 Swapin_delay_total uint64
274 Cpu_run_real_total uint64
275 Cpu_run_virtual_total uint64
276 Ac_comm [32]int8
277 Ac_sched uint8
278 Ac_pad [3]uint8
279 _ [4]byte
280 Ac_uid uint32
281 Ac_gid uint32
282 Ac_pid uint32
283 Ac_ppid uint32
284 Ac_btime uint32
285 Ac_etime uint64
286 Ac_utime uint64
287 Ac_stime uint64
288 Ac_minflt uint64
289 Ac_majflt uint64
290 Coremem uint64
291 Virtmem uint64
292 Hiwater_rss uint64
293 Hiwater_vm uint64
294 Read_char uint64
295 Write_char uint64
296 Read_syscalls uint64
297 Write_syscalls uint64
298 Read_bytes uint64
299 Write_bytes uint64
300 Cancelled_write_bytes uint64
301 Nvcsw uint64
302 Nivcsw uint64
303 Ac_utimescaled uint64
304 Ac_stimescaled uint64
305 Cpu_scaled_run_real_total uint64
306 Freepages_count uint64
307 Freepages_delay_total uint64
308 Thrashing_count uint64
309 Thrashing_delay_total uint64
Andrea Campanella3614a922021-02-25 12:40:42 +0100310 Ac_btime64 uint64
khenaidooac637102019-01-14 15:44:34 -0500311}
312
khenaidooac637102019-01-14 15:44:34 -0500313type cpuMask uint64
314
315const (
Andrea Campanella3614a922021-02-25 12:40:42 +0100316 _NCPUBITS = 0x40
khenaidooac637102019-01-14 15:44:34 -0500317)
318
319const (
320 CBitFieldMaskBit0 = 0x8000000000000000
321 CBitFieldMaskBit1 = 0x4000000000000000
322 CBitFieldMaskBit2 = 0x2000000000000000
323 CBitFieldMaskBit3 = 0x1000000000000000
324 CBitFieldMaskBit4 = 0x800000000000000
325 CBitFieldMaskBit5 = 0x400000000000000
326 CBitFieldMaskBit6 = 0x200000000000000
327 CBitFieldMaskBit7 = 0x100000000000000
328 CBitFieldMaskBit8 = 0x80000000000000
329 CBitFieldMaskBit9 = 0x40000000000000
330 CBitFieldMaskBit10 = 0x20000000000000
331 CBitFieldMaskBit11 = 0x10000000000000
332 CBitFieldMaskBit12 = 0x8000000000000
333 CBitFieldMaskBit13 = 0x4000000000000
334 CBitFieldMaskBit14 = 0x2000000000000
335 CBitFieldMaskBit15 = 0x1000000000000
336 CBitFieldMaskBit16 = 0x800000000000
337 CBitFieldMaskBit17 = 0x400000000000
338 CBitFieldMaskBit18 = 0x200000000000
339 CBitFieldMaskBit19 = 0x100000000000
340 CBitFieldMaskBit20 = 0x80000000000
341 CBitFieldMaskBit21 = 0x40000000000
342 CBitFieldMaskBit22 = 0x20000000000
343 CBitFieldMaskBit23 = 0x10000000000
344 CBitFieldMaskBit24 = 0x8000000000
345 CBitFieldMaskBit25 = 0x4000000000
346 CBitFieldMaskBit26 = 0x2000000000
347 CBitFieldMaskBit27 = 0x1000000000
348 CBitFieldMaskBit28 = 0x800000000
349 CBitFieldMaskBit29 = 0x400000000
350 CBitFieldMaskBit30 = 0x200000000
351 CBitFieldMaskBit31 = 0x100000000
352 CBitFieldMaskBit32 = 0x80000000
353 CBitFieldMaskBit33 = 0x40000000
354 CBitFieldMaskBit34 = 0x20000000
355 CBitFieldMaskBit35 = 0x10000000
356 CBitFieldMaskBit36 = 0x8000000
357 CBitFieldMaskBit37 = 0x4000000
358 CBitFieldMaskBit38 = 0x2000000
359 CBitFieldMaskBit39 = 0x1000000
360 CBitFieldMaskBit40 = 0x800000
361 CBitFieldMaskBit41 = 0x400000
362 CBitFieldMaskBit42 = 0x200000
363 CBitFieldMaskBit43 = 0x100000
364 CBitFieldMaskBit44 = 0x80000
365 CBitFieldMaskBit45 = 0x40000
366 CBitFieldMaskBit46 = 0x20000
367 CBitFieldMaskBit47 = 0x10000
368 CBitFieldMaskBit48 = 0x8000
369 CBitFieldMaskBit49 = 0x4000
370 CBitFieldMaskBit50 = 0x2000
371 CBitFieldMaskBit51 = 0x1000
372 CBitFieldMaskBit52 = 0x800
373 CBitFieldMaskBit53 = 0x400
374 CBitFieldMaskBit54 = 0x200
375 CBitFieldMaskBit55 = 0x100
376 CBitFieldMaskBit56 = 0x80
377 CBitFieldMaskBit57 = 0x40
378 CBitFieldMaskBit58 = 0x20
379 CBitFieldMaskBit59 = 0x10
380 CBitFieldMaskBit60 = 0x8
381 CBitFieldMaskBit61 = 0x4
382 CBitFieldMaskBit62 = 0x2
383 CBitFieldMaskBit63 = 0x1
384)
385
386type SockaddrStorage struct {
387 Family uint16
388 _ [118]int8
389 _ uint64
390}
391
khenaidooac637102019-01-14 15:44:34 -0500392type HDGeometry struct {
393 Heads uint8
394 Sectors uint8
395 Cylinders uint16
396 Start uint64
397}
398
khenaidooac637102019-01-14 15:44:34 -0500399type Statfs_t struct {
400 Type uint32
401 Bsize uint32
402 Blocks uint64
403 Bfree uint64
404 Bavail uint64
405 Files uint64
406 Ffree uint64
407 Fsid Fsid
408 Namelen uint32
409 Frsize uint32
410 Flags uint32
411 Spare [4]uint32
412 _ [4]byte
413}
414
khenaidooac637102019-01-14 15:44:34 -0500415type TpacketHdr struct {
416 Status uint64
417 Len uint32
418 Snaplen uint32
419 Mac uint16
420 Net uint16
421 Sec uint32
422 Usec uint32
423 _ [4]byte
424}
425
khenaidooac637102019-01-14 15:44:34 -0500426const (
Andrea Campanella3614a922021-02-25 12:40:42 +0100427 SizeofTpacketHdr = 0x20
khenaidooac637102019-01-14 15:44:34 -0500428)
429
khenaidooac637102019-01-14 15:44:34 -0500430type RTCPLLInfo struct {
431 Ctrl int32
432 Value int32
433 Max int32
434 Min int32
435 Posmult int32
436 Negmult int32
437 Clock int64
438}
439
khenaidooac637102019-01-14 15:44:34 -0500440type BlkpgPartition struct {
441 Start int64
442 Length int64
443 Pno int32
444 Devname [64]uint8
445 Volname [64]uint8
446 _ [4]byte
447}
448
449const (
Andrea Campanella3614a922021-02-25 12:40:42 +0100450 BLKPG = 0x1269
khenaidooac637102019-01-14 15:44:34 -0500451)
452
khenaidooac637102019-01-14 15:44:34 -0500453type XDPUmemReg struct {
454 Addr uint64
455 Len uint64
456 Size uint32
457 Headroom uint32
Andrea Campanella3614a922021-02-25 12:40:42 +0100458 Flags uint32
459 _ [4]byte
khenaidooac637102019-01-14 15:44:34 -0500460}
461
Scott Baker8461e152019-10-01 14:44:30 -0700462type CryptoUserAlg struct {
463 Name [64]int8
464 Driver_name [64]int8
465 Module_name [64]int8
466 Type uint32
467 Mask uint32
468 Refcnt uint32
469 Flags uint32
470}
471
472type CryptoStatAEAD struct {
473 Type [64]int8
474 Encrypt_cnt uint64
475 Encrypt_tlen uint64
476 Decrypt_cnt uint64
477 Decrypt_tlen uint64
478 Err_cnt uint64
479}
480
481type CryptoStatAKCipher struct {
482 Type [64]int8
483 Encrypt_cnt uint64
484 Encrypt_tlen uint64
485 Decrypt_cnt uint64
486 Decrypt_tlen uint64
487 Verify_cnt uint64
488 Sign_cnt uint64
489 Err_cnt uint64
490}
491
492type CryptoStatCipher struct {
493 Type [64]int8
494 Encrypt_cnt uint64
495 Encrypt_tlen uint64
496 Decrypt_cnt uint64
497 Decrypt_tlen uint64
498 Err_cnt uint64
499}
500
501type CryptoStatCompress struct {
502 Type [64]int8
503 Compress_cnt uint64
504 Compress_tlen uint64
505 Decompress_cnt uint64
506 Decompress_tlen uint64
507 Err_cnt uint64
508}
509
510type CryptoStatHash struct {
511 Type [64]int8
512 Hash_cnt uint64
513 Hash_tlen uint64
514 Err_cnt uint64
515}
516
517type CryptoStatKPP struct {
518 Type [64]int8
519 Setsecret_cnt uint64
520 Generate_public_key_cnt uint64
521 Compute_shared_secret_cnt uint64
522 Err_cnt uint64
523}
524
525type CryptoStatRNG struct {
526 Type [64]int8
527 Generate_cnt uint64
528 Generate_tlen uint64
529 Seed_cnt uint64
530 Err_cnt uint64
531}
532
533type CryptoStatLarval struct {
534 Type [64]int8
535}
536
537type CryptoReportLarval struct {
538 Type [64]int8
539}
540
541type CryptoReportHash struct {
542 Type [64]int8
543 Blocksize uint32
544 Digestsize uint32
545}
546
547type CryptoReportCipher struct {
548 Type [64]int8
549 Blocksize uint32
550 Min_keysize uint32
551 Max_keysize uint32
552}
553
554type CryptoReportBlkCipher struct {
555 Type [64]int8
556 Geniv [64]int8
557 Blocksize uint32
558 Min_keysize uint32
559 Max_keysize uint32
560 Ivsize uint32
561}
562
563type CryptoReportAEAD struct {
564 Type [64]int8
565 Geniv [64]int8
566 Blocksize uint32
567 Maxauthsize uint32
568 Ivsize uint32
569}
570
571type CryptoReportComp struct {
572 Type [64]int8
573}
574
575type CryptoReportRNG struct {
576 Type [64]int8
577 Seedsize uint32
578}
579
580type CryptoReportAKCipher struct {
581 Type [64]int8
582}
583
584type CryptoReportKPP struct {
585 Type [64]int8
586}
587
588type CryptoReportAcomp struct {
589 Type [64]int8
590}
591
Scott Baker8461e152019-10-01 14:44:30 -0700592type LoopInfo struct {
593 Number int32
594 Device uint16
595 Inode uint64
596 Rdevice uint16
597 Offset int32
598 Encrypt_type int32
599 Encrypt_key_size int32
600 Flags int32
601 Name [64]int8
602 Encrypt_key [32]uint8
603 Init [2]uint64
604 Reserved [4]int8
605 _ [4]byte
606}
Scott Baker8461e152019-10-01 14:44:30 -0700607
608type TIPCSubscr struct {
609 Seq TIPCServiceRange
610 Timeout uint32
611 Filter uint32
612 Handle [8]int8
613}
614
Scott Baker8461e152019-10-01 14:44:30 -0700615type TIPCSIOCLNReq struct {
616 Peer uint32
617 Id uint32
618 Linkname [68]int8
619}
620
621type TIPCSIOCNodeIDReq struct {
622 Peer uint32
623 Id [16]int8
624}