blob: 485fda70be14551be9dad6eff97e4fbb88d232c6 [file] [log] [blame]
Scott Baker105df152020-04-13 15:55:14 -07001// 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}
284
285type cpuMask uint64
286
287const (
288 _NCPUBITS = 0x40
289)
290
291const (
292 CBitFieldMaskBit0 = 0x1
293 CBitFieldMaskBit1 = 0x2
294 CBitFieldMaskBit2 = 0x4
295 CBitFieldMaskBit3 = 0x8
296 CBitFieldMaskBit4 = 0x10
297 CBitFieldMaskBit5 = 0x20
298 CBitFieldMaskBit6 = 0x40
299 CBitFieldMaskBit7 = 0x80
300 CBitFieldMaskBit8 = 0x100
301 CBitFieldMaskBit9 = 0x200
302 CBitFieldMaskBit10 = 0x400
303 CBitFieldMaskBit11 = 0x800
304 CBitFieldMaskBit12 = 0x1000
305 CBitFieldMaskBit13 = 0x2000
306 CBitFieldMaskBit14 = 0x4000
307 CBitFieldMaskBit15 = 0x8000
308 CBitFieldMaskBit16 = 0x10000
309 CBitFieldMaskBit17 = 0x20000
310 CBitFieldMaskBit18 = 0x40000
311 CBitFieldMaskBit19 = 0x80000
312 CBitFieldMaskBit20 = 0x100000
313 CBitFieldMaskBit21 = 0x200000
314 CBitFieldMaskBit22 = 0x400000
315 CBitFieldMaskBit23 = 0x800000
316 CBitFieldMaskBit24 = 0x1000000
317 CBitFieldMaskBit25 = 0x2000000
318 CBitFieldMaskBit26 = 0x4000000
319 CBitFieldMaskBit27 = 0x8000000
320 CBitFieldMaskBit28 = 0x10000000
321 CBitFieldMaskBit29 = 0x20000000
322 CBitFieldMaskBit30 = 0x40000000
323 CBitFieldMaskBit31 = 0x80000000
324 CBitFieldMaskBit32 = 0x100000000
325 CBitFieldMaskBit33 = 0x200000000
326 CBitFieldMaskBit34 = 0x400000000
327 CBitFieldMaskBit35 = 0x800000000
328 CBitFieldMaskBit36 = 0x1000000000
329 CBitFieldMaskBit37 = 0x2000000000
330 CBitFieldMaskBit38 = 0x4000000000
331 CBitFieldMaskBit39 = 0x8000000000
332 CBitFieldMaskBit40 = 0x10000000000
333 CBitFieldMaskBit41 = 0x20000000000
334 CBitFieldMaskBit42 = 0x40000000000
335 CBitFieldMaskBit43 = 0x80000000000
336 CBitFieldMaskBit44 = 0x100000000000
337 CBitFieldMaskBit45 = 0x200000000000
338 CBitFieldMaskBit46 = 0x400000000000
339 CBitFieldMaskBit47 = 0x800000000000
340 CBitFieldMaskBit48 = 0x1000000000000
341 CBitFieldMaskBit49 = 0x2000000000000
342 CBitFieldMaskBit50 = 0x4000000000000
343 CBitFieldMaskBit51 = 0x8000000000000
344 CBitFieldMaskBit52 = 0x10000000000000
345 CBitFieldMaskBit53 = 0x20000000000000
346 CBitFieldMaskBit54 = 0x40000000000000
347 CBitFieldMaskBit55 = 0x80000000000000
348 CBitFieldMaskBit56 = 0x100000000000000
349 CBitFieldMaskBit57 = 0x200000000000000
350 CBitFieldMaskBit58 = 0x400000000000000
351 CBitFieldMaskBit59 = 0x800000000000000
352 CBitFieldMaskBit60 = 0x1000000000000000
353 CBitFieldMaskBit61 = 0x2000000000000000
354 CBitFieldMaskBit62 = 0x4000000000000000
355 CBitFieldMaskBit63 = 0x8000000000000000
356)
357
358type SockaddrStorage struct {
359 Family uint16
360 _ [118]int8
361 _ uint64
362}
363
364type HDGeometry struct {
365 Heads uint8
366 Sectors uint8
367 Cylinders uint16
368 Start uint64
369}
370
371type Statfs_t struct {
372 Type int64
373 Bsize int64
374 Frsize int64
375 Blocks uint64
376 Bfree uint64
377 Files uint64
378 Ffree uint64
379 Bavail uint64
380 Fsid Fsid
381 Namelen int64
382 Flags int64
383 Spare [5]int64
384}
385
386type TpacketHdr struct {
387 Status uint64
388 Len uint32
389 Snaplen uint32
390 Mac uint16
391 Net uint16
392 Sec uint32
393 Usec uint32
394 _ [4]byte
395}
396
397const (
398 SizeofTpacketHdr = 0x20
399)
400
401type RTCPLLInfo struct {
402 Ctrl int32
403 Value int32
404 Max int32
405 Min int32
406 Posmult int32
407 Negmult int32
408 Clock int64
409}
410
411type BlkpgPartition struct {
412 Start int64
413 Length int64
414 Pno int32
415 Devname [64]uint8
416 Volname [64]uint8
417 _ [4]byte
418}
419
420const (
421 BLKPG = 0x20001269
422)
423
424type XDPUmemReg struct {
425 Addr uint64
426 Len uint64
427 Size uint32
428 Headroom uint32
429 Flags uint32
430 _ [4]byte
431}
432
433type CryptoUserAlg struct {
434 Name [64]int8
435 Driver_name [64]int8
436 Module_name [64]int8
437 Type uint32
438 Mask uint32
439 Refcnt uint32
440 Flags uint32
441}
442
443type CryptoStatAEAD struct {
444 Type [64]int8
445 Encrypt_cnt uint64
446 Encrypt_tlen uint64
447 Decrypt_cnt uint64
448 Decrypt_tlen uint64
449 Err_cnt uint64
450}
451
452type CryptoStatAKCipher struct {
453 Type [64]int8
454 Encrypt_cnt uint64
455 Encrypt_tlen uint64
456 Decrypt_cnt uint64
457 Decrypt_tlen uint64
458 Verify_cnt uint64
459 Sign_cnt uint64
460 Err_cnt uint64
461}
462
463type CryptoStatCipher struct {
464 Type [64]int8
465 Encrypt_cnt uint64
466 Encrypt_tlen uint64
467 Decrypt_cnt uint64
468 Decrypt_tlen uint64
469 Err_cnt uint64
470}
471
472type CryptoStatCompress struct {
473 Type [64]int8
474 Compress_cnt uint64
475 Compress_tlen uint64
476 Decompress_cnt uint64
477 Decompress_tlen uint64
478 Err_cnt uint64
479}
480
481type CryptoStatHash struct {
482 Type [64]int8
483 Hash_cnt uint64
484 Hash_tlen uint64
485 Err_cnt uint64
486}
487
488type CryptoStatKPP struct {
489 Type [64]int8
490 Setsecret_cnt uint64
491 Generate_public_key_cnt uint64
492 Compute_shared_secret_cnt uint64
493 Err_cnt uint64
494}
495
496type CryptoStatRNG struct {
497 Type [64]int8
498 Generate_cnt uint64
499 Generate_tlen uint64
500 Seed_cnt uint64
501 Err_cnt uint64
502}
503
504type CryptoStatLarval struct {
505 Type [64]int8
506}
507
508type CryptoReportLarval struct {
509 Type [64]int8
510}
511
512type CryptoReportHash struct {
513 Type [64]int8
514 Blocksize uint32
515 Digestsize uint32
516}
517
518type CryptoReportCipher struct {
519 Type [64]int8
520 Blocksize uint32
521 Min_keysize uint32
522 Max_keysize uint32
523}
524
525type CryptoReportBlkCipher struct {
526 Type [64]int8
527 Geniv [64]int8
528 Blocksize uint32
529 Min_keysize uint32
530 Max_keysize uint32
531 Ivsize uint32
532}
533
534type CryptoReportAEAD struct {
535 Type [64]int8
536 Geniv [64]int8
537 Blocksize uint32
538 Maxauthsize uint32
539 Ivsize uint32
540}
541
542type CryptoReportComp struct {
543 Type [64]int8
544}
545
546type CryptoReportRNG struct {
547 Type [64]int8
548 Seedsize uint32
549}
550
551type CryptoReportAKCipher struct {
552 Type [64]int8
553}
554
555type CryptoReportKPP struct {
556 Type [64]int8
557}
558
559type CryptoReportAcomp struct {
560 Type [64]int8
561}
562
563type LoopInfo struct {
564 Number int32
565 Device uint32
566 Inode uint64
567 Rdevice uint32
568 Offset int32
569 Encrypt_type int32
570 Encrypt_key_size int32
571 Flags int32
572 Name [64]int8
573 Encrypt_key [32]uint8
574 Init [2]uint64
575 Reserved [4]int8
576 _ [4]byte
577}
578
579type TIPCSubscr struct {
580 Seq TIPCServiceRange
581 Timeout uint32
582 Filter uint32
583 Handle [8]int8
584}
585
586type TIPCSIOCLNReq struct {
587 Peer uint32
588 Id uint32
589 Linkname [68]int8
590}
591
592type TIPCSIOCNodeIDReq struct {
593 Peer uint32
594 Id [16]int8
595}