blob: 293690348f6e2d8293593f70f9562aaf4a0db064 [file] [log] [blame]
khenaidooac637102019-01-14 15:44:34 -05001// 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 (
Andrea Campanella3614a922021-02-25 12:40:42 +01009 SizeofPtr = 0x4
10 SizeofLong = 0x4
khenaidooac637102019-01-14 15:44:34 -050011)
12
13type (
Andrea Campanella3614a922021-02-25 12:40:42 +010014 _C_long int32
khenaidooac637102019-01-14 15:44:34 -050015)
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
khenaidooac637102019-01-14 15:44:34 -050084type 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
khenaidooac637102019-01-14 15:44:34 -0500104type Dirent struct {
105 Ino uint64
106 Off int64
107 Reclen uint16
108 Type uint8
109 Name [256]int8
110 _ [5]byte
111}
112
khenaidooac637102019-01-14 15:44:34 -0500113type 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
Andrea Campanella3614a922021-02-25 12:40:42 +0100123type DmNameList struct {
124 Dev uint64
125 Next uint32
126 Name [0]byte
127 _ [4]byte
khenaidooac637102019-01-14 15:44:34 -0500128}
129
130const (
Andrea Campanella3614a922021-02-25 12:40:42 +0100131 FADV_DONTNEED = 0x4
132 FADV_NOREUSE = 0x5
khenaidooac637102019-01-14 15:44:34 -0500133)
134
khenaidooac637102019-01-14 15:44:34 -0500135type RawSockaddr struct {
136 Family uint16
137 Data [14]int8
138}
139
140type RawSockaddrAny struct {
141 Addr RawSockaddr
142 Pad [96]int8
143}
144
khenaidooac637102019-01-14 15:44:34 -0500145type Iovec struct {
146 Base *byte
147 Len uint32
148}
149
khenaidooac637102019-01-14 15:44:34 -0500150type Msghdr struct {
151 Name *byte
152 Namelen uint32
153 Iov *Iovec
154 Iovlen uint32
155 Control *byte
156 Controllen uint32
157 Flags int32
158}
159
160type Cmsghdr struct {
161 Len uint32
162 Level int32
163 Type int32
164}
165
khenaidooac637102019-01-14 15:44:34 -0500166const (
Andrea Campanella3614a922021-02-25 12:40:42 +0100167 SizeofIovec = 0x8
168 SizeofMsghdr = 0x1c
169 SizeofCmsghdr = 0xc
khenaidooac637102019-01-14 15:44:34 -0500170)
171
172const (
Andrea Campanella3614a922021-02-25 12:40:42 +0100173 SizeofSockFprog = 0x8
khenaidooac637102019-01-14 15:44:34 -0500174)
175
khenaidooac637102019-01-14 15:44:34 -0500176type 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 [32]int32
188}
189
190type Sysinfo_t struct {
191 Uptime int32
192 Loads [3]uint32
193 Totalram uint32
194 Freeram uint32
195 Sharedram uint32
196 Bufferram uint32
197 Totalswap uint32
198 Freeswap uint32
199 Procs uint16
200 Pad uint16
201 Totalhigh uint32
202 Freehigh uint32
203 Unit uint32
204 _ [8]int8
205}
206
khenaidooac637102019-01-14 15:44:34 -0500207type Ustat_t struct {
208 Tfree int32
209 Tinode uint32
210 Fname [6]int8
211 Fpack [6]int8
212}
213
214type EpollEvent struct {
215 Events uint32
216 PadFd int32
217 Fd int32
218 Pad int32
219}
220
221const (
khenaidooac637102019-01-14 15:44:34 -0500222 POLLRDHUP = 0x2000
khenaidooac637102019-01-14 15:44:34 -0500223)
224
225type Sigset_t struct {
226 Val [32]uint32
227}
228
Scott Baker8461e152019-10-01 14:44:30 -0700229const _C__NSIG = 0x80
230
khenaidooac637102019-01-14 15:44:34 -0500231type Termios struct {
232 Iflag uint32
233 Oflag uint32
234 Cflag uint32
235 Lflag uint32
236 Line uint8
237 Cc [23]uint8
238 Ispeed uint32
239 Ospeed uint32
240}
241
khenaidooac637102019-01-14 15:44:34 -0500242type Taskstats struct {
243 Version uint16
244 Ac_exitcode uint32
245 Ac_flag uint8
246 Ac_nice uint8
247 _ [4]byte
248 Cpu_count uint64
249 Cpu_delay_total uint64
250 Blkio_count uint64
251 Blkio_delay_total uint64
252 Swapin_count uint64
253 Swapin_delay_total uint64
254 Cpu_run_real_total uint64
255 Cpu_run_virtual_total uint64
256 Ac_comm [32]int8
257 Ac_sched uint8
258 Ac_pad [3]uint8
259 _ [4]byte
260 Ac_uid uint32
261 Ac_gid uint32
262 Ac_pid uint32
263 Ac_ppid uint32
264 Ac_btime uint32
265 _ [4]byte
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
Andrea Campanella3614a922021-02-25 12:40:42 +0100291 Ac_btime64 uint64
khenaidooac637102019-01-14 15:44:34 -0500292}
293
khenaidooac637102019-01-14 15:44:34 -0500294type cpuMask uint32
295
296const (
Andrea Campanella3614a922021-02-25 12:40:42 +0100297 _NCPUBITS = 0x20
khenaidooac637102019-01-14 15:44:34 -0500298)
299
300const (
301 CBitFieldMaskBit0 = 0x1
302 CBitFieldMaskBit1 = 0x2
303 CBitFieldMaskBit2 = 0x4
304 CBitFieldMaskBit3 = 0x8
305 CBitFieldMaskBit4 = 0x10
306 CBitFieldMaskBit5 = 0x20
307 CBitFieldMaskBit6 = 0x40
308 CBitFieldMaskBit7 = 0x80
309 CBitFieldMaskBit8 = 0x100
310 CBitFieldMaskBit9 = 0x200
311 CBitFieldMaskBit10 = 0x400
312 CBitFieldMaskBit11 = 0x800
313 CBitFieldMaskBit12 = 0x1000
314 CBitFieldMaskBit13 = 0x2000
315 CBitFieldMaskBit14 = 0x4000
316 CBitFieldMaskBit15 = 0x8000
317 CBitFieldMaskBit16 = 0x10000
318 CBitFieldMaskBit17 = 0x20000
319 CBitFieldMaskBit18 = 0x40000
320 CBitFieldMaskBit19 = 0x80000
321 CBitFieldMaskBit20 = 0x100000
322 CBitFieldMaskBit21 = 0x200000
323 CBitFieldMaskBit22 = 0x400000
324 CBitFieldMaskBit23 = 0x800000
325 CBitFieldMaskBit24 = 0x1000000
326 CBitFieldMaskBit25 = 0x2000000
327 CBitFieldMaskBit26 = 0x4000000
328 CBitFieldMaskBit27 = 0x8000000
329 CBitFieldMaskBit28 = 0x10000000
330 CBitFieldMaskBit29 = 0x20000000
331 CBitFieldMaskBit30 = 0x40000000
332 CBitFieldMaskBit31 = 0x80000000
333 CBitFieldMaskBit32 = 0x100000000
334 CBitFieldMaskBit33 = 0x200000000
335 CBitFieldMaskBit34 = 0x400000000
336 CBitFieldMaskBit35 = 0x800000000
337 CBitFieldMaskBit36 = 0x1000000000
338 CBitFieldMaskBit37 = 0x2000000000
339 CBitFieldMaskBit38 = 0x4000000000
340 CBitFieldMaskBit39 = 0x8000000000
341 CBitFieldMaskBit40 = 0x10000000000
342 CBitFieldMaskBit41 = 0x20000000000
343 CBitFieldMaskBit42 = 0x40000000000
344 CBitFieldMaskBit43 = 0x80000000000
345 CBitFieldMaskBit44 = 0x100000000000
346 CBitFieldMaskBit45 = 0x200000000000
347 CBitFieldMaskBit46 = 0x400000000000
348 CBitFieldMaskBit47 = 0x800000000000
349 CBitFieldMaskBit48 = 0x1000000000000
350 CBitFieldMaskBit49 = 0x2000000000000
351 CBitFieldMaskBit50 = 0x4000000000000
352 CBitFieldMaskBit51 = 0x8000000000000
353 CBitFieldMaskBit52 = 0x10000000000000
354 CBitFieldMaskBit53 = 0x20000000000000
355 CBitFieldMaskBit54 = 0x40000000000000
356 CBitFieldMaskBit55 = 0x80000000000000
357 CBitFieldMaskBit56 = 0x100000000000000
358 CBitFieldMaskBit57 = 0x200000000000000
359 CBitFieldMaskBit58 = 0x400000000000000
360 CBitFieldMaskBit59 = 0x800000000000000
361 CBitFieldMaskBit60 = 0x1000000000000000
362 CBitFieldMaskBit61 = 0x2000000000000000
363 CBitFieldMaskBit62 = 0x4000000000000000
364 CBitFieldMaskBit63 = 0x8000000000000000
365)
366
367type SockaddrStorage struct {
368 Family uint16
369 _ [122]int8
370 _ uint32
371}
372
khenaidooac637102019-01-14 15:44:34 -0500373type HDGeometry struct {
374 Heads uint8
375 Sectors uint8
376 Cylinders uint16
377 Start uint32
378}
379
khenaidooac637102019-01-14 15:44:34 -0500380type Statfs_t struct {
381 Type int32
382 Bsize int32
383 Frsize int32
384 _ [4]byte
385 Blocks uint64
386 Bfree uint64
387 Files uint64
388 Ffree uint64
389 Bavail uint64
390 Fsid Fsid
391 Namelen int32
392 Flags int32
393 Spare [5]int32
394 _ [4]byte
395}
396
khenaidooac637102019-01-14 15:44:34 -0500397type TpacketHdr struct {
398 Status uint32
399 Len uint32
400 Snaplen uint32
401 Mac uint16
402 Net uint16
403 Sec uint32
404 Usec uint32
405}
406
khenaidooac637102019-01-14 15:44:34 -0500407const (
Andrea Campanella3614a922021-02-25 12:40:42 +0100408 SizeofTpacketHdr = 0x18
khenaidooac637102019-01-14 15:44:34 -0500409)
410
khenaidooac637102019-01-14 15:44:34 -0500411type RTCPLLInfo struct {
412 Ctrl int32
413 Value int32
414 Max int32
415 Min int32
416 Posmult int32
417 Negmult int32
418 Clock int32
419}
420
khenaidooac637102019-01-14 15:44:34 -0500421type BlkpgPartition struct {
422 Start int64
423 Length int64
424 Pno int32
425 Devname [64]uint8
426 Volname [64]uint8
427 _ [4]byte
428}
429
430const (
Andrea Campanella3614a922021-02-25 12:40:42 +0100431 BLKPG = 0x20001269
khenaidooac637102019-01-14 15:44:34 -0500432)
433
khenaidooac637102019-01-14 15:44:34 -0500434type XDPUmemReg struct {
435 Addr uint64
436 Len uint64
437 Size uint32
438 Headroom uint32
Andrea Campanella3614a922021-02-25 12:40:42 +0100439 Flags uint32
440 _ [4]byte
khenaidooac637102019-01-14 15:44:34 -0500441}
442
Scott Baker8461e152019-10-01 14:44:30 -0700443type CryptoUserAlg struct {
444 Name [64]int8
445 Driver_name [64]int8
446 Module_name [64]int8
447 Type uint32
448 Mask uint32
449 Refcnt uint32
450 Flags uint32
451}
452
453type CryptoStatAEAD struct {
454 Type [64]int8
455 Encrypt_cnt uint64
456 Encrypt_tlen uint64
457 Decrypt_cnt uint64
458 Decrypt_tlen uint64
459 Err_cnt uint64
460}
461
462type CryptoStatAKCipher struct {
463 Type [64]int8
464 Encrypt_cnt uint64
465 Encrypt_tlen uint64
466 Decrypt_cnt uint64
467 Decrypt_tlen uint64
468 Verify_cnt uint64
469 Sign_cnt uint64
470 Err_cnt uint64
471}
472
473type CryptoStatCipher struct {
474 Type [64]int8
475 Encrypt_cnt uint64
476 Encrypt_tlen uint64
477 Decrypt_cnt uint64
478 Decrypt_tlen uint64
479 Err_cnt uint64
480}
481
482type CryptoStatCompress struct {
483 Type [64]int8
484 Compress_cnt uint64
485 Compress_tlen uint64
486 Decompress_cnt uint64
487 Decompress_tlen uint64
488 Err_cnt uint64
489}
490
491type CryptoStatHash struct {
492 Type [64]int8
493 Hash_cnt uint64
494 Hash_tlen uint64
495 Err_cnt uint64
496}
497
498type CryptoStatKPP struct {
499 Type [64]int8
500 Setsecret_cnt uint64
501 Generate_public_key_cnt uint64
502 Compute_shared_secret_cnt uint64
503 Err_cnt uint64
504}
505
506type CryptoStatRNG struct {
507 Type [64]int8
508 Generate_cnt uint64
509 Generate_tlen uint64
510 Seed_cnt uint64
511 Err_cnt uint64
512}
513
514type CryptoStatLarval struct {
515 Type [64]int8
516}
517
518type CryptoReportLarval struct {
519 Type [64]int8
520}
521
522type CryptoReportHash struct {
523 Type [64]int8
524 Blocksize uint32
525 Digestsize uint32
526}
527
528type CryptoReportCipher struct {
529 Type [64]int8
530 Blocksize uint32
531 Min_keysize uint32
532 Max_keysize uint32
533}
534
535type CryptoReportBlkCipher struct {
536 Type [64]int8
537 Geniv [64]int8
538 Blocksize uint32
539 Min_keysize uint32
540 Max_keysize uint32
541 Ivsize uint32
542}
543
544type CryptoReportAEAD struct {
545 Type [64]int8
546 Geniv [64]int8
547 Blocksize uint32
548 Maxauthsize uint32
549 Ivsize uint32
550}
551
552type CryptoReportComp struct {
553 Type [64]int8
554}
555
556type CryptoReportRNG struct {
557 Type [64]int8
558 Seedsize uint32
559}
560
561type CryptoReportAKCipher struct {
562 Type [64]int8
563}
564
565type CryptoReportKPP struct {
566 Type [64]int8
567}
568
569type CryptoReportAcomp struct {
570 Type [64]int8
571}
572
Scott Baker8461e152019-10-01 14:44:30 -0700573type LoopInfo struct {
574 Number int32
575 Device uint32
576 Inode uint32
577 Rdevice uint32
578 Offset int32
579 Encrypt_type int32
580 Encrypt_key_size int32
581 Flags int32
582 Name [64]int8
583 Encrypt_key [32]uint8
584 Init [2]uint32
585 Reserved [4]int8
586}
Scott Baker8461e152019-10-01 14:44:30 -0700587
588type TIPCSubscr struct {
589 Seq TIPCServiceRange
590 Timeout uint32
591 Filter uint32
592 Handle [8]int8
593}
594
Scott Baker8461e152019-10-01 14:44:30 -0700595type 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}