1// cgo -godefs -- -Wall -Werror -static -I/tmp/include /build/linux/types.go | go run mkpost.go
2// Code generated by the command above; see README.md. DO NOT EDIT.
3
4//go:build mips && linux
5// +build mips,linux
6
7package unix
8
9const (
10	SizeofPtr  = 0x4
11	SizeofLong = 0x4
12)
13
14type (
15	_C_long int32
16)
17
18type Timespec struct {
19	Sec  int32
20	Nsec int32
21}
22
23type Timeval struct {
24	Sec  int32
25	Usec int32
26}
27
28type Timex struct {
29	Modes     uint32
30	Offset    int32
31	Freq      int32
32	Maxerror  int32
33	Esterror  int32
34	Status    int32
35	Constant  int32
36	Precision int32
37	Tolerance int32
38	Time      Timeval
39	Tick      int32
40	Ppsfreq   int32
41	Jitter    int32
42	Shift     int32
43	Stabil    int32
44	Jitcnt    int32
45	Calcnt    int32
46	Errcnt    int32
47	Stbcnt    int32
48	Tai       int32
49	_         [44]byte
50}
51
52type Time_t int32
53
54type Tms struct {
55	Utime  int32
56	Stime  int32
57	Cutime int32
58	Cstime int32
59}
60
61type Utimbuf struct {
62	Actime  int32
63	Modtime int32
64}
65
66type Rusage struct {
67	Utime    Timeval
68	Stime    Timeval
69	Maxrss   int32
70	Ixrss    int32
71	Idrss    int32
72	Isrss    int32
73	Minflt   int32
74	Majflt   int32
75	Nswap    int32
76	Inblock  int32
77	Oublock  int32
78	Msgsnd   int32
79	Msgrcv   int32
80	Nsignals int32
81	Nvcsw    int32
82	Nivcsw   int32
83}
84
85type Stat_t struct {
86	Dev     uint32
87	Pad1    [3]int32
88	Ino     uint64
89	Mode    uint32
90	Nlink   uint32
91	Uid     uint32
92	Gid     uint32
93	Rdev    uint32
94	Pad2    [3]int32
95	Size    int64
96	Atim    Timespec
97	Mtim    Timespec
98	Ctim    Timespec
99	Blksize int32
100	Pad4    int32
101	Blocks  int64
102	Pad5    [14]int32
103}
104
105type Dirent struct {
106	Ino    uint64
107	Off    int64
108	Reclen uint16
109	Type   uint8
110	Name   [256]int8
111	_      [5]byte
112}
113
114type 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
124type DmNameList struct {
125	Dev  uint64
126	Next uint32
127	Name [0]byte
128	_    [4]byte
129}
130
131const (
132	FADV_DONTNEED = 0x4
133	FADV_NOREUSE  = 0x5
134)
135
136type 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
147type RawSockaddr struct {
148	Family uint16
149	Data   [14]int8
150}
151
152type RawSockaddrAny struct {
153	Addr RawSockaddr
154	Pad  [96]int8
155}
156
157type Iovec struct {
158	Base *byte
159	Len  uint32
160}
161
162type 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
172type Cmsghdr struct {
173	Len   uint32
174	Level int32
175	Type  int32
176}
177
178type ifreq struct {
179	Ifrn [16]byte
180	Ifru [16]byte
181}
182
183const (
184	SizeofSockaddrNFCLLCP = 0x58
185	SizeofIovec           = 0x8
186	SizeofMsghdr          = 0x1c
187	SizeofCmsghdr         = 0xc
188)
189
190const (
191	SizeofSockFprog = 0x8
192)
193
194type PtraceRegs struct {
195	Regs     [32]uint64
196	Lo       uint64
197	Hi       uint64
198	Epc      uint64
199	Badvaddr uint64
200	Status   uint64
201	Cause    uint64
202}
203
204type FdSet struct {
205	Bits [32]int32
206}
207
208type Sysinfo_t struct {
209	Uptime    int32
210	Loads     [3]uint32
211	Totalram  uint32
212	Freeram   uint32
213	Sharedram uint32
214	Bufferram uint32
215	Totalswap uint32
216	Freeswap  uint32
217	Procs     uint16
218	Pad       uint16
219	Totalhigh uint32
220	Freehigh  uint32
221	Unit      uint32
222	_         [8]int8
223}
224
225type Ustat_t struct {
226	Tfree  int32
227	Tinode uint32
228	Fname  [6]int8
229	Fpack  [6]int8
230}
231
232type EpollEvent struct {
233	Events uint32
234	PadFd  int32
235	Fd     int32
236	Pad    int32
237}
238
239const (
240	POLLRDHUP = 0x2000
241)
242
243type Sigset_t struct {
244	Val [32]uint32
245}
246
247const _C__NSIG = 0x80
248
249type Termios struct {
250	Iflag  uint32
251	Oflag  uint32
252	Cflag  uint32
253	Lflag  uint32
254	Line   uint8
255	Cc     [23]uint8
256	Ispeed uint32
257	Ospeed uint32
258}
259
260type Taskstats struct {
261	Version                   uint16
262	Ac_exitcode               uint32
263	Ac_flag                   uint8
264	Ac_nice                   uint8
265	_                         [4]byte
266	Cpu_count                 uint64
267	Cpu_delay_total           uint64
268	Blkio_count               uint64
269	Blkio_delay_total         uint64
270	Swapin_count              uint64
271	Swapin_delay_total        uint64
272	Cpu_run_real_total        uint64
273	Cpu_run_virtual_total     uint64
274	Ac_comm                   [32]int8
275	Ac_sched                  uint8
276	Ac_pad                    [3]uint8
277	_                         [4]byte
278	Ac_uid                    uint32
279	Ac_gid                    uint32
280	Ac_pid                    uint32
281	Ac_ppid                   uint32
282	Ac_btime                  uint32
283	_                         [4]byte
284	Ac_etime                  uint64
285	Ac_utime                  uint64
286	Ac_stime                  uint64
287	Ac_minflt                 uint64
288	Ac_majflt                 uint64
289	Coremem                   uint64
290	Virtmem                   uint64
291	Hiwater_rss               uint64
292	Hiwater_vm                uint64
293	Read_char                 uint64
294	Write_char                uint64
295	Read_syscalls             uint64
296	Write_syscalls            uint64
297	Read_bytes                uint64
298	Write_bytes               uint64
299	Cancelled_write_bytes     uint64
300	Nvcsw                     uint64
301	Nivcsw                    uint64
302	Ac_utimescaled            uint64
303	Ac_stimescaled            uint64
304	Cpu_scaled_run_real_total uint64
305	Freepages_count           uint64
306	Freepages_delay_total     uint64
307	Thrashing_count           uint64
308	Thrashing_delay_total     uint64
309	Ac_btime64                uint64
310}
311
312type cpuMask uint32
313
314const (
315	_NCPUBITS = 0x20
316)
317
318const (
319	CBitFieldMaskBit0  = 0x8000000000000000
320	CBitFieldMaskBit1  = 0x4000000000000000
321	CBitFieldMaskBit2  = 0x2000000000000000
322	CBitFieldMaskBit3  = 0x1000000000000000
323	CBitFieldMaskBit4  = 0x800000000000000
324	CBitFieldMaskBit5  = 0x400000000000000
325	CBitFieldMaskBit6  = 0x200000000000000
326	CBitFieldMaskBit7  = 0x100000000000000
327	CBitFieldMaskBit8  = 0x80000000000000
328	CBitFieldMaskBit9  = 0x40000000000000
329	CBitFieldMaskBit10 = 0x20000000000000
330	CBitFieldMaskBit11 = 0x10000000000000
331	CBitFieldMaskBit12 = 0x8000000000000
332	CBitFieldMaskBit13 = 0x4000000000000
333	CBitFieldMaskBit14 = 0x2000000000000
334	CBitFieldMaskBit15 = 0x1000000000000
335	CBitFieldMaskBit16 = 0x800000000000
336	CBitFieldMaskBit17 = 0x400000000000
337	CBitFieldMaskBit18 = 0x200000000000
338	CBitFieldMaskBit19 = 0x100000000000
339	CBitFieldMaskBit20 = 0x80000000000
340	CBitFieldMaskBit21 = 0x40000000000
341	CBitFieldMaskBit22 = 0x20000000000
342	CBitFieldMaskBit23 = 0x10000000000
343	CBitFieldMaskBit24 = 0x8000000000
344	CBitFieldMaskBit25 = 0x4000000000
345	CBitFieldMaskBit26 = 0x2000000000
346	CBitFieldMaskBit27 = 0x1000000000
347	CBitFieldMaskBit28 = 0x800000000
348	CBitFieldMaskBit29 = 0x400000000
349	CBitFieldMaskBit30 = 0x200000000
350	CBitFieldMaskBit31 = 0x100000000
351	CBitFieldMaskBit32 = 0x80000000
352	CBitFieldMaskBit33 = 0x40000000
353	CBitFieldMaskBit34 = 0x20000000
354	CBitFieldMaskBit35 = 0x10000000
355	CBitFieldMaskBit36 = 0x8000000
356	CBitFieldMaskBit37 = 0x4000000
357	CBitFieldMaskBit38 = 0x2000000
358	CBitFieldMaskBit39 = 0x1000000
359	CBitFieldMaskBit40 = 0x800000
360	CBitFieldMaskBit41 = 0x400000
361	CBitFieldMaskBit42 = 0x200000
362	CBitFieldMaskBit43 = 0x100000
363	CBitFieldMaskBit44 = 0x80000
364	CBitFieldMaskBit45 = 0x40000
365	CBitFieldMaskBit46 = 0x20000
366	CBitFieldMaskBit47 = 0x10000
367	CBitFieldMaskBit48 = 0x8000
368	CBitFieldMaskBit49 = 0x4000
369	CBitFieldMaskBit50 = 0x2000
370	CBitFieldMaskBit51 = 0x1000
371	CBitFieldMaskBit52 = 0x800
372	CBitFieldMaskBit53 = 0x400
373	CBitFieldMaskBit54 = 0x200
374	CBitFieldMaskBit55 = 0x100
375	CBitFieldMaskBit56 = 0x80
376	CBitFieldMaskBit57 = 0x40
377	CBitFieldMaskBit58 = 0x20
378	CBitFieldMaskBit59 = 0x10
379	CBitFieldMaskBit60 = 0x8
380	CBitFieldMaskBit61 = 0x4
381	CBitFieldMaskBit62 = 0x2
382	CBitFieldMaskBit63 = 0x1
383)
384
385type SockaddrStorage struct {
386	Family uint16
387	_      [122]int8
388	_      uint32
389}
390
391type HDGeometry struct {
392	Heads     uint8
393	Sectors   uint8
394	Cylinders uint16
395	Start     uint32
396}
397
398type Statfs_t struct {
399	Type    int32
400	Bsize   int32
401	Frsize  int32
402	_       [4]byte
403	Blocks  uint64
404	Bfree   uint64
405	Files   uint64
406	Ffree   uint64
407	Bavail  uint64
408	Fsid    Fsid
409	Namelen int32
410	Flags   int32
411	Spare   [5]int32
412	_       [4]byte
413}
414
415type TpacketHdr struct {
416	Status  uint32
417	Len     uint32
418	Snaplen uint32
419	Mac     uint16
420	Net     uint16
421	Sec     uint32
422	Usec    uint32
423}
424
425const (
426	SizeofTpacketHdr = 0x18
427)
428
429type RTCPLLInfo struct {
430	Ctrl    int32
431	Value   int32
432	Max     int32
433	Min     int32
434	Posmult int32
435	Negmult int32
436	Clock   int32
437}
438
439type BlkpgPartition struct {
440	Start   int64
441	Length  int64
442	Pno     int32
443	Devname [64]uint8
444	Volname [64]uint8
445	_       [4]byte
446}
447
448const (
449	BLKPG = 0x20001269
450)
451
452type XDPUmemReg struct {
453	Addr     uint64
454	Len      uint64
455	Size     uint32
456	Headroom uint32
457	Flags    uint32
458	_        [4]byte
459}
460
461type CryptoUserAlg struct {
462	Name        [64]int8
463	Driver_name [64]int8
464	Module_name [64]int8
465	Type        uint32
466	Mask        uint32
467	Refcnt      uint32
468	Flags       uint32
469}
470
471type CryptoStatAEAD struct {
472	Type         [64]int8
473	Encrypt_cnt  uint64
474	Encrypt_tlen uint64
475	Decrypt_cnt  uint64
476	Decrypt_tlen uint64
477	Err_cnt      uint64
478}
479
480type CryptoStatAKCipher struct {
481	Type         [64]int8
482	Encrypt_cnt  uint64
483	Encrypt_tlen uint64
484	Decrypt_cnt  uint64
485	Decrypt_tlen uint64
486	Verify_cnt   uint64
487	Sign_cnt     uint64
488	Err_cnt      uint64
489}
490
491type CryptoStatCipher struct {
492	Type         [64]int8
493	Encrypt_cnt  uint64
494	Encrypt_tlen uint64
495	Decrypt_cnt  uint64
496	Decrypt_tlen uint64
497	Err_cnt      uint64
498}
499
500type CryptoStatCompress struct {
501	Type            [64]int8
502	Compress_cnt    uint64
503	Compress_tlen   uint64
504	Decompress_cnt  uint64
505	Decompress_tlen uint64
506	Err_cnt         uint64
507}
508
509type CryptoStatHash struct {
510	Type      [64]int8
511	Hash_cnt  uint64
512	Hash_tlen uint64
513	Err_cnt   uint64
514}
515
516type CryptoStatKPP struct {
517	Type                      [64]int8
518	Setsecret_cnt             uint64
519	Generate_public_key_cnt   uint64
520	Compute_shared_secret_cnt uint64
521	Err_cnt                   uint64
522}
523
524type CryptoStatRNG struct {
525	Type          [64]int8
526	Generate_cnt  uint64
527	Generate_tlen uint64
528	Seed_cnt      uint64
529	Err_cnt       uint64
530}
531
532type CryptoStatLarval struct {
533	Type [64]int8
534}
535
536type CryptoReportLarval struct {
537	Type [64]int8
538}
539
540type CryptoReportHash struct {
541	Type       [64]int8
542	Blocksize  uint32
543	Digestsize uint32
544}
545
546type CryptoReportCipher struct {
547	Type        [64]int8
548	Blocksize   uint32
549	Min_keysize uint32
550	Max_keysize uint32
551}
552
553type CryptoReportBlkCipher struct {
554	Type        [64]int8
555	Geniv       [64]int8
556	Blocksize   uint32
557	Min_keysize uint32
558	Max_keysize uint32
559	Ivsize      uint32
560}
561
562type CryptoReportAEAD struct {
563	Type        [64]int8
564	Geniv       [64]int8
565	Blocksize   uint32
566	Maxauthsize uint32
567	Ivsize      uint32
568}
569
570type CryptoReportComp struct {
571	Type [64]int8
572}
573
574type CryptoReportRNG struct {
575	Type     [64]int8
576	Seedsize uint32
577}
578
579type CryptoReportAKCipher struct {
580	Type [64]int8
581}
582
583type CryptoReportKPP struct {
584	Type [64]int8
585}
586
587type CryptoReportAcomp struct {
588	Type [64]int8
589}
590
591type LoopInfo struct {
592	Number           int32
593	Device           uint32
594	Inode            uint32
595	Rdevice          uint32
596	Offset           int32
597	Encrypt_type     int32
598	Encrypt_key_size int32
599	Flags            int32
600	Name             [64]int8
601	Encrypt_key      [32]uint8
602	Init             [2]uint32
603	Reserved         [4]int8
604}
605
606type TIPCSubscr struct {
607	Seq     TIPCServiceRange
608	Timeout uint32
609	Filter  uint32
610	Handle  [8]int8
611}
612
613type TIPCSIOCLNReq struct {
614	Peer     uint32
615	Id       uint32
616	Linkname [68]int8
617}
618
619type TIPCSIOCNodeIDReq struct {
620	Peer uint32
621	Id   [16]int8
622}
623
624type PPSKInfo struct {
625	Assert_sequence uint32
626	Clear_sequence  uint32
627	Assert_tu       PPSKTime
628	Clear_tu        PPSKTime
629	Current_mode    int32
630	_               [4]byte
631}
632
633const (
634	PPS_GETPARAMS = 0x400470a1
635	PPS_SETPARAMS = 0x800470a2
636	PPS_GETCAP    = 0x400470a3
637	PPS_FETCH     = 0xc00470a4
638)
639
640const (
641	PIDFD_NONBLOCK = 0x80
642)
643
644type SysvIpcPerm struct {
645	Key  int32
646	Uid  uint32
647	Gid  uint32
648	Cuid uint32
649	Cgid uint32
650	Mode uint32
651	_    [0]uint8
652	Seq  uint16
653	_    uint16
654	_    uint32
655	_    uint32
656}
657type SysvShmDesc struct {
658	Perm       SysvIpcPerm
659	Segsz      uint32
660	Atime      uint32
661	Dtime      uint32
662	Ctime      uint32
663	Cpid       int32
664	Lpid       int32
665	Nattch     uint32
666	Atime_high uint16
667	Dtime_high uint16
668	Ctime_high uint16
669	_          uint16
670}
671