blob: b0ae420c489d6bbd779af1654ce3c8de9456a03f [file] [log] [blame]
Clayton Townsend IIe052cef2022-07-22 08:59:55 -05001// cgo -godefs -objdir=/tmp/mipsle/cgo -- -Wall -Werror -static -I/tmp/mipsle/include linux/types.go | go run mkpost.go
Joe Richeyea9bcad2017-03-08 10:50:27 -08002// Code generated by the command above; see README.md. DO NOT EDIT.
3
Russ Cox9a761022021-02-19 22:57:36 -05004//go:build mipsle && linux
Vladimir Stefanovic478fcf52016-12-05 16:46:50 +01005
6package unix
7
8const (
Johan Jansson5d559ad2020-02-28 00:39:38 +02009 SizeofPtr = 0x4
10 SizeofLong = 0x4
Vladimir Stefanovic478fcf52016-12-05 16:46:50 +010011)
12
13type (
Johan Jansson5d559ad2020-02-28 00:39:38 +020014 _C_long int32
Vladimir Stefanovic478fcf52016-12-05 16:46:50 +010015)
16
17type Timespec struct {
18 Sec int32
19 Nsec int32
20}
21
22type Timeval struct {
23 Sec int32
24 Usec int32
25}
26
27type 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
Garret Kellyaf9a2122018-01-24 11:33:53 -050048 _ [44]byte
Vladimir Stefanovic478fcf52016-12-05 16:46:50 +010049}
50
51type Time_t int32
52
53type Tms struct {
54 Utime int32
55 Stime int32
56 Cutime int32
57 Cstime int32
58}
59
60type Utimbuf struct {
61 Actime int32
62 Modtime int32
63}
64
65type 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
Vladimir Stefanovic478fcf52016-12-05 16:46:50 +010084type 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
Vladimir Stefanovic478fcf52016-12-05 16:46:50 +0100104type Dirent struct {
Garret Kellyaf9a2122018-01-24 11:33:53 -0500105 Ino uint64
106 Off int64
107 Reclen uint16
108 Type uint8
109 Name [256]int8
110 _ [5]byte
Vladimir Stefanovic478fcf52016-12-05 16:46:50 +0100111}
112
Vladimir Stefanovic478fcf52016-12-05 16:46:50 +0100113type Flock_t struct {
Garret Kellyaf9a2122018-01-24 11:33:53 -0500114 Type int16
115 Whence int16
116 _ [4]byte
117 Start int64
118 Len int64
119 Pid int32
120 _ [4]byte
Vladimir Stefanovic478fcf52016-12-05 16:46:50 +0100121}
122
Anatol Pomozov3d37ad52020-08-01 13:08:58 -0700123type DmNameList struct {
124 Dev uint64
125 Next uint32
126 Name [0]byte
127 _ [4]byte
128}
129
Vladimir Stefanovic478fcf52016-12-05 16:46:50 +0100130const (
Johan Jansson5d559ad2020-02-28 00:39:38 +0200131 FADV_DONTNEED = 0x4
132 FADV_NOREUSE = 0x5
Vladimir Stefanovic478fcf52016-12-05 16:46:50 +0100133)
134
Tom Thorogood96654042021-05-30 22:21:48 +0930135type 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
Vladimir Stefanovic478fcf52016-12-05 16:46:50 +0100146type RawSockaddr struct {
147 Family uint16
148 Data [14]int8
149}
150
151type RawSockaddrAny struct {
152 Addr RawSockaddr
153 Pad [96]int8
154}
155
Vladimir Stefanovic478fcf52016-12-05 16:46:50 +0100156type Iovec struct {
157 Base *byte
158 Len uint32
159}
160
Vladimir Stefanovic478fcf52016-12-05 16:46:50 +0100161type 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
171type Cmsghdr struct {
172 Len uint32
173 Level int32
174 Type int32
175}
176
Matt Layher89466822021-08-09 16:32:58 -0400177type ifreq struct {
178 Ifrn [16]byte
179 Ifru [16]byte
180}
181
Vladimir Stefanovic478fcf52016-12-05 16:46:50 +0100182const (
Tom Thorogood96654042021-05-30 22:21:48 +0930183 SizeofSockaddrNFCLLCP = 0x58
184 SizeofIovec = 0x8
185 SizeofMsghdr = 0x1c
186 SizeofCmsghdr = 0xc
Vladimir Stefanovic478fcf52016-12-05 16:46:50 +0100187)
188
189const (
Johan Jansson5d559ad2020-02-28 00:39:38 +0200190 SizeofSockFprog = 0x8
Vladimir Stefanovic478fcf52016-12-05 16:46:50 +0100191)
192
Vladimir Stefanovic478fcf52016-12-05 16:46:50 +0100193type PtraceRegs struct {
James Cowgill156c5a22017-05-12 16:43:35 +0100194 Regs [32]uint64
195 Lo uint64
196 Hi uint64
197 Epc uint64
198 Badvaddr uint64
199 Status uint64
200 Cause uint64
Vladimir Stefanovic478fcf52016-12-05 16:46:50 +0100201}
202
Vladimir Stefanovic478fcf52016-12-05 16:46:50 +0100203type FdSet struct {
204 Bits [32]int32
205}
206
207type 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
Tobias Klauser2281fa92018-04-13 16:10:16 +0200221 _ [8]int8
Vladimir Stefanovic478fcf52016-12-05 16:46:50 +0100222}
223
Vladimir Stefanovic478fcf52016-12-05 16:46:50 +0100224type Ustat_t struct {
225 Tfree int32
226 Tinode uint32
227 Fname [6]int8
228 Fpack [6]int8
229}
230
231type EpollEvent struct {
232 Events uint32
233 PadFd int32
234 Fd int32
235 Pad int32
236}
237
238const (
Eric Lagergren6acee932022-04-03 11:18:00 -0700239 OPEN_TREE_CLOEXEC = 0x80000
240)
241
242const (
Vladimir Stefanovic478fcf52016-12-05 16:46:50 +0100243 POLLRDHUP = 0x2000
Vladimir Stefanovic478fcf52016-12-05 16:46:50 +0100244)
245
246type Sigset_t struct {
Tobias Klauserb126b212018-04-16 12:06:24 +0200247 Val [32]uint32
Vladimir Stefanovic478fcf52016-12-05 16:46:50 +0100248}
249
Yuval Pavel Zholkoveradf421d2019-05-25 19:31:25 +0300250const _C__NSIG = 0x80
251
Lorenz Bauerc57c7932022-09-28 08:41:32 +0000252const (
253 SIG_BLOCK = 0x1
254 SIG_UNBLOCK = 0x2
255 SIG_SETMASK = 0x3
256)
257
Matt Layhera9b59b02022-03-18 09:50:32 -0400258type Siginfo struct {
259 Signo int32
260 Code int32
261 Errno int32
262 _ [116]byte
263}
264
Vladimir Stefanovic478fcf52016-12-05 16:46:50 +0100265type 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}
Tobias Klausercd2c2762017-07-17 12:05:24 +0200275
Matt Layher22e23b72017-08-25 11:04:33 -0400276type Taskstats struct {
277 Version uint16
Matt Layher22e23b72017-08-25 11:04:33 -0400278 Ac_exitcode uint32
279 Ac_flag uint8
280 Ac_nice uint8
Tobias Klauser97b4c2a2018-12-20 09:24:39 +0100281 _ [4]byte
Matt Layher22e23b72017-08-25 11:04:33 -0400282 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
Garret Kellyaf9a2122018-01-24 11:33:53 -0500293 _ [4]byte
Matt Layher22e23b72017-08-25 11:04:33 -0400294 Ac_uid uint32
295 Ac_gid uint32
296 Ac_pid uint32
297 Ac_ppid uint32
298 Ac_btime uint32
Garret Kellyaf9a2122018-01-24 11:33:53 -0500299 _ [4]byte
Matt Layher22e23b72017-08-25 11:04:33 -0400300 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
Tobias Klauser82a175f2019-01-02 10:32:50 +0100323 Thrashing_count uint64
324 Thrashing_delay_total uint64
Tobias Klauserc3d80252020-03-31 13:15:04 +0200325 Ac_btime64 uint64
Tobias Klauser3f8b8152022-04-06 09:35:20 +0200326 Compact_count uint64
327 Compact_delay_total uint64
Tobias Klauseraf788672022-06-15 13:46:28 +0200328 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
Tobias Klausera1a9c4b2023-06-26 15:37:18 +0200335 Irq_count uint64
336 Irq_delay_total uint64
Matt Layher22e23b72017-08-25 11:04:33 -0400337}
Matt Layher2d6f6f82017-08-25 14:47:02 -0400338
Tobias Klauser12d9d5b2018-01-02 15:27:15 +0100339type cpuMask uint32
340
341const (
Johan Jansson5d559ad2020-02-28 00:39:38 +0200342 _NCPUBITS = 0x20
Adam Sindelar2f57af42018-04-09 13:02:03 +0200343)
344
Adam Sindelarf6f35292018-04-11 13:57:14 +0200345const (
346 CBitFieldMaskBit0 = 0x1
347 CBitFieldMaskBit1 = 0x2
348 CBitFieldMaskBit2 = 0x4
349 CBitFieldMaskBit3 = 0x8
350 CBitFieldMaskBit4 = 0x10
351 CBitFieldMaskBit5 = 0x20
352 CBitFieldMaskBit6 = 0x40
353 CBitFieldMaskBit7 = 0x80
354 CBitFieldMaskBit8 = 0x100
355 CBitFieldMaskBit9 = 0x200
356 CBitFieldMaskBit10 = 0x400
357 CBitFieldMaskBit11 = 0x800
358 CBitFieldMaskBit12 = 0x1000
359 CBitFieldMaskBit13 = 0x2000
360 CBitFieldMaskBit14 = 0x4000
361 CBitFieldMaskBit15 = 0x8000
362 CBitFieldMaskBit16 = 0x10000
363 CBitFieldMaskBit17 = 0x20000
364 CBitFieldMaskBit18 = 0x40000
365 CBitFieldMaskBit19 = 0x80000
366 CBitFieldMaskBit20 = 0x100000
367 CBitFieldMaskBit21 = 0x200000
368 CBitFieldMaskBit22 = 0x400000
369 CBitFieldMaskBit23 = 0x800000
370 CBitFieldMaskBit24 = 0x1000000
371 CBitFieldMaskBit25 = 0x2000000
372 CBitFieldMaskBit26 = 0x4000000
373 CBitFieldMaskBit27 = 0x8000000
374 CBitFieldMaskBit28 = 0x10000000
375 CBitFieldMaskBit29 = 0x20000000
376 CBitFieldMaskBit30 = 0x40000000
377 CBitFieldMaskBit31 = 0x80000000
378 CBitFieldMaskBit32 = 0x100000000
379 CBitFieldMaskBit33 = 0x200000000
380 CBitFieldMaskBit34 = 0x400000000
381 CBitFieldMaskBit35 = 0x800000000
382 CBitFieldMaskBit36 = 0x1000000000
383 CBitFieldMaskBit37 = 0x2000000000
384 CBitFieldMaskBit38 = 0x4000000000
385 CBitFieldMaskBit39 = 0x8000000000
386 CBitFieldMaskBit40 = 0x10000000000
387 CBitFieldMaskBit41 = 0x20000000000
388 CBitFieldMaskBit42 = 0x40000000000
389 CBitFieldMaskBit43 = 0x80000000000
390 CBitFieldMaskBit44 = 0x100000000000
391 CBitFieldMaskBit45 = 0x200000000000
392 CBitFieldMaskBit46 = 0x400000000000
393 CBitFieldMaskBit47 = 0x800000000000
394 CBitFieldMaskBit48 = 0x1000000000000
395 CBitFieldMaskBit49 = 0x2000000000000
396 CBitFieldMaskBit50 = 0x4000000000000
397 CBitFieldMaskBit51 = 0x8000000000000
398 CBitFieldMaskBit52 = 0x10000000000000
399 CBitFieldMaskBit53 = 0x20000000000000
400 CBitFieldMaskBit54 = 0x40000000000000
401 CBitFieldMaskBit55 = 0x80000000000000
402 CBitFieldMaskBit56 = 0x100000000000000
403 CBitFieldMaskBit57 = 0x200000000000000
404 CBitFieldMaskBit58 = 0x400000000000000
405 CBitFieldMaskBit59 = 0x800000000000000
406 CBitFieldMaskBit60 = 0x1000000000000000
407 CBitFieldMaskBit61 = 0x2000000000000000
408 CBitFieldMaskBit62 = 0x4000000000000000
409 CBitFieldMaskBit63 = 0x8000000000000000
410)
Matt Layher9b006092018-04-18 13:57:21 -0400411
412type SockaddrStorage struct {
413 Family uint16
Tobias Klauser14708522023-03-02 16:17:12 +0100414 Data [122]byte
Matt Layher9b006092018-04-18 13:57:21 -0400415 _ uint32
416}
417
Matt Layher79b0c682018-04-18 17:20:05 -0400418type HDGeometry struct {
419 Heads uint8
420 Sectors uint8
421 Cylinders uint16
422 Start uint32
423}
424
Tobias Klauser9950ad12018-05-11 10:07:35 +0200425type Statfs_t struct {
426 Type int32
427 Bsize int32
428 Frsize int32
429 _ [4]byte
430 Blocks uint64
431 Bfree uint64
432 Files uint64
433 Ffree uint64
434 Bavail uint64
435 Fsid Fsid
436 Namelen int32
437 Flags int32
438 Spare [5]int32
439 _ [4]byte
440}
441
Tobias Klauser7c87d132018-05-14 09:31:37 +0200442type TpacketHdr struct {
443 Status uint32
444 Len uint32
445 Snaplen uint32
446 Mac uint16
447 Net uint16
448 Sec uint32
449 Usec uint32
450}
451
Tobias Klauser7c87d132018-05-14 09:31:37 +0200452const (
Johan Jansson5d559ad2020-02-28 00:39:38 +0200453 SizeofTpacketHdr = 0x18
Tobias Klauser7c87d132018-05-14 09:31:37 +0200454)
455
Michael Stapelberg56ede362018-06-13 17:50:41 +0200456type RTCPLLInfo struct {
457 Ctrl int32
458 Value int32
459 Max int32
460 Min int32
461 Posmult int32
462 Negmult int32
463 Clock int32
464}
Brad Fitzpatricke3f93882018-07-24 17:16:09 +0000465
Brad Fitzpatricke3f93882018-07-24 17:16:09 +0000466type BlkpgPartition struct {
467 Start int64
468 Length int64
469 Pno int32
470 Devname [64]uint8
471 Volname [64]uint8
472 _ [4]byte
473}
474
475const (
Johan Jansson5d559ad2020-02-28 00:39:38 +0200476 BLKPG = 0x20001269
Brad Fitzpatricke3f93882018-07-24 17:16:09 +0000477)
Casey Callendrello3dc43352018-07-17 22:24:21 +0200478
Matt Layher18eb32c2019-04-24 13:45:03 -0400479type CryptoUserAlg struct {
480 Name [64]int8
481 Driver_name [64]int8
482 Module_name [64]int8
483 Type uint32
484 Mask uint32
485 Refcnt uint32
486 Flags uint32
487}
488
489type CryptoStatAEAD struct {
490 Type [64]int8
491 Encrypt_cnt uint64
492 Encrypt_tlen uint64
493 Decrypt_cnt uint64
494 Decrypt_tlen uint64
495 Err_cnt uint64
496}
497
498type CryptoStatAKCipher struct {
499 Type [64]int8
500 Encrypt_cnt uint64
501 Encrypt_tlen uint64
502 Decrypt_cnt uint64
503 Decrypt_tlen uint64
504 Verify_cnt uint64
505 Sign_cnt uint64
506 Err_cnt uint64
507}
508
509type CryptoStatCipher struct {
510 Type [64]int8
511 Encrypt_cnt uint64
512 Encrypt_tlen uint64
513 Decrypt_cnt uint64
514 Decrypt_tlen uint64
515 Err_cnt uint64
516}
517
518type CryptoStatCompress struct {
519 Type [64]int8
520 Compress_cnt uint64
521 Compress_tlen uint64
522 Decompress_cnt uint64
523 Decompress_tlen uint64
524 Err_cnt uint64
525}
526
527type CryptoStatHash struct {
528 Type [64]int8
529 Hash_cnt uint64
530 Hash_tlen uint64
531 Err_cnt uint64
532}
533
534type CryptoStatKPP struct {
535 Type [64]int8
536 Setsecret_cnt uint64
537 Generate_public_key_cnt uint64
538 Compute_shared_secret_cnt uint64
539 Err_cnt uint64
540}
541
542type CryptoStatRNG struct {
543 Type [64]int8
544 Generate_cnt uint64
545 Generate_tlen uint64
546 Seed_cnt uint64
547 Err_cnt uint64
548}
549
550type CryptoStatLarval struct {
551 Type [64]int8
552}
553
554type CryptoReportLarval struct {
555 Type [64]int8
556}
557
558type CryptoReportHash struct {
559 Type [64]int8
560 Blocksize uint32
561 Digestsize uint32
562}
563
564type CryptoReportCipher struct {
565 Type [64]int8
566 Blocksize uint32
567 Min_keysize uint32
568 Max_keysize uint32
569}
570
571type CryptoReportBlkCipher struct {
572 Type [64]int8
573 Geniv [64]int8
574 Blocksize uint32
575 Min_keysize uint32
576 Max_keysize uint32
577 Ivsize uint32
578}
579
580type CryptoReportAEAD struct {
581 Type [64]int8
582 Geniv [64]int8
583 Blocksize uint32
584 Maxauthsize uint32
585 Ivsize uint32
586}
587
588type CryptoReportComp struct {
589 Type [64]int8
590}
591
592type CryptoReportRNG struct {
593 Type [64]int8
594 Seedsize uint32
595}
596
597type CryptoReportAKCipher struct {
598 Type [64]int8
599}
600
601type CryptoReportKPP struct {
602 Type [64]int8
603}
604
605type CryptoReportAcomp struct {
606 Type [64]int8
607}
Lehner Florian12bbe5a2019-05-03 11:38:26 +0200608
Tobias Klauserfae7ac52019-07-11 11:16:12 +0200609type LoopInfo struct {
610 Number int32
611 Device uint32
612 Inode uint32
613 Rdevice uint32
614 Offset int32
615 Encrypt_type int32
616 Encrypt_key_size int32
617 Flags int32
618 Name [64]int8
619 Encrypt_key [32]uint8
620 Init [2]uint32
621 Reserved [4]int8
622}
Matt Layher43c01162019-07-29 14:45:48 -0400623
624type TIPCSubscr struct {
625 Seq TIPCServiceRange
626 Timeout uint32
627 Filter uint32
628 Handle [8]int8
629}
630
Matt Layher43c01162019-07-29 14:45:48 -0400631type TIPCSIOCLNReq struct {
632 Peer uint32
633 Id uint32
634 Linkname [68]int8
635}
636
637type TIPCSIOCNodeIDReq struct {
638 Peer uint32
639 Id [16]int8
640}
Ben Cartwright-Cox0fcbb8f2020-10-27 12:50:27 +0000641
642type PPSKInfo struct {
643 Assert_sequence uint32
644 Clear_sequence uint32
645 Assert_tu PPSKTime
646 Clear_tu PPSKTime
647 Current_mode int32
648 _ [4]byte
649}
650
651const (
652 PPS_GETPARAMS = 0x400470a1
653 PPS_SETPARAMS = 0x800470a2
654 PPS_GETCAP = 0x400470a3
655 PPS_FETCH = 0xc00470a4
656)
Lorenz Bauer528a39c2021-09-08 10:09:57 +0100657
658const (
659 PIDFD_NONBLOCK = 0x80
660)
Dustin Spicuzza969570c2021-09-30 14:11:05 +0000661
662type SysvIpcPerm struct {
663 Key int32
664 Uid uint32
665 Gid uint32
666 Cuid uint32
667 Cgid uint32
668 Mode uint32
669 _ [0]uint8
670 Seq uint16
671 _ uint16
672 _ uint32
673 _ uint32
674}
675type SysvShmDesc struct {
676 Perm SysvIpcPerm
677 Segsz uint32
678 Atime uint32
679 Dtime uint32
680 Ctime uint32
681 Cpid int32
682 Lpid int32
683 Nattch uint32
684 Atime_high uint16
685 Dtime_high uint16
686 Ctime_high uint16
687 _ uint16
688}