Debian Codegraph @

unix/ztypes_linux_386.go

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