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