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