blob: 5188d142b9f526e1275b5ac0641ce1f5874468e2 [file] [log] [blame]
kesavandc71914f2022-03-25 11:19:03 +05301// cgo -godefs -- -Wall -Werror -static -I/tmp/include /build/unix/linux/types.go | go run mkpost.go
kesavand2cde6582020-06-22 04:56:23 -04002// Code generated by the command above; see README.md. DO NOT EDIT.
3
Andrea Campanella764f1ed2022-03-24 11:46:38 +01004//go:build ppc64 && linux
kesavand2cde6582020-06-22 04:56:23 -04005// +build ppc64,linux
6
7package unix
8
9const (
Andrea Campanella764f1ed2022-03-24 11:46:38 +010010 SizeofPtr = 0x8
11 SizeofLong = 0x8
kesavand2cde6582020-06-22 04:56:23 -040012)
13
14type (
Andrea Campanella764f1ed2022-03-24 11:46:38 +010015 _C_long int64
kesavand2cde6582020-06-22 04:56:23 -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
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
kesavand2cde6582020-06-22 04:56:23 -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 Blksize int64
96 Blocks int64
97 Atim Timespec
98 Mtim Timespec
99 Ctim Timespec
100 _ uint64
101 _ uint64
102 _ uint64
103}
104
kesavand2cde6582020-06-22 04:56:23 -0400105type Dirent struct {
106 Ino uint64
107 Off int64
108 Reclen uint16
109 Type uint8
110 Name [256]uint8
111 _ [5]byte
112}
113
kesavand2cde6582020-06-22 04:56:23 -0400114type Flock_t struct {
115 Type int16
116 Whence int16
117 Start int64
118 Len int64
119 Pid int32
120 _ [4]byte
121}
122
Andrea Campanella764f1ed2022-03-24 11:46:38 +0100123type DmNameList struct {
124 Dev uint64
125 Next uint32
126 Name [0]byte
127 _ [4]byte
kesavand2cde6582020-06-22 04:56:23 -0400128}
129
130const (
Andrea Campanella764f1ed2022-03-24 11:46:38 +0100131 FADV_DONTNEED = 0x4
132 FADV_NOREUSE = 0x5
kesavand2cde6582020-06-22 04:56:23 -0400133)
134
kesavandc71914f2022-03-25 11:19:03 +0530135type RawSockaddrNFCLLCP struct {
136 Sa_family uint16
137 Dev_idx uint32
138 Target_idx uint32
139 Nfc_protocol uint32
140 Dsap uint8
141 Ssap uint8
142 Service_name [63]uint8
143 Service_name_len uint64
144}
145
kesavand2cde6582020-06-22 04:56:23 -0400146type RawSockaddr struct {
147 Family uint16
148 Data [14]uint8
149}
150
151type RawSockaddrAny struct {
152 Addr RawSockaddr
153 Pad [96]uint8
154}
155
kesavand2cde6582020-06-22 04:56:23 -0400156type Iovec struct {
157 Base *byte
158 Len uint64
159}
160
kesavand2cde6582020-06-22 04:56:23 -0400161type Msghdr struct {
162 Name *byte
163 Namelen uint32
164 Iov *Iovec
165 Iovlen uint64
166 Control *byte
167 Controllen uint64
168 Flags int32
169 _ [4]byte
170}
171
172type Cmsghdr struct {
173 Len uint64
174 Level int32
175 Type int32
176}
177
kesavandc71914f2022-03-25 11:19:03 +0530178type ifreq struct {
179 Ifrn [16]byte
180 Ifru [24]byte
181}
182
kesavand2cde6582020-06-22 04:56:23 -0400183const (
kesavandc71914f2022-03-25 11:19:03 +0530184 SizeofSockaddrNFCLLCP = 0x60
185 SizeofIovec = 0x10
186 SizeofMsghdr = 0x38
187 SizeofCmsghdr = 0x10
kesavand2cde6582020-06-22 04:56:23 -0400188)
189
190const (
Andrea Campanella764f1ed2022-03-24 11:46:38 +0100191 SizeofSockFprog = 0x10
kesavand2cde6582020-06-22 04:56:23 -0400192)
193
kesavand2cde6582020-06-22 04:56:23 -0400194type PtraceRegs struct {
195 Gpr [32]uint64
196 Nip uint64
197 Msr uint64
198 Orig_gpr3 uint64
199 Ctr uint64
200 Link uint64
201 Xer uint64
202 Ccr uint64
203 Softe uint64
204 Trap uint64
205 Dar uint64
206 Dsisr uint64
207 Result uint64
208}
209
210type FdSet struct {
211 Bits [16]int64
212}
213
214type Sysinfo_t struct {
215 Uptime int64
216 Loads [3]uint64
217 Totalram uint64
218 Freeram uint64
219 Sharedram uint64
220 Bufferram uint64
221 Totalswap uint64
222 Freeswap uint64
223 Procs uint16
224 Pad uint16
225 Totalhigh uint64
226 Freehigh uint64
227 Unit uint32
228 _ [0]uint8
229 _ [4]byte
230}
231
kesavand2cde6582020-06-22 04:56:23 -0400232type Ustat_t struct {
233 Tfree int32
234 Tinode uint64
235 Fname [6]uint8
236 Fpack [6]uint8
237 _ [4]byte
238}
239
240type EpollEvent struct {
241 Events uint32
242 _ int32
243 Fd int32
244 Pad int32
245}
246
247const (
kesavand2cde6582020-06-22 04:56:23 -0400248 POLLRDHUP = 0x2000
kesavand2cde6582020-06-22 04:56:23 -0400249)
250
251type Sigset_t struct {
252 Val [16]uint64
253}
254
255const _C__NSIG = 0x41
256
kesavand2cde6582020-06-22 04:56:23 -0400257type Termios struct {
258 Iflag uint32
259 Oflag uint32
260 Cflag uint32
261 Lflag uint32
262 Cc [19]uint8
263 Line uint8
264 Ispeed uint32
265 Ospeed uint32
266}
267
kesavand2cde6582020-06-22 04:56:23 -0400268type Taskstats struct {
269 Version uint16
270 Ac_exitcode uint32
271 Ac_flag uint8
272 Ac_nice uint8
273 Cpu_count uint64
274 Cpu_delay_total uint64
275 Blkio_count uint64
276 Blkio_delay_total uint64
277 Swapin_count uint64
278 Swapin_delay_total uint64
279 Cpu_run_real_total uint64
280 Cpu_run_virtual_total uint64
281 Ac_comm [32]uint8
282 Ac_sched uint8
283 Ac_pad [3]uint8
284 _ [4]byte
285 Ac_uid uint32
286 Ac_gid uint32
287 Ac_pid uint32
288 Ac_ppid uint32
289 Ac_btime uint32
290 Ac_etime uint64
291 Ac_utime uint64
292 Ac_stime uint64
293 Ac_minflt uint64
294 Ac_majflt uint64
295 Coremem uint64
296 Virtmem uint64
297 Hiwater_rss uint64
298 Hiwater_vm uint64
299 Read_char uint64
300 Write_char uint64
301 Read_syscalls uint64
302 Write_syscalls uint64
303 Read_bytes uint64
304 Write_bytes uint64
305 Cancelled_write_bytes uint64
306 Nvcsw uint64
307 Nivcsw uint64
308 Ac_utimescaled uint64
309 Ac_stimescaled uint64
310 Cpu_scaled_run_real_total uint64
311 Freepages_count uint64
312 Freepages_delay_total uint64
313 Thrashing_count uint64
314 Thrashing_delay_total uint64
Andrea Campanella764f1ed2022-03-24 11:46:38 +0100315 Ac_btime64 uint64
kesavand2cde6582020-06-22 04:56:23 -0400316}
317
kesavand2cde6582020-06-22 04:56:23 -0400318type cpuMask uint64
319
320const (
Andrea Campanella764f1ed2022-03-24 11:46:38 +0100321 _NCPUBITS = 0x40
kesavand2cde6582020-06-22 04:56:23 -0400322)
323
324const (
325 CBitFieldMaskBit0 = 0x8000000000000000
326 CBitFieldMaskBit1 = 0x4000000000000000
327 CBitFieldMaskBit2 = 0x2000000000000000
328 CBitFieldMaskBit3 = 0x1000000000000000
329 CBitFieldMaskBit4 = 0x800000000000000
330 CBitFieldMaskBit5 = 0x400000000000000
331 CBitFieldMaskBit6 = 0x200000000000000
332 CBitFieldMaskBit7 = 0x100000000000000
333 CBitFieldMaskBit8 = 0x80000000000000
334 CBitFieldMaskBit9 = 0x40000000000000
335 CBitFieldMaskBit10 = 0x20000000000000
336 CBitFieldMaskBit11 = 0x10000000000000
337 CBitFieldMaskBit12 = 0x8000000000000
338 CBitFieldMaskBit13 = 0x4000000000000
339 CBitFieldMaskBit14 = 0x2000000000000
340 CBitFieldMaskBit15 = 0x1000000000000
341 CBitFieldMaskBit16 = 0x800000000000
342 CBitFieldMaskBit17 = 0x400000000000
343 CBitFieldMaskBit18 = 0x200000000000
344 CBitFieldMaskBit19 = 0x100000000000
345 CBitFieldMaskBit20 = 0x80000000000
346 CBitFieldMaskBit21 = 0x40000000000
347 CBitFieldMaskBit22 = 0x20000000000
348 CBitFieldMaskBit23 = 0x10000000000
349 CBitFieldMaskBit24 = 0x8000000000
350 CBitFieldMaskBit25 = 0x4000000000
351 CBitFieldMaskBit26 = 0x2000000000
352 CBitFieldMaskBit27 = 0x1000000000
353 CBitFieldMaskBit28 = 0x800000000
354 CBitFieldMaskBit29 = 0x400000000
355 CBitFieldMaskBit30 = 0x200000000
356 CBitFieldMaskBit31 = 0x100000000
357 CBitFieldMaskBit32 = 0x80000000
358 CBitFieldMaskBit33 = 0x40000000
359 CBitFieldMaskBit34 = 0x20000000
360 CBitFieldMaskBit35 = 0x10000000
361 CBitFieldMaskBit36 = 0x8000000
362 CBitFieldMaskBit37 = 0x4000000
363 CBitFieldMaskBit38 = 0x2000000
364 CBitFieldMaskBit39 = 0x1000000
365 CBitFieldMaskBit40 = 0x800000
366 CBitFieldMaskBit41 = 0x400000
367 CBitFieldMaskBit42 = 0x200000
368 CBitFieldMaskBit43 = 0x100000
369 CBitFieldMaskBit44 = 0x80000
370 CBitFieldMaskBit45 = 0x40000
371 CBitFieldMaskBit46 = 0x20000
372 CBitFieldMaskBit47 = 0x10000
373 CBitFieldMaskBit48 = 0x8000
374 CBitFieldMaskBit49 = 0x4000
375 CBitFieldMaskBit50 = 0x2000
376 CBitFieldMaskBit51 = 0x1000
377 CBitFieldMaskBit52 = 0x800
378 CBitFieldMaskBit53 = 0x400
379 CBitFieldMaskBit54 = 0x200
380 CBitFieldMaskBit55 = 0x100
381 CBitFieldMaskBit56 = 0x80
382 CBitFieldMaskBit57 = 0x40
383 CBitFieldMaskBit58 = 0x20
384 CBitFieldMaskBit59 = 0x10
385 CBitFieldMaskBit60 = 0x8
386 CBitFieldMaskBit61 = 0x4
387 CBitFieldMaskBit62 = 0x2
388 CBitFieldMaskBit63 = 0x1
389)
390
391type SockaddrStorage struct {
392 Family uint16
393 _ [118]uint8
394 _ uint64
395}
396
kesavand2cde6582020-06-22 04:56:23 -0400397type HDGeometry struct {
398 Heads uint8
399 Sectors uint8
400 Cylinders uint16
401 Start uint64
402}
403
kesavand2cde6582020-06-22 04:56:23 -0400404type Statfs_t struct {
405 Type int64
406 Bsize int64
407 Blocks uint64
408 Bfree uint64
409 Bavail uint64
410 Files uint64
411 Ffree uint64
412 Fsid Fsid
413 Namelen int64
414 Frsize int64
415 Flags int64
416 Spare [4]int64
417}
418
kesavand2cde6582020-06-22 04:56:23 -0400419type TpacketHdr struct {
420 Status uint64
421 Len uint32
422 Snaplen uint32
423 Mac uint16
424 Net uint16
425 Sec uint32
426 Usec uint32
427 _ [4]byte
428}
429
kesavand2cde6582020-06-22 04:56:23 -0400430const (
Andrea Campanella764f1ed2022-03-24 11:46:38 +0100431 SizeofTpacketHdr = 0x20
kesavand2cde6582020-06-22 04:56:23 -0400432)
433
kesavand2cde6582020-06-22 04:56:23 -0400434type RTCPLLInfo struct {
435 Ctrl int32
436 Value int32
437 Max int32
438 Min int32
439 Posmult int32
440 Negmult int32
441 Clock int64
442}
443
kesavand2cde6582020-06-22 04:56:23 -0400444type BlkpgPartition struct {
445 Start int64
446 Length int64
447 Pno int32
448 Devname [64]uint8
449 Volname [64]uint8
450 _ [4]byte
451}
452
453const (
Andrea Campanella764f1ed2022-03-24 11:46:38 +0100454 BLKPG = 0x20001269
kesavand2cde6582020-06-22 04:56:23 -0400455)
456
kesavand2cde6582020-06-22 04:56:23 -0400457type XDPUmemReg struct {
458 Addr uint64
459 Len uint64
460 Size uint32
461 Headroom uint32
Andrea Campanella764f1ed2022-03-24 11:46:38 +0100462 Flags uint32
463 _ [4]byte
kesavand2cde6582020-06-22 04:56:23 -0400464}
465
kesavand2cde6582020-06-22 04:56:23 -0400466type CryptoUserAlg struct {
467 Name [64]uint8
468 Driver_name [64]uint8
469 Module_name [64]uint8
470 Type uint32
471 Mask uint32
472 Refcnt uint32
473 Flags uint32
474}
475
476type CryptoStatAEAD struct {
477 Type [64]uint8
478 Encrypt_cnt uint64
479 Encrypt_tlen uint64
480 Decrypt_cnt uint64
481 Decrypt_tlen uint64
482 Err_cnt uint64
483}
484
485type CryptoStatAKCipher struct {
486 Type [64]uint8
487 Encrypt_cnt uint64
488 Encrypt_tlen uint64
489 Decrypt_cnt uint64
490 Decrypt_tlen uint64
491 Verify_cnt uint64
492 Sign_cnt uint64
493 Err_cnt uint64
494}
495
496type CryptoStatCipher struct {
497 Type [64]uint8
498 Encrypt_cnt uint64
499 Encrypt_tlen uint64
500 Decrypt_cnt uint64
501 Decrypt_tlen uint64
502 Err_cnt uint64
503}
504
505type CryptoStatCompress struct {
506 Type [64]uint8
507 Compress_cnt uint64
508 Compress_tlen uint64
509 Decompress_cnt uint64
510 Decompress_tlen uint64
511 Err_cnt uint64
512}
513
514type CryptoStatHash struct {
515 Type [64]uint8
516 Hash_cnt uint64
517 Hash_tlen uint64
518 Err_cnt uint64
519}
520
521type CryptoStatKPP struct {
522 Type [64]uint8
523 Setsecret_cnt uint64
524 Generate_public_key_cnt uint64
525 Compute_shared_secret_cnt uint64
526 Err_cnt uint64
527}
528
529type CryptoStatRNG struct {
530 Type [64]uint8
531 Generate_cnt uint64
532 Generate_tlen uint64
533 Seed_cnt uint64
534 Err_cnt uint64
535}
536
537type CryptoStatLarval struct {
538 Type [64]uint8
539}
540
541type CryptoReportLarval struct {
542 Type [64]uint8
543}
544
545type CryptoReportHash struct {
546 Type [64]uint8
547 Blocksize uint32
548 Digestsize uint32
549}
550
551type CryptoReportCipher struct {
552 Type [64]uint8
553 Blocksize uint32
554 Min_keysize uint32
555 Max_keysize uint32
556}
557
558type CryptoReportBlkCipher struct {
559 Type [64]uint8
560 Geniv [64]uint8
561 Blocksize uint32
562 Min_keysize uint32
563 Max_keysize uint32
564 Ivsize uint32
565}
566
567type CryptoReportAEAD struct {
568 Type [64]uint8
569 Geniv [64]uint8
570 Blocksize uint32
571 Maxauthsize uint32
572 Ivsize uint32
573}
574
575type CryptoReportComp struct {
576 Type [64]uint8
577}
578
579type CryptoReportRNG struct {
580 Type [64]uint8
581 Seedsize uint32
582}
583
584type CryptoReportAKCipher struct {
585 Type [64]uint8
586}
587
588type CryptoReportKPP struct {
589 Type [64]uint8
590}
591
592type CryptoReportAcomp struct {
593 Type [64]uint8
594}
595
kesavand2cde6582020-06-22 04:56:23 -0400596type LoopInfo struct {
597 Number int32
598 Device uint64
599 Inode uint64
600 Rdevice uint64
601 Offset int32
602 Encrypt_type int32
603 Encrypt_key_size int32
604 Flags int32
605 Name [64]uint8
606 Encrypt_key [32]uint8
607 Init [2]uint64
608 Reserved [4]uint8
609 _ [4]byte
610}
Andrea Campanella764f1ed2022-03-24 11:46:38 +0100611
612type TIPCSubscr struct {
613 Seq TIPCServiceRange
614 Timeout uint32
615 Filter uint32
616 Handle [8]uint8
kesavand2cde6582020-06-22 04:56:23 -0400617}
Andrea Campanella764f1ed2022-03-24 11:46:38 +0100618
619type TIPCSIOCLNReq struct {
620 Peer uint32
621 Id uint32
622 Linkname [68]uint8
623}
624
625type TIPCSIOCNodeIDReq struct {
626 Peer uint32
627 Id [16]uint8
628}
629
630type PPSKInfo struct {
631 Assert_sequence uint32
632 Clear_sequence uint32
633 Assert_tu PPSKTime
634 Clear_tu PPSKTime
635 Current_mode int32
636 _ [4]byte
637}
638
639const (
640 PPS_GETPARAMS = 0x400870a1
641 PPS_SETPARAMS = 0x800870a2
642 PPS_GETCAP = 0x400870a3
643 PPS_FETCH = 0xc00870a4
644)
kesavandc71914f2022-03-25 11:19:03 +0530645
646const (
647 PIDFD_NONBLOCK = 0x800
648)
649
650type SysvIpcPerm struct {
651 Key int32
652 Uid uint32
653 Gid uint32
654 Cuid uint32
655 Cgid uint32
656 Mode uint32
657 Seq uint32
658 _ uint32
659 _ uint64
660 _ uint64
661}
662type SysvShmDesc struct {
663 Perm SysvIpcPerm
664 Atime int64
665 Dtime int64
666 Ctime int64
667 Segsz uint64
668 Cpid int32
669 Lpid int32
670 Nattch uint64
671 _ uint64
672 _ uint64
673}