Debian Codegraph @

unix/ztypes_linux_mipsle.go

raw
1 // cgo -godefs -objdir=/tmp/mipsle/cgo -- -Wall -Werror -static -I/tmp/mipsle/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 mipsle && linux
5
6 package unix
7
8 const (
9 SizeofPtr = 0x4
10 SizeofLong = 0x4
11 )
12
13 type (
14 _C_long int32
15 )
16
17 type Timespec struct {
18 Sec int32
19 Nsec int32
20 }
21
22 type Timeval struct {
23 Sec int32
24 Usec int32
25 }
26
27 type Timex struct {
28 Modes uint32
29 Offset int32
30 Freq int32
31 Maxerror int32
32 Esterror int32
33 Status int32
34 Constant int32
35 Precision int32
36 Tolerance int32
37 Time Timeval
38 Tick int32
39 Ppsfreq int32
40 Jitter int32
41 Shift int32
42 Stabil int32
43 Jitcnt int32
44 Calcnt int32
45 Errcnt int32
46 Stbcnt int32
47 Tai int32
48 _ [44]byte
49 }
50
51 type Time_t int32
52
53 type Tms struct {
54 Utime int32
55 Stime int32
56 Cutime int32
57 Cstime int32
58 }
59
60 type Utimbuf struct {
61 Actime int32
62 Modtime int32
63 }
64
65 type Rusage struct {
66 Utime Timeval
67 Stime Timeval
68 Maxrss int32
69 Ixrss int32
70 Idrss int32
71 Isrss int32
72 Minflt int32
73 Majflt int32
74 Nswap int32
75 Inblock int32
76 Oublock int32
77 Msgsnd int32
78 Msgrcv int32
79 Nsignals int32
80 Nvcsw int32
81 Nivcsw int32
82 }
83
84 type Stat_t struct {
85 Dev uint32
86 Pad1 [3]int32
87 Ino uint64
88 Mode uint32
89 Nlink uint32
90 Uid uint32
91 Gid uint32
92 Rdev uint32
93 Pad2 [3]int32
94 Size int64
95 Atim Timespec
96 Mtim Timespec
97 Ctim Timespec
98 Blksize int32
99 Pad4 int32
100 Blocks int64
101 Pad5 [14]int32
102 }
103
104 type Dirent struct {
105 Ino uint64
106 Off int64
107 Reclen uint16
108 Type uint8
109 Name [256]int8
110 _ [5]byte
111 }
112
113 type Flock_t struct {
114 Type int16
115 Whence int16
116 _ [4]byte
117 Start int64
118 Len int64
119 Pid int32
120 _ [4]byte
121 }
122
123 type DmNameList struct {
124 Dev uint64
125 Next uint32
126 Name [0]byte
127 _ [4]byte
128 }
129
130 const (
131 FADV_DONTNEED = 0x4
132 FADV_NOREUSE = 0x5
133 )
134
135 type 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 uint32
144 }
145
146 type RawSockaddr struct {
147 Family uint16
148 Data [14]int8
149 }
150
151 type RawSockaddrAny struct {
152 Addr RawSockaddr
153 Pad [96]int8
154 }
155
156 type Iovec struct {
157 Base *byte
158 Len uint32
159 }
160
161 type Msghdr struct {
162 Name *byte
163 Namelen uint32
164 Iov *Iovec
165 Iovlen uint32
166 Control *byte
167 Controllen uint32
168 Flags int32
169 }
170
171 type Cmsghdr struct {
172 Len uint32
173 Level int32
174 Type int32
175 }
176
177 type ifreq struct {
178 Ifrn [16]byte
179 Ifru [16]byte
180 }
181
182 const (
183 SizeofSockaddrNFCLLCP = 0x58
184 SizeofIovec = 0x8
185 SizeofMsghdr = 0x1c
186 SizeofCmsghdr = 0xc
187 )
188
189 const (
190 SizeofSockFprog = 0x8
191 )
192
193 type PtraceRegs struct {
194 Regs [32]uint64
195 Lo uint64
196 Hi uint64
197 Epc uint64
198 Badvaddr uint64
199 Status uint64
200 Cause uint64
201 }
202
203 type FdSet struct {
204 Bits [32]int32
205 }
206
207 type Sysinfo_t struct {
208 Uptime int32
209 Loads [3]uint32
210 Totalram uint32
211 Freeram uint32
212 Sharedram uint32
213 Bufferram uint32
214 Totalswap uint32
215 Freeswap uint32
216 Procs uint16
217 Pad uint16
218 Totalhigh uint32
219 Freehigh uint32
220 Unit uint32
221 _ [8]int8
222 }
223
224 type Ustat_t struct {
225 Tfree int32
226 Tinode uint32
227 Fname [6]int8
228 Fpack [6]int8
229 }
230
231 type EpollEvent struct {
232 Events uint32
233 PadFd int32
234 Fd int32
235 Pad int32
236 }
237
238 const (
239 OPEN_TREE_CLOEXEC = 0x80000
240 )
241
242 const (
243 POLLRDHUP = 0x2000
244 )
245
246 type Sigset_t struct {
247 Val [32]uint32
248 }
249
250 const _C__NSIG = 0x80
251
252 const (
253 SIG_BLOCK = 0x1
254 SIG_UNBLOCK = 0x2
255 SIG_SETMASK = 0x3
256 )
257
258 type Siginfo struct {
259 Signo int32
260 Code int32
261 Errno int32
262 _ [116]byte
263 }
264
265 type Termios struct {
266 Iflag uint32
267 Oflag uint32
268 Cflag uint32
269 Lflag uint32
270 Line uint8
271 Cc [23]uint8
272 Ispeed uint32
273 Ospeed uint32
274 }
275
276 type Taskstats struct {
277 Version uint16
278 Ac_exitcode uint32
279 Ac_flag uint8
280 Ac_nice uint8
281 _ [6]byte
282 Cpu_count uint64
283 Cpu_delay_total uint64
284 Blkio_count uint64
285 Blkio_delay_total uint64
286 Swapin_count uint64
287 Swapin_delay_total uint64
288 Cpu_run_real_total uint64
289 Cpu_run_virtual_total uint64
290 Ac_comm [32]int8
291 Ac_sched uint8
292 Ac_pad [3]uint8
293 _ [4]byte
294 Ac_uid uint32
295 Ac_gid uint32
296 Ac_pid uint32
297 Ac_ppid uint32
298 Ac_btime uint32
299 _ [4]byte
300 Ac_etime uint64
301 Ac_utime uint64
302 Ac_stime uint64
303 Ac_minflt uint64
304 Ac_majflt uint64
305 Coremem uint64
306 Virtmem uint64
307 Hiwater_rss uint64
308 Hiwater_vm uint64
309 Read_char uint64
310 Write_char uint64
311 Read_syscalls uint64
312 Write_syscalls uint64
313 Read_bytes uint64
314 Write_bytes uint64
315 Cancelled_write_bytes uint64
316 Nvcsw uint64
317 Nivcsw uint64
318 Ac_utimescaled uint64
319 Ac_stimescaled uint64
320 Cpu_scaled_run_real_total uint64
321 Freepages_count uint64
322 Freepages_delay_total uint64
323 Thrashing_count uint64
324 Thrashing_delay_total uint64
325 Ac_btime64 uint64
326 Compact_count uint64
327 Compact_delay_total uint64
328 Ac_tgid uint32
329 _ [4]byte
330 Ac_tgetime uint64
331 Ac_exe_dev uint64
332 Ac_exe_inode uint64
333 Wpcopy_count uint64
334 Wpcopy_delay_total uint64
335 Irq_count uint64
336 Irq_delay_total uint64
337 Cpu_delay_max uint64
338 Cpu_delay_min uint64
339 Blkio_delay_max uint64
340 Blkio_delay_min uint64
341 Swapin_delay_max uint64
342 Swapin_delay_min uint64
343 Freepages_delay_max uint64
344 Freepages_delay_min uint64
345 Thrashing_delay_max uint64
346 Thrashing_delay_min uint64
347 Compact_delay_max uint64
348 Compact_delay_min uint64
349 Wpcopy_delay_max uint64
350 Wpcopy_delay_min uint64
351 Irq_delay_max uint64
352 Irq_delay_min uint64
353 Cpu_delay_max_ts KernelTimespec
354 Blkio_delay_max_ts KernelTimespec
355 Swapin_delay_max_ts KernelTimespec
356 Freepages_delay_max_ts KernelTimespec
357 Thrashing_delay_max_ts KernelTimespec
358 Compact_delay_max_ts KernelTimespec
359 Wpcopy_delay_max_ts KernelTimespec
360 Irq_delay_max_ts KernelTimespec
361 }
362
363 type cpuMask uint32
364
365 const (
366 _NCPUBITS = 0x20
367 )
368
369 const (
370 CBitFieldMaskBit0 = 0x1
371 CBitFieldMaskBit1 = 0x2
372 CBitFieldMaskBit2 = 0x4
373 CBitFieldMaskBit3 = 0x8
374 CBitFieldMaskBit4 = 0x10
375 CBitFieldMaskBit5 = 0x20
376 CBitFieldMaskBit6 = 0x40
377 CBitFieldMaskBit7 = 0x80
378 CBitFieldMaskBit8 = 0x100
379 CBitFieldMaskBit9 = 0x200
380 CBitFieldMaskBit10 = 0x400
381 CBitFieldMaskBit11 = 0x800
382 CBitFieldMaskBit12 = 0x1000
383 CBitFieldMaskBit13 = 0x2000
384 CBitFieldMaskBit14 = 0x4000
385 CBitFieldMaskBit15 = 0x8000
386 CBitFieldMaskBit16 = 0x10000
387 CBitFieldMaskBit17 = 0x20000
388 CBitFieldMaskBit18 = 0x40000
389 CBitFieldMaskBit19 = 0x80000
390 CBitFieldMaskBit20 = 0x100000
391 CBitFieldMaskBit21 = 0x200000
392 CBitFieldMaskBit22 = 0x400000
393 CBitFieldMaskBit23 = 0x800000
394 CBitFieldMaskBit24 = 0x1000000
395 CBitFieldMaskBit25 = 0x2000000
396 CBitFieldMaskBit26 = 0x4000000
397 CBitFieldMaskBit27 = 0x8000000
398 CBitFieldMaskBit28 = 0x10000000
399 CBitFieldMaskBit29 = 0x20000000
400 CBitFieldMaskBit30 = 0x40000000
401 CBitFieldMaskBit31 = 0x80000000
402 CBitFieldMaskBit32 = 0x100000000
403 CBitFieldMaskBit33 = 0x200000000
404 CBitFieldMaskBit34 = 0x400000000
405 CBitFieldMaskBit35 = 0x800000000
406 CBitFieldMaskBit36 = 0x1000000000
407 CBitFieldMaskBit37 = 0x2000000000
408 CBitFieldMaskBit38 = 0x4000000000
409 CBitFieldMaskBit39 = 0x8000000000
410 CBitFieldMaskBit40 = 0x10000000000
411 CBitFieldMaskBit41 = 0x20000000000
412 CBitFieldMaskBit42 = 0x40000000000
413 CBitFieldMaskBit43 = 0x80000000000
414 CBitFieldMaskBit44 = 0x100000000000
415 CBitFieldMaskBit45 = 0x200000000000
416 CBitFieldMaskBit46 = 0x400000000000
417 CBitFieldMaskBit47 = 0x800000000000
418 CBitFieldMaskBit48 = 0x1000000000000
419 CBitFieldMaskBit49 = 0x2000000000000
420 CBitFieldMaskBit50 = 0x4000000000000
421 CBitFieldMaskBit51 = 0x8000000000000
422 CBitFieldMaskBit52 = 0x10000000000000
423 CBitFieldMaskBit53 = 0x20000000000000
424 CBitFieldMaskBit54 = 0x40000000000000
425 CBitFieldMaskBit55 = 0x80000000000000
426 CBitFieldMaskBit56 = 0x100000000000000
427 CBitFieldMaskBit57 = 0x200000000000000
428 CBitFieldMaskBit58 = 0x400000000000000
429 CBitFieldMaskBit59 = 0x800000000000000
430 CBitFieldMaskBit60 = 0x1000000000000000
431 CBitFieldMaskBit61 = 0x2000000000000000
432 CBitFieldMaskBit62 = 0x4000000000000000
433 CBitFieldMaskBit63 = 0x8000000000000000
434 )
435
436 type SockaddrStorage struct {
437 Family uint16
438 Data [122]byte
439 _ uint32
440 }
441
442 type HDGeometry struct {
443 Heads uint8
444 Sectors uint8
445 Cylinders uint16
446 Start uint32
447 }
448
449 type Statfs_t struct {
450 Type int32
451 Bsize int32
452 Frsize int32
453 _ [4]byte
454 Blocks uint64
455 Bfree uint64
456 Files uint64
457 Ffree uint64
458 Bavail uint64
459 Fsid Fsid
460 Namelen int32
461 Flags int32
462 Spare [5]int32
463 _ [4]byte
464 }
465
466 type TpacketHdr struct {
467 Status uint32
468 Len uint32
469 Snaplen uint32
470 Mac uint16
471 Net uint16
472 Sec uint32
473 Usec uint32
474 }
475
476 const (
477 SizeofTpacketHdr = 0x18
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 int32
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 uint32
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]uint32
645 Reserved [4]int8
646 }
647
648 type TIPCSubscr struct {
649 Seq TIPCServiceRange
650 Timeout uint32
651 Filter uint32
652 Handle [8]int8
653 }
654
655 type TIPCSIOCLNReq struct {
656 Peer uint32
657 Id uint32
658 Linkname [68]int8
659 }
660
661 type TIPCSIOCNodeIDReq struct {
662 Peer uint32
663 Id [16]int8
664 }
665
666 type PPSKInfo struct {
667 Assert_sequence uint32
668 Clear_sequence uint32
669 Assert_tu PPSKTime
670 Clear_tu PPSKTime
671 Current_mode int32
672 _ [4]byte
673 }
674
675 const (
676 PPS_GETPARAMS = 0x400470a1
677 PPS_SETPARAMS = 0x800470a2
678 PPS_GETCAP = 0x400470a3
679 PPS_FETCH = 0xc00470a4
680 )
681
682 const (
683 PIDFD_NONBLOCK = 0x80
684 )
685
686 type SysvIpcPerm struct {
687 Key int32
688 Uid uint32
689 Gid uint32
690 Cuid uint32
691 Cgid uint32
692 Mode uint32
693 _ [0]uint8
694 Seq uint16
695 _ uint16
696 _ uint32
697 _ uint32
698 }
699 type SysvShmDesc struct {
700 Perm SysvIpcPerm
701 Segsz uint32
702 Atime uint32
703 Dtime uint32
704 Ctime uint32
705 Cpid int32
706 Lpid int32
707 Nattch uint32
708 Atime_high uint16
709 Dtime_high uint16
710 Ctime_high uint16
711 _ uint16
712 }