blob: 6106715d5c60e780335026949c73c52e0217f46b [file] [log] [blame]
Johan Jansson7c45f0c2021-11-12 11:41:28 +02001// cgo -godefs -- -Wall -Werror -static -I/tmp/include -fsigned-char /build/unix/linux/types.go | go run mkpost.go
Joe Richeyea9bcad2017-03-08 10:50:27 -08002// Code generated by the command above; see README.md. DO NOT EDIT.
3
Russ Cox9a761022021-02-19 22:57:36 -05004//go:build s390x && linux
Michael Munday33267e02016-05-11 12:29:03 -04005// +build s390x,linux
Michael Munday33267e02016-05-11 12:29:03 -04006
7package unix
8
9const (
Johan Jansson5d559ad2020-02-28 00:39:38 +020010 SizeofPtr = 0x8
11 SizeofLong = 0x8
Michael Munday33267e02016-05-11 12:29:03 -040012)
13
14type (
Johan Jansson5d559ad2020-02-28 00:39:38 +020015 _C_long int64
Michael Munday33267e02016-05-11 12:29:03 -040016)
17
18type Timespec struct {
19 Sec int64
20 Nsec int64
21}
22
23type Timeval struct {
24 Sec int64
25 Usec int64
26}
27
28type Timex struct {
29 Modes uint32
Michael Munday33267e02016-05-11 12:29:03 -040030 Offset int64
31 Freq int64
32 Maxerror int64
33 Esterror int64
34 Status int32
Michael Munday33267e02016-05-11 12:29:03 -040035 Constant int64
36 Precision int64
37 Tolerance int64
38 Time Timeval
39 Tick int64
40 Ppsfreq int64
41 Jitter int64
42 Shift int32
Michael Munday33267e02016-05-11 12:29:03 -040043 Stabil int64
44 Jitcnt int64
45 Calcnt int64
46 Errcnt int64
47 Stbcnt int64
48 Tai int32
49 _ [44]byte
50}
51
52type Time_t int64
53
54type Tms struct {
55 Utime int64
56 Stime int64
57 Cutime int64
58 Cstime int64
59}
60
61type Utimbuf struct {
62 Actime int64
63 Modtime int64
64}
65
66type Rusage struct {
67 Utime Timeval
68 Stime Timeval
69 Maxrss int64
70 Ixrss int64
71 Idrss int64
72 Isrss int64
73 Minflt int64
74 Majflt int64
75 Nswap int64
76 Inblock int64
77 Oublock int64
78 Msgsnd int64
79 Msgrcv int64
80 Nsignals int64
81 Nvcsw int64
82 Nivcsw int64
83}
84
Michael Munday33267e02016-05-11 12:29:03 -040085type Stat_t struct {
86 Dev uint64
87 Ino uint64
88 Nlink uint64
89 Mode uint32
90 Uid uint32
91 Gid uint32
92 _ int32
93 Rdev uint64
94 Size int64
95 Atim Timespec
96 Mtim Timespec
97 Ctim Timespec
98 Blksize int64
99 Blocks int64
100 _ [3]int64
101}
102
Michael Munday33267e02016-05-11 12:29:03 -0400103type Dirent struct {
104 Ino uint64
105 Off int64
106 Reclen uint16
107 Type uint8
108 Name [256]int8
109 _ [5]byte
110}
111
Michael Munday33267e02016-05-11 12:29:03 -0400112type Flock_t struct {
113 Type int16
114 Whence int16
Michael Munday33267e02016-05-11 12:29:03 -0400115 Start int64
116 Len int64
117 Pid int32
118 _ [4]byte
119}
120
Anatol Pomozov3d37ad52020-08-01 13:08:58 -0700121type DmNameList struct {
122 Dev uint64
123 Next uint32
124 Name [0]byte
125 _ [4]byte
126}
127
Michael Munday33267e02016-05-11 12:29:03 -0400128const (
Johan Jansson5d559ad2020-02-28 00:39:38 +0200129 FADV_DONTNEED = 0x6
130 FADV_NOREUSE = 0x7
Michael Munday33267e02016-05-11 12:29:03 -0400131)
132
Tom Thorogood96654042021-05-30 22:21:48 +0930133type RawSockaddrNFCLLCP struct {
134 Sa_family uint16
135 Dev_idx uint32
136 Target_idx uint32
137 Nfc_protocol uint32
138 Dsap uint8
139 Ssap uint8
140 Service_name [63]uint8
141 Service_name_len uint64
142}
143
Michael Munday33267e02016-05-11 12:29:03 -0400144type RawSockaddr struct {
145 Family uint16
146 Data [14]int8
147}
148
149type RawSockaddrAny struct {
150 Addr RawSockaddr
151 Pad [96]int8
152}
153
Michael Munday33267e02016-05-11 12:29:03 -0400154type Iovec struct {
155 Base *byte
156 Len uint64
157}
158
Michael Munday33267e02016-05-11 12:29:03 -0400159type Msghdr struct {
160 Name *byte
161 Namelen uint32
Michael Munday33267e02016-05-11 12:29:03 -0400162 Iov *Iovec
163 Iovlen uint64
164 Control *byte
165 Controllen uint64
166 Flags int32
167 _ [4]byte
168}
169
170type Cmsghdr struct {
171 Len uint64
172 Level int32
173 Type int32
174}
175
Matt Layher89466822021-08-09 16:32:58 -0400176type ifreq struct {
177 Ifrn [16]byte
178 Ifru [24]byte
179}
180
Michael Munday33267e02016-05-11 12:29:03 -0400181const (
Tom Thorogood96654042021-05-30 22:21:48 +0930182 SizeofSockaddrNFCLLCP = 0x60
183 SizeofIovec = 0x10
184 SizeofMsghdr = 0x38
185 SizeofCmsghdr = 0x10
Michael Munday33267e02016-05-11 12:29:03 -0400186)
187
188const (
Johan Jansson5d559ad2020-02-28 00:39:38 +0200189 SizeofSockFprog = 0x10
Michael Munday33267e02016-05-11 12:29:03 -0400190)
191
Michael Munday33267e02016-05-11 12:29:03 -0400192type PtraceRegs struct {
193 Psw PtracePsw
194 Gprs [16]uint64
195 Acrs [16]uint32
196 Orig_gpr2 uint64
197 Fp_regs PtraceFpregs
198 Per_info PtracePer
199 Ieee_instruction_pointer uint64
200}
201
202type PtracePsw struct {
203 Mask uint64
204 Addr uint64
205}
206
207type PtraceFpregs struct {
208 Fpc uint32
Michael Munday33267e02016-05-11 12:29:03 -0400209 Fprs [16]float64
210}
211
212type PtracePer struct {
Tobias Klauserf2425482022-02-19 15:30:37 +0100213 Control_regs [3]uint64
214 _ [8]byte
Michael Munday33267e02016-05-11 12:29:03 -0400215 Starting_addr uint64
216 Ending_addr uint64
217 Perc_atmid uint16
Michael Munday33267e02016-05-11 12:29:03 -0400218 Address uint64
219 Access_id uint8
220 _ [7]byte
221}
222
223type FdSet struct {
224 Bits [16]int64
225}
226
227type Sysinfo_t struct {
228 Uptime int64
229 Loads [3]uint64
230 Totalram uint64
231 Freeram uint64
232 Sharedram uint64
233 Bufferram uint64
234 Totalswap uint64
235 Freeswap uint64
236 Procs uint16
237 Pad uint16
Michael Munday33267e02016-05-11 12:29:03 -0400238 Totalhigh uint64
239 Freehigh uint64
240 Unit uint32
241 _ [0]int8
242 _ [4]byte
243}
244
Michael Munday33267e02016-05-11 12:29:03 -0400245type Ustat_t struct {
246 Tfree int32
Michael Munday33267e02016-05-11 12:29:03 -0400247 Tinode uint64
248 Fname [6]int8
249 Fpack [6]int8
250 _ [4]byte
251}
252
253type EpollEvent struct {
254 Events uint32
255 _ int32
256 Fd int32
257 Pad int32
258}
259
260const (
Eric Lagergren6acee932022-04-03 11:18:00 -0700261 OPEN_TREE_CLOEXEC = 0x80000
262)
263
264const (
kortschak7f918dd2016-06-02 17:41:10 +0930265 POLLRDHUP = 0x2000
kortschak7f918dd2016-06-02 17:41:10 +0930266)
267
kortschak5a8c7f22016-06-14 14:28:28 +0930268type Sigset_t struct {
Tobias Klauserb126b212018-04-16 12:06:24 +0200269 Val [16]uint64
kortschak5a8c7f22016-06-14 14:28:28 +0930270}
271
Yuval Pavel Zholkoveradf421d2019-05-25 19:31:25 +0300272const _C__NSIG = 0x41
273
Matt Layhera9b59b02022-03-18 09:50:32 -0400274type Siginfo struct {
275 Signo int32
276 Errno int32
277 Code int32
278 _ int32
279 _ [112]byte
280}
281
Michael Munday33267e02016-05-11 12:29:03 -0400282type Termios struct {
283 Iflag uint32
284 Oflag uint32
285 Cflag uint32
286 Lflag uint32
287 Line uint8
288 Cc [19]uint8
289 Ispeed uint32
290 Ospeed uint32
291}
Tobias Klausercd2c2762017-07-17 12:05:24 +0200292
Matt Layher22e23b72017-08-25 11:04:33 -0400293type Taskstats struct {
294 Version uint16
Matt Layher22e23b72017-08-25 11:04:33 -0400295 Ac_exitcode uint32
296 Ac_flag uint8
297 Ac_nice uint8
Matt Layher22e23b72017-08-25 11:04:33 -0400298 Cpu_count uint64
299 Cpu_delay_total uint64
300 Blkio_count uint64
301 Blkio_delay_total uint64
302 Swapin_count uint64
303 Swapin_delay_total uint64
304 Cpu_run_real_total uint64
305 Cpu_run_virtual_total uint64
306 Ac_comm [32]int8
307 Ac_sched uint8
308 Ac_pad [3]uint8
309 _ [4]byte
310 Ac_uid uint32
311 Ac_gid uint32
312 Ac_pid uint32
313 Ac_ppid uint32
314 Ac_btime uint32
Matt Layher22e23b72017-08-25 11:04:33 -0400315 Ac_etime uint64
316 Ac_utime uint64
317 Ac_stime uint64
318 Ac_minflt uint64
319 Ac_majflt uint64
320 Coremem uint64
321 Virtmem uint64
322 Hiwater_rss uint64
323 Hiwater_vm uint64
324 Read_char uint64
325 Write_char uint64
326 Read_syscalls uint64
327 Write_syscalls uint64
328 Read_bytes uint64
329 Write_bytes uint64
330 Cancelled_write_bytes uint64
331 Nvcsw uint64
332 Nivcsw uint64
333 Ac_utimescaled uint64
334 Ac_stimescaled uint64
335 Cpu_scaled_run_real_total uint64
336 Freepages_count uint64
337 Freepages_delay_total uint64
Tobias Klauser82a175f2019-01-02 10:32:50 +0100338 Thrashing_count uint64
339 Thrashing_delay_total uint64
Tobias Klauserc3d80252020-03-31 13:15:04 +0200340 Ac_btime64 uint64
Tobias Klauser3f8b8152022-04-06 09:35:20 +0200341 Compact_count uint64
342 Compact_delay_total uint64
Matt Layher22e23b72017-08-25 11:04:33 -0400343}
Matt Layher2d6f6f82017-08-25 14:47:02 -0400344
Tobias Klauser12d9d5b2018-01-02 15:27:15 +0100345type cpuMask uint64
346
347const (
Johan Jansson5d559ad2020-02-28 00:39:38 +0200348 _NCPUBITS = 0x40
Adam Sindelar2f57af42018-04-09 13:02:03 +0200349)
350
Adam Sindelarf6f35292018-04-11 13:57:14 +0200351const (
352 CBitFieldMaskBit0 = 0x8000000000000000
353 CBitFieldMaskBit1 = 0x4000000000000000
354 CBitFieldMaskBit2 = 0x2000000000000000
355 CBitFieldMaskBit3 = 0x1000000000000000
356 CBitFieldMaskBit4 = 0x800000000000000
357 CBitFieldMaskBit5 = 0x400000000000000
358 CBitFieldMaskBit6 = 0x200000000000000
359 CBitFieldMaskBit7 = 0x100000000000000
360 CBitFieldMaskBit8 = 0x80000000000000
361 CBitFieldMaskBit9 = 0x40000000000000
362 CBitFieldMaskBit10 = 0x20000000000000
363 CBitFieldMaskBit11 = 0x10000000000000
364 CBitFieldMaskBit12 = 0x8000000000000
365 CBitFieldMaskBit13 = 0x4000000000000
366 CBitFieldMaskBit14 = 0x2000000000000
367 CBitFieldMaskBit15 = 0x1000000000000
368 CBitFieldMaskBit16 = 0x800000000000
369 CBitFieldMaskBit17 = 0x400000000000
370 CBitFieldMaskBit18 = 0x200000000000
371 CBitFieldMaskBit19 = 0x100000000000
372 CBitFieldMaskBit20 = 0x80000000000
373 CBitFieldMaskBit21 = 0x40000000000
374 CBitFieldMaskBit22 = 0x20000000000
375 CBitFieldMaskBit23 = 0x10000000000
376 CBitFieldMaskBit24 = 0x8000000000
377 CBitFieldMaskBit25 = 0x4000000000
378 CBitFieldMaskBit26 = 0x2000000000
379 CBitFieldMaskBit27 = 0x1000000000
380 CBitFieldMaskBit28 = 0x800000000
381 CBitFieldMaskBit29 = 0x400000000
382 CBitFieldMaskBit30 = 0x200000000
383 CBitFieldMaskBit31 = 0x100000000
384 CBitFieldMaskBit32 = 0x80000000
385 CBitFieldMaskBit33 = 0x40000000
386 CBitFieldMaskBit34 = 0x20000000
387 CBitFieldMaskBit35 = 0x10000000
388 CBitFieldMaskBit36 = 0x8000000
389 CBitFieldMaskBit37 = 0x4000000
390 CBitFieldMaskBit38 = 0x2000000
391 CBitFieldMaskBit39 = 0x1000000
392 CBitFieldMaskBit40 = 0x800000
393 CBitFieldMaskBit41 = 0x400000
394 CBitFieldMaskBit42 = 0x200000
395 CBitFieldMaskBit43 = 0x100000
396 CBitFieldMaskBit44 = 0x80000
397 CBitFieldMaskBit45 = 0x40000
398 CBitFieldMaskBit46 = 0x20000
399 CBitFieldMaskBit47 = 0x10000
400 CBitFieldMaskBit48 = 0x8000
401 CBitFieldMaskBit49 = 0x4000
402 CBitFieldMaskBit50 = 0x2000
403 CBitFieldMaskBit51 = 0x1000
404 CBitFieldMaskBit52 = 0x800
405 CBitFieldMaskBit53 = 0x400
406 CBitFieldMaskBit54 = 0x200
407 CBitFieldMaskBit55 = 0x100
408 CBitFieldMaskBit56 = 0x80
409 CBitFieldMaskBit57 = 0x40
410 CBitFieldMaskBit58 = 0x20
411 CBitFieldMaskBit59 = 0x10
412 CBitFieldMaskBit60 = 0x8
413 CBitFieldMaskBit61 = 0x4
414 CBitFieldMaskBit62 = 0x2
415 CBitFieldMaskBit63 = 0x1
416)
Matt Layher9b006092018-04-18 13:57:21 -0400417
418type SockaddrStorage struct {
419 Family uint16
420 _ [118]int8
421 _ uint64
422}
423
Matt Layher79b0c682018-04-18 17:20:05 -0400424type HDGeometry struct {
425 Heads uint8
426 Sectors uint8
427 Cylinders uint16
Matt Layher79b0c682018-04-18 17:20:05 -0400428 Start uint64
429}
430
Tobias Klauser9950ad12018-05-11 10:07:35 +0200431type Statfs_t struct {
432 Type uint32
433 Bsize uint32
434 Blocks uint64
435 Bfree uint64
436 Bavail uint64
437 Files uint64
438 Ffree uint64
439 Fsid Fsid
440 Namelen uint32
441 Frsize uint32
442 Flags uint32
443 Spare [4]uint32
444 _ [4]byte
445}
446
Tobias Klauser7c87d132018-05-14 09:31:37 +0200447type TpacketHdr struct {
448 Status uint64
449 Len uint32
450 Snaplen uint32
451 Mac uint16
452 Net uint16
453 Sec uint32
454 Usec uint32
455 _ [4]byte
456}
457
Tobias Klauser7c87d132018-05-14 09:31:37 +0200458const (
Johan Jansson5d559ad2020-02-28 00:39:38 +0200459 SizeofTpacketHdr = 0x20
Tobias Klauser7c87d132018-05-14 09:31:37 +0200460)
461
Michael Stapelberg56ede362018-06-13 17:50:41 +0200462type RTCPLLInfo struct {
463 Ctrl int32
464 Value int32
465 Max int32
466 Min int32
467 Posmult int32
468 Negmult int32
469 Clock int64
470}
Brad Fitzpatricke3f93882018-07-24 17:16:09 +0000471
Brad Fitzpatricke3f93882018-07-24 17:16:09 +0000472type BlkpgPartition struct {
473 Start int64
474 Length int64
475 Pno int32
476 Devname [64]uint8
477 Volname [64]uint8
478 _ [4]byte
479}
480
481const (
Johan Jansson5d559ad2020-02-28 00:39:38 +0200482 BLKPG = 0x1269
Brad Fitzpatricke3f93882018-07-24 17:16:09 +0000483)
Casey Callendrello3dc43352018-07-17 22:24:21 +0200484
Matt Layherd47a0f32018-09-21 12:08:21 -0400485type XDPUmemReg struct {
486 Addr uint64
487 Len uint64
488 Size uint32
489 Headroom uint32
Matt Layher8a8471f2019-11-25 12:02:17 -0500490 Flags uint32
491 _ [4]byte
Matt Layherd47a0f32018-09-21 12:08:21 -0400492}
493
Matt Layher18eb32c2019-04-24 13:45:03 -0400494type CryptoUserAlg struct {
495 Name [64]int8
496 Driver_name [64]int8
497 Module_name [64]int8
498 Type uint32
499 Mask uint32
500 Refcnt uint32
501 Flags uint32
502}
503
504type CryptoStatAEAD struct {
505 Type [64]int8
506 Encrypt_cnt uint64
507 Encrypt_tlen uint64
508 Decrypt_cnt uint64
509 Decrypt_tlen uint64
510 Err_cnt uint64
511}
512
513type CryptoStatAKCipher struct {
514 Type [64]int8
515 Encrypt_cnt uint64
516 Encrypt_tlen uint64
517 Decrypt_cnt uint64
518 Decrypt_tlen uint64
519 Verify_cnt uint64
520 Sign_cnt uint64
521 Err_cnt uint64
522}
523
524type CryptoStatCipher struct {
525 Type [64]int8
526 Encrypt_cnt uint64
527 Encrypt_tlen uint64
528 Decrypt_cnt uint64
529 Decrypt_tlen uint64
530 Err_cnt uint64
531}
532
533type CryptoStatCompress struct {
534 Type [64]int8
535 Compress_cnt uint64
536 Compress_tlen uint64
537 Decompress_cnt uint64
538 Decompress_tlen uint64
539 Err_cnt uint64
540}
541
542type CryptoStatHash struct {
543 Type [64]int8
544 Hash_cnt uint64
545 Hash_tlen uint64
546 Err_cnt uint64
547}
548
549type CryptoStatKPP struct {
550 Type [64]int8
551 Setsecret_cnt uint64
552 Generate_public_key_cnt uint64
553 Compute_shared_secret_cnt uint64
554 Err_cnt uint64
555}
556
557type CryptoStatRNG struct {
558 Type [64]int8
559 Generate_cnt uint64
560 Generate_tlen uint64
561 Seed_cnt uint64
562 Err_cnt uint64
563}
564
565type CryptoStatLarval struct {
566 Type [64]int8
567}
568
569type CryptoReportLarval struct {
570 Type [64]int8
571}
572
573type CryptoReportHash struct {
574 Type [64]int8
575 Blocksize uint32
576 Digestsize uint32
577}
578
579type CryptoReportCipher struct {
580 Type [64]int8
581 Blocksize uint32
582 Min_keysize uint32
583 Max_keysize uint32
584}
585
586type CryptoReportBlkCipher struct {
587 Type [64]int8
588 Geniv [64]int8
589 Blocksize uint32
590 Min_keysize uint32
591 Max_keysize uint32
592 Ivsize uint32
593}
594
595type CryptoReportAEAD struct {
596 Type [64]int8
597 Geniv [64]int8
598 Blocksize uint32
599 Maxauthsize uint32
600 Ivsize uint32
601}
602
603type CryptoReportComp struct {
604 Type [64]int8
605}
606
607type CryptoReportRNG struct {
608 Type [64]int8
609 Seedsize uint32
610}
611
612type CryptoReportAKCipher struct {
613 Type [64]int8
614}
615
616type CryptoReportKPP struct {
617 Type [64]int8
618}
619
620type CryptoReportAcomp struct {
621 Type [64]int8
622}
Lehner Florian12bbe5a2019-05-03 11:38:26 +0200623
Tobias Klauserfae7ac52019-07-11 11:16:12 +0200624type LoopInfo struct {
625 Number int32
626 Device uint16
627 Inode uint64
628 Rdevice uint16
629 Offset int32
630 Encrypt_type int32
631 Encrypt_key_size int32
632 Flags int32
633 Name [64]int8
634 Encrypt_key [32]uint8
635 Init [2]uint64
636 Reserved [4]int8
637 _ [4]byte
638}
Matt Layher43c01162019-07-29 14:45:48 -0400639
640type TIPCSubscr struct {
641 Seq TIPCServiceRange
642 Timeout uint32
643 Filter uint32
644 Handle [8]int8
645}
646
Matt Layher43c01162019-07-29 14:45:48 -0400647type TIPCSIOCLNReq struct {
648 Peer uint32
649 Id uint32
650 Linkname [68]int8
651}
652
653type TIPCSIOCNodeIDReq struct {
654 Peer uint32
655 Id [16]int8
656}
Ben Cartwright-Cox0fcbb8f2020-10-27 12:50:27 +0000657
658type PPSKInfo struct {
659 Assert_sequence uint32
660 Clear_sequence uint32
661 Assert_tu PPSKTime
662 Clear_tu PPSKTime
663 Current_mode int32
664 _ [4]byte
665}
666
667const (
668 PPS_GETPARAMS = 0x800870a1
669 PPS_SETPARAMS = 0x400870a2
670 PPS_GETCAP = 0x800870a3
671 PPS_FETCH = 0xc00870a4
672)
Lorenz Bauer528a39c2021-09-08 10:09:57 +0100673
674const (
675 PIDFD_NONBLOCK = 0x800
676)
Dustin Spicuzza969570c2021-09-30 14:11:05 +0000677
678type SysvIpcPerm struct {
679 Key int32
680 Uid uint32
681 Gid uint32
682 Cuid uint32
683 Cgid uint32
684 Mode uint32
685 _ uint16
686 Seq uint16
687 _ uint64
688 _ uint64
689}
690type SysvShmDesc struct {
691 Perm SysvIpcPerm
692 Segsz uint64
693 Atime int64
694 Dtime int64
695 Ctime int64
696 Cpid int32
697 Lpid int32
698 Nattch uint64
699 _ uint64
700 _ uint64
701}