Debian Codegraph @

unix/ztypes_linux_sparc64.go

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