Debian Codegraph @

unix/ztypes_linux_ppc64le.go

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