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