Debian Codegraph @

unix/ztypes_linux_arm.go

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