1// cgo -godefs -- -Wall -Werror -static -I/tmp/include linux/types.go | go run mkpost.go
2// Code generated by the command above; see README.md. DO NOT EDIT.
3
4// +build mipsle,linux
5
6package unix
7
8const (
9	SizeofPtr  = 0x4
10	SizeofLong = 0x4
11)
12
13type (
14	_C_long int32
15)
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
48	_         [44]byte
49}
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
84type 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
104type Dirent struct {
105	Ino    uint64
106	Off    int64
107	Reclen uint16
108	Type   uint8
109	Name   [256]int8
110	_      [5]byte
111}
112
113type 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
123const (
124	FADV_DONTNEED = 0x4
125	FADV_NOREUSE  = 0x5
126)
127
128type RawSockaddr struct {
129	Family uint16
130	Data   [14]int8
131}
132
133type RawSockaddrAny struct {
134	Addr RawSockaddr
135	Pad  [96]int8
136}
137
138type Iovec struct {
139	Base *byte
140	Len  uint32
141}
142
143type Msghdr struct {
144	Name       *byte
145	Namelen    uint32
146	Iov        *Iovec
147	Iovlen     uint32
148	Control    *byte
149	Controllen uint32
150	Flags      int32
151}
152
153type Cmsghdr struct {
154	Len   uint32
155	Level int32
156	Type  int32
157}
158
159const (
160	SizeofIovec   = 0x8
161	SizeofMsghdr  = 0x1c
162	SizeofCmsghdr = 0xc
163)
164
165const (
166	SizeofSockFprog = 0x8
167)
168
169type PtraceRegs struct {
170	Regs     [32]uint64
171	Lo       uint64
172	Hi       uint64
173	Epc      uint64
174	Badvaddr uint64
175	Status   uint64
176	Cause    uint64
177}
178
179type FdSet struct {
180	Bits [32]int32
181}
182
183type Sysinfo_t struct {
184	Uptime    int32
185	Loads     [3]uint32
186	Totalram  uint32
187	Freeram   uint32
188	Sharedram uint32
189	Bufferram uint32
190	Totalswap uint32
191	Freeswap  uint32
192	Procs     uint16
193	Pad       uint16
194	Totalhigh uint32
195	Freehigh  uint32
196	Unit      uint32
197	_         [8]int8
198}
199
200type Ustat_t struct {
201	Tfree  int32
202	Tinode uint32
203	Fname  [6]int8
204	Fpack  [6]int8
205}
206
207type EpollEvent struct {
208	Events uint32
209	PadFd  int32
210	Fd     int32
211	Pad    int32
212}
213
214const (
215	POLLRDHUP = 0x2000
216)
217
218type Sigset_t struct {
219	Val [32]uint32
220}
221
222const _C__NSIG = 0x80
223
224type Termios struct {
225	Iflag  uint32
226	Oflag  uint32
227	Cflag  uint32
228	Lflag  uint32
229	Line   uint8
230	Cc     [23]uint8
231	Ispeed uint32
232	Ospeed uint32
233}
234
235type Taskstats struct {
236	Version                   uint16
237	Ac_exitcode               uint32
238	Ac_flag                   uint8
239	Ac_nice                   uint8
240	_                         [4]byte
241	Cpu_count                 uint64
242	Cpu_delay_total           uint64
243	Blkio_count               uint64
244	Blkio_delay_total         uint64
245	Swapin_count              uint64
246	Swapin_delay_total        uint64
247	Cpu_run_real_total        uint64
248	Cpu_run_virtual_total     uint64
249	Ac_comm                   [32]int8
250	Ac_sched                  uint8
251	Ac_pad                    [3]uint8
252	_                         [4]byte
253	Ac_uid                    uint32
254	Ac_gid                    uint32
255	Ac_pid                    uint32
256	Ac_ppid                   uint32
257	Ac_btime                  uint32
258	_                         [4]byte
259	Ac_etime                  uint64
260	Ac_utime                  uint64
261	Ac_stime                  uint64
262	Ac_minflt                 uint64
263	Ac_majflt                 uint64
264	Coremem                   uint64
265	Virtmem                   uint64
266	Hiwater_rss               uint64
267	Hiwater_vm                uint64
268	Read_char                 uint64
269	Write_char                uint64
270	Read_syscalls             uint64
271	Write_syscalls            uint64
272	Read_bytes                uint64
273	Write_bytes               uint64
274	Cancelled_write_bytes     uint64
275	Nvcsw                     uint64
276	Nivcsw                    uint64
277	Ac_utimescaled            uint64
278	Ac_stimescaled            uint64
279	Cpu_scaled_run_real_total uint64
280	Freepages_count           uint64
281	Freepages_delay_total     uint64
282	Thrashing_count           uint64
283	Thrashing_delay_total     uint64
284	Ac_btime64                uint64
285}
286
287type cpuMask uint32
288
289const (
290	_NCPUBITS = 0x20
291)
292
293const (
294	CBitFieldMaskBit0  = 0x1
295	CBitFieldMaskBit1  = 0x2
296	CBitFieldMaskBit2  = 0x4
297	CBitFieldMaskBit3  = 0x8
298	CBitFieldMaskBit4  = 0x10
299	CBitFieldMaskBit5  = 0x20
300	CBitFieldMaskBit6  = 0x40
301	CBitFieldMaskBit7  = 0x80
302	CBitFieldMaskBit8  = 0x100
303	CBitFieldMaskBit9  = 0x200
304	CBitFieldMaskBit10 = 0x400
305	CBitFieldMaskBit11 = 0x800
306	CBitFieldMaskBit12 = 0x1000
307	CBitFieldMaskBit13 = 0x2000
308	CBitFieldMaskBit14 = 0x4000
309	CBitFieldMaskBit15 = 0x8000
310	CBitFieldMaskBit16 = 0x10000
311	CBitFieldMaskBit17 = 0x20000
312	CBitFieldMaskBit18 = 0x40000
313	CBitFieldMaskBit19 = 0x80000
314	CBitFieldMaskBit20 = 0x100000
315	CBitFieldMaskBit21 = 0x200000
316	CBitFieldMaskBit22 = 0x400000
317	CBitFieldMaskBit23 = 0x800000
318	CBitFieldMaskBit24 = 0x1000000
319	CBitFieldMaskBit25 = 0x2000000
320	CBitFieldMaskBit26 = 0x4000000
321	CBitFieldMaskBit27 = 0x8000000
322	CBitFieldMaskBit28 = 0x10000000
323	CBitFieldMaskBit29 = 0x20000000
324	CBitFieldMaskBit30 = 0x40000000
325	CBitFieldMaskBit31 = 0x80000000
326	CBitFieldMaskBit32 = 0x100000000
327	CBitFieldMaskBit33 = 0x200000000
328	CBitFieldMaskBit34 = 0x400000000
329	CBitFieldMaskBit35 = 0x800000000
330	CBitFieldMaskBit36 = 0x1000000000
331	CBitFieldMaskBit37 = 0x2000000000
332	CBitFieldMaskBit38 = 0x4000000000
333	CBitFieldMaskBit39 = 0x8000000000
334	CBitFieldMaskBit40 = 0x10000000000
335	CBitFieldMaskBit41 = 0x20000000000
336	CBitFieldMaskBit42 = 0x40000000000
337	CBitFieldMaskBit43 = 0x80000000000
338	CBitFieldMaskBit44 = 0x100000000000
339	CBitFieldMaskBit45 = 0x200000000000
340	CBitFieldMaskBit46 = 0x400000000000
341	CBitFieldMaskBit47 = 0x800000000000
342	CBitFieldMaskBit48 = 0x1000000000000
343	CBitFieldMaskBit49 = 0x2000000000000
344	CBitFieldMaskBit50 = 0x4000000000000
345	CBitFieldMaskBit51 = 0x8000000000000
346	CBitFieldMaskBit52 = 0x10000000000000
347	CBitFieldMaskBit53 = 0x20000000000000
348	CBitFieldMaskBit54 = 0x40000000000000
349	CBitFieldMaskBit55 = 0x80000000000000
350	CBitFieldMaskBit56 = 0x100000000000000
351	CBitFieldMaskBit57 = 0x200000000000000
352	CBitFieldMaskBit58 = 0x400000000000000
353	CBitFieldMaskBit59 = 0x800000000000000
354	CBitFieldMaskBit60 = 0x1000000000000000
355	CBitFieldMaskBit61 = 0x2000000000000000
356	CBitFieldMaskBit62 = 0x4000000000000000
357	CBitFieldMaskBit63 = 0x8000000000000000
358)
359
360type SockaddrStorage struct {
361	Family uint16
362	_      [122]int8
363	_      uint32
364}
365
366type HDGeometry struct {
367	Heads     uint8
368	Sectors   uint8
369	Cylinders uint16
370	Start     uint32
371}
372
373type Statfs_t struct {
374	Type    int32
375	Bsize   int32
376	Frsize  int32
377	_       [4]byte
378	Blocks  uint64
379	Bfree   uint64
380	Files   uint64
381	Ffree   uint64
382	Bavail  uint64
383	Fsid    Fsid
384	Namelen int32
385	Flags   int32
386	Spare   [5]int32
387	_       [4]byte
388}
389
390type TpacketHdr struct {
391	Status  uint32
392	Len     uint32
393	Snaplen uint32
394	Mac     uint16
395	Net     uint16
396	Sec     uint32
397	Usec    uint32
398}
399
400const (
401	SizeofTpacketHdr = 0x18
402)
403
404type RTCPLLInfo struct {
405	Ctrl    int32
406	Value   int32
407	Max     int32
408	Min     int32
409	Posmult int32
410	Negmult int32
411	Clock   int32
412}
413
414type BlkpgPartition struct {
415	Start   int64
416	Length  int64
417	Pno     int32
418	Devname [64]uint8
419	Volname [64]uint8
420	_       [4]byte
421}
422
423const (
424	BLKPG = 0x20001269
425)
426
427type XDPUmemReg struct {
428	Addr     uint64
429	Len      uint64
430	Size     uint32
431	Headroom uint32
432	Flags    uint32
433	_        [4]byte
434}
435
436type CryptoUserAlg struct {
437	Name        [64]int8
438	Driver_name [64]int8
439	Module_name [64]int8
440	Type        uint32
441	Mask        uint32
442	Refcnt      uint32
443	Flags       uint32
444}
445
446type CryptoStatAEAD struct {
447	Type         [64]int8
448	Encrypt_cnt  uint64
449	Encrypt_tlen uint64
450	Decrypt_cnt  uint64
451	Decrypt_tlen uint64
452	Err_cnt      uint64
453}
454
455type CryptoStatAKCipher struct {
456	Type         [64]int8
457	Encrypt_cnt  uint64
458	Encrypt_tlen uint64
459	Decrypt_cnt  uint64
460	Decrypt_tlen uint64
461	Verify_cnt   uint64
462	Sign_cnt     uint64
463	Err_cnt      uint64
464}
465
466type CryptoStatCipher struct {
467	Type         [64]int8
468	Encrypt_cnt  uint64
469	Encrypt_tlen uint64
470	Decrypt_cnt  uint64
471	Decrypt_tlen uint64
472	Err_cnt      uint64
473}
474
475type CryptoStatCompress struct {
476	Type            [64]int8
477	Compress_cnt    uint64
478	Compress_tlen   uint64
479	Decompress_cnt  uint64
480	Decompress_tlen uint64
481	Err_cnt         uint64
482}
483
484type CryptoStatHash struct {
485	Type      [64]int8
486	Hash_cnt  uint64
487	Hash_tlen uint64
488	Err_cnt   uint64
489}
490
491type CryptoStatKPP struct {
492	Type                      [64]int8
493	Setsecret_cnt             uint64
494	Generate_public_key_cnt   uint64
495	Compute_shared_secret_cnt uint64
496	Err_cnt                   uint64
497}
498
499type CryptoStatRNG struct {
500	Type          [64]int8
501	Generate_cnt  uint64
502	Generate_tlen uint64
503	Seed_cnt      uint64
504	Err_cnt       uint64
505}
506
507type CryptoStatLarval struct {
508	Type [64]int8
509}
510
511type CryptoReportLarval struct {
512	Type [64]int8
513}
514
515type CryptoReportHash struct {
516	Type       [64]int8
517	Blocksize  uint32
518	Digestsize uint32
519}
520
521type CryptoReportCipher struct {
522	Type        [64]int8
523	Blocksize   uint32
524	Min_keysize uint32
525	Max_keysize uint32
526}
527
528type CryptoReportBlkCipher struct {
529	Type        [64]int8
530	Geniv       [64]int8
531	Blocksize   uint32
532	Min_keysize uint32
533	Max_keysize uint32
534	Ivsize      uint32
535}
536
537type CryptoReportAEAD struct {
538	Type        [64]int8
539	Geniv       [64]int8
540	Blocksize   uint32
541	Maxauthsize uint32
542	Ivsize      uint32
543}
544
545type CryptoReportComp struct {
546	Type [64]int8
547}
548
549type CryptoReportRNG struct {
550	Type     [64]int8
551	Seedsize uint32
552}
553
554type CryptoReportAKCipher struct {
555	Type [64]int8
556}
557
558type CryptoReportKPP struct {
559	Type [64]int8
560}
561
562type CryptoReportAcomp struct {
563	Type [64]int8
564}
565
566type LoopInfo struct {
567	Number           int32
568	Device           uint32
569	Inode            uint32
570	Rdevice          uint32
571	Offset           int32
572	Encrypt_type     int32
573	Encrypt_key_size int32
574	Flags            int32
575	Name             [64]int8
576	Encrypt_key      [32]uint8
577	Init             [2]uint32
578	Reserved         [4]int8
579}
580
581type TIPCSubscr struct {
582	Seq     TIPCServiceRange
583	Timeout uint32
584	Filter  uint32
585	Handle  [8]int8
586}
587
588type TIPCSIOCLNReq struct {
589	Peer     uint32
590	Id       uint32
591	Linkname [68]int8
592}
593
594type TIPCSIOCNodeIDReq struct {
595	Peer uint32
596	Id   [16]int8
597}
598