blob: 569477eef8ee29228d6e7bc69c5dccec334c4dbb [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 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}
285
286type cpuMask uint32
287
288const (
289 _NCPUBITS = 0x20
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 _ [122]int8
362 _ uint32
363}
364
365type HDGeometry struct {
366 Heads uint8
367 Sectors uint8
368 Cylinders uint16
369 Start uint32
370}
371
372type Statfs_t struct {
373 Type int32
374 Bsize int32
375 Frsize int32
376 _ [4]byte
377 Blocks uint64
378 Bfree uint64
379 Files uint64
380 Ffree uint64
381 Bavail uint64
382 Fsid Fsid
383 Namelen int32
384 Flags int32
385 Spare [5]int32
386 _ [4]byte
387}
388
389type TpacketHdr struct {
390 Status uint32
391 Len uint32
392 Snaplen uint32
393 Mac uint16
394 Net uint16
395 Sec uint32
396 Usec uint32
397}
398
399const (
400 SizeofTpacketHdr = 0x18
401)
402
403type RTCPLLInfo struct {
404 Ctrl int32
405 Value int32
406 Max int32
407 Min int32
408 Posmult int32
409 Negmult int32
410 Clock int32
411}
412
413type BlkpgPartition struct {
414 Start int64
415 Length int64
416 Pno int32
417 Devname [64]uint8
418 Volname [64]uint8
419 _ [4]byte
420}
421
422const (
423 BLKPG = 0x20001269
424)
425
426type XDPUmemReg struct {
427 Addr uint64
428 Len uint64
429 Size uint32
430 Headroom uint32
431 Flags uint32
432 _ [4]byte
433}
434
435type CryptoUserAlg struct {
436 Name [64]int8
437 Driver_name [64]int8
438 Module_name [64]int8
439 Type uint32
440 Mask uint32
441 Refcnt uint32
442 Flags uint32
443}
444
445type CryptoStatAEAD struct {
446 Type [64]int8
447 Encrypt_cnt uint64
448 Encrypt_tlen uint64
449 Decrypt_cnt uint64
450 Decrypt_tlen uint64
451 Err_cnt uint64
452}
453
454type CryptoStatAKCipher struct {
455 Type [64]int8
456 Encrypt_cnt uint64
457 Encrypt_tlen uint64
458 Decrypt_cnt uint64
459 Decrypt_tlen uint64
460 Verify_cnt uint64
461 Sign_cnt uint64
462 Err_cnt uint64
463}
464
465type CryptoStatCipher struct {
466 Type [64]int8
467 Encrypt_cnt uint64
468 Encrypt_tlen uint64
469 Decrypt_cnt uint64
470 Decrypt_tlen uint64
471 Err_cnt uint64
472}
473
474type CryptoStatCompress struct {
475 Type [64]int8
476 Compress_cnt uint64
477 Compress_tlen uint64
478 Decompress_cnt uint64
479 Decompress_tlen uint64
480 Err_cnt uint64
481}
482
483type CryptoStatHash struct {
484 Type [64]int8
485 Hash_cnt uint64
486 Hash_tlen uint64
487 Err_cnt uint64
488}
489
490type CryptoStatKPP struct {
491 Type [64]int8
492 Setsecret_cnt uint64
493 Generate_public_key_cnt uint64
494 Compute_shared_secret_cnt uint64
495 Err_cnt uint64
496}
497
498type CryptoStatRNG struct {
499 Type [64]int8
500 Generate_cnt uint64
501 Generate_tlen uint64
502 Seed_cnt uint64
503 Err_cnt uint64
504}
505
506type CryptoStatLarval struct {
507 Type [64]int8
508}
509
510type CryptoReportLarval struct {
511 Type [64]int8
512}
513
514type CryptoReportHash struct {
515 Type [64]int8
516 Blocksize uint32
517 Digestsize uint32
518}
519
520type CryptoReportCipher struct {
521 Type [64]int8
522 Blocksize uint32
523 Min_keysize uint32
524 Max_keysize uint32
525}
526
527type CryptoReportBlkCipher struct {
528 Type [64]int8
529 Geniv [64]int8
530 Blocksize uint32
531 Min_keysize uint32
532 Max_keysize uint32
533 Ivsize uint32
534}
535
536type CryptoReportAEAD struct {
537 Type [64]int8
538 Geniv [64]int8
539 Blocksize uint32
540 Maxauthsize uint32
541 Ivsize uint32
542}
543
544type CryptoReportComp struct {
545 Type [64]int8
546}
547
548type CryptoReportRNG struct {
549 Type [64]int8
550 Seedsize uint32
551}
552
553type CryptoReportAKCipher struct {
554 Type [64]int8
555}
556
557type CryptoReportKPP struct {
558 Type [64]int8
559}
560
561type CryptoReportAcomp struct {
562 Type [64]int8
563}
564
565type LoopInfo struct {
566 Number int32
567 Device uint32
568 Inode uint32
569 Rdevice uint32
570 Offset int32
571 Encrypt_type int32
572 Encrypt_key_size int32
573 Flags int32
574 Name [64]int8
575 Encrypt_key [32]uint8
576 Init [2]uint32
577 Reserved [4]int8
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}