blob: 30abcf3bb8e3087e724c37537120aff98ffb03ec [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 mips64,linux
5
6package unix
7
8const (
Andrea Campanella3614a922021-02-25 12:40:42 +01009 SizeofPtr = 0x8
10 SizeofLong = 0x8
khenaidooac637102019-01-14 15:44:34 -050011)
12
13type (
Andrea Campanella3614a922021-02-25 12:40:42 +010014 _C_long int64
khenaidooac637102019-01-14 15:44:34 -050015)
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
khenaidooac637102019-01-14 15:44:34 -050084type 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
khenaidooac637102019-01-14 15:44:34 -0500103type Dirent struct {
104 Ino uint64
105 Off int64
106 Reclen uint16
107 Type uint8
108 Name [256]int8
109 _ [5]byte
110}
111
khenaidooac637102019-01-14 15:44:34 -0500112type Flock_t struct {
113 Type int16
114 Whence int16
115 Start int64
116 Len int64
117 Pid int32
118 _ [4]byte
119}
120
Andrea Campanella3614a922021-02-25 12:40:42 +0100121type DmNameList struct {
122 Dev uint64
123 Next uint32
124 Name [0]byte
125 _ [4]byte
khenaidooac637102019-01-14 15:44:34 -0500126}
127
128const (
Andrea Campanella3614a922021-02-25 12:40:42 +0100129 FADV_DONTNEED = 0x4
130 FADV_NOREUSE = 0x5
khenaidooac637102019-01-14 15:44:34 -0500131)
132
khenaidooac637102019-01-14 15:44:34 -0500133type RawSockaddr struct {
134 Family uint16
135 Data [14]int8
136}
137
138type RawSockaddrAny struct {
139 Addr RawSockaddr
140 Pad [96]int8
141}
142
khenaidooac637102019-01-14 15:44:34 -0500143type Iovec struct {
144 Base *byte
145 Len uint64
146}
147
khenaidooac637102019-01-14 15:44:34 -0500148type Msghdr struct {
149 Name *byte
150 Namelen uint32
151 Iov *Iovec
152 Iovlen uint64
153 Control *byte
154 Controllen uint64
155 Flags int32
156 _ [4]byte
157}
158
159type Cmsghdr struct {
160 Len uint64
161 Level int32
162 Type int32
163}
164
khenaidooac637102019-01-14 15:44:34 -0500165const (
Andrea Campanella3614a922021-02-25 12:40:42 +0100166 SizeofIovec = 0x10
167 SizeofMsghdr = 0x38
168 SizeofCmsghdr = 0x10
khenaidooac637102019-01-14 15:44:34 -0500169)
170
171const (
Andrea Campanella3614a922021-02-25 12:40:42 +0100172 SizeofSockFprog = 0x10
khenaidooac637102019-01-14 15:44:34 -0500173)
174
khenaidooac637102019-01-14 15:44:34 -0500175type PtraceRegs struct {
176 Regs [32]uint64
177 Lo uint64
178 Hi uint64
179 Epc uint64
180 Badvaddr uint64
181 Status uint64
182 Cause uint64
183}
184
185type FdSet struct {
186 Bits [16]int64
187}
188
189type Sysinfo_t struct {
190 Uptime int64
191 Loads [3]uint64
192 Totalram uint64
193 Freeram uint64
194 Sharedram uint64
195 Bufferram uint64
196 Totalswap uint64
197 Freeswap uint64
198 Procs uint16
199 Pad uint16
200 Totalhigh uint64
201 Freehigh uint64
202 Unit uint32
203 _ [0]int8
204 _ [4]byte
205}
206
khenaidooac637102019-01-14 15:44:34 -0500207type Ustat_t struct {
208 Tfree int32
209 Tinode uint64
210 Fname [6]int8
211 Fpack [6]int8
212 _ [4]byte
213}
214
215type EpollEvent struct {
216 Events uint32
Andrea Campanella3614a922021-02-25 12:40:42 +0100217 _ int32
khenaidooac637102019-01-14 15:44:34 -0500218 Fd int32
219 Pad int32
220}
221
222const (
khenaidooac637102019-01-14 15:44:34 -0500223 POLLRDHUP = 0x2000
khenaidooac637102019-01-14 15:44:34 -0500224)
225
226type Sigset_t struct {
227 Val [16]uint64
228}
229
Scott Baker8461e152019-10-01 14:44:30 -0700230const _C__NSIG = 0x80
231
khenaidooac637102019-01-14 15:44:34 -0500232type Termios struct {
233 Iflag uint32
234 Oflag uint32
235 Cflag uint32
236 Lflag uint32
237 Line uint8
238 Cc [23]uint8
239 Ispeed uint32
240 Ospeed uint32
241}
242
khenaidooac637102019-01-14 15:44:34 -0500243type Taskstats struct {
244 Version uint16
245 Ac_exitcode uint32
246 Ac_flag uint8
247 Ac_nice uint8
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 Ac_etime uint64
266 Ac_utime uint64
267 Ac_stime uint64
268 Ac_minflt uint64
269 Ac_majflt uint64
270 Coremem uint64
271 Virtmem uint64
272 Hiwater_rss uint64
273 Hiwater_vm uint64
274 Read_char uint64
275 Write_char uint64
276 Read_syscalls uint64
277 Write_syscalls uint64
278 Read_bytes uint64
279 Write_bytes uint64
280 Cancelled_write_bytes uint64
281 Nvcsw uint64
282 Nivcsw uint64
283 Ac_utimescaled uint64
284 Ac_stimescaled uint64
285 Cpu_scaled_run_real_total uint64
286 Freepages_count uint64
287 Freepages_delay_total uint64
288 Thrashing_count uint64
289 Thrashing_delay_total uint64
Andrea Campanella3614a922021-02-25 12:40:42 +0100290 Ac_btime64 uint64
khenaidooac637102019-01-14 15:44:34 -0500291}
292
khenaidooac637102019-01-14 15:44:34 -0500293type cpuMask uint64
294
295const (
Andrea Campanella3614a922021-02-25 12:40:42 +0100296 _NCPUBITS = 0x40
khenaidooac637102019-01-14 15:44:34 -0500297)
298
299const (
300 CBitFieldMaskBit0 = 0x8000000000000000
301 CBitFieldMaskBit1 = 0x4000000000000000
302 CBitFieldMaskBit2 = 0x2000000000000000
303 CBitFieldMaskBit3 = 0x1000000000000000
304 CBitFieldMaskBit4 = 0x800000000000000
305 CBitFieldMaskBit5 = 0x400000000000000
306 CBitFieldMaskBit6 = 0x200000000000000
307 CBitFieldMaskBit7 = 0x100000000000000
308 CBitFieldMaskBit8 = 0x80000000000000
309 CBitFieldMaskBit9 = 0x40000000000000
310 CBitFieldMaskBit10 = 0x20000000000000
311 CBitFieldMaskBit11 = 0x10000000000000
312 CBitFieldMaskBit12 = 0x8000000000000
313 CBitFieldMaskBit13 = 0x4000000000000
314 CBitFieldMaskBit14 = 0x2000000000000
315 CBitFieldMaskBit15 = 0x1000000000000
316 CBitFieldMaskBit16 = 0x800000000000
317 CBitFieldMaskBit17 = 0x400000000000
318 CBitFieldMaskBit18 = 0x200000000000
319 CBitFieldMaskBit19 = 0x100000000000
320 CBitFieldMaskBit20 = 0x80000000000
321 CBitFieldMaskBit21 = 0x40000000000
322 CBitFieldMaskBit22 = 0x20000000000
323 CBitFieldMaskBit23 = 0x10000000000
324 CBitFieldMaskBit24 = 0x8000000000
325 CBitFieldMaskBit25 = 0x4000000000
326 CBitFieldMaskBit26 = 0x2000000000
327 CBitFieldMaskBit27 = 0x1000000000
328 CBitFieldMaskBit28 = 0x800000000
329 CBitFieldMaskBit29 = 0x400000000
330 CBitFieldMaskBit30 = 0x200000000
331 CBitFieldMaskBit31 = 0x100000000
332 CBitFieldMaskBit32 = 0x80000000
333 CBitFieldMaskBit33 = 0x40000000
334 CBitFieldMaskBit34 = 0x20000000
335 CBitFieldMaskBit35 = 0x10000000
336 CBitFieldMaskBit36 = 0x8000000
337 CBitFieldMaskBit37 = 0x4000000
338 CBitFieldMaskBit38 = 0x2000000
339 CBitFieldMaskBit39 = 0x1000000
340 CBitFieldMaskBit40 = 0x800000
341 CBitFieldMaskBit41 = 0x400000
342 CBitFieldMaskBit42 = 0x200000
343 CBitFieldMaskBit43 = 0x100000
344 CBitFieldMaskBit44 = 0x80000
345 CBitFieldMaskBit45 = 0x40000
346 CBitFieldMaskBit46 = 0x20000
347 CBitFieldMaskBit47 = 0x10000
348 CBitFieldMaskBit48 = 0x8000
349 CBitFieldMaskBit49 = 0x4000
350 CBitFieldMaskBit50 = 0x2000
351 CBitFieldMaskBit51 = 0x1000
352 CBitFieldMaskBit52 = 0x800
353 CBitFieldMaskBit53 = 0x400
354 CBitFieldMaskBit54 = 0x200
355 CBitFieldMaskBit55 = 0x100
356 CBitFieldMaskBit56 = 0x80
357 CBitFieldMaskBit57 = 0x40
358 CBitFieldMaskBit58 = 0x20
359 CBitFieldMaskBit59 = 0x10
360 CBitFieldMaskBit60 = 0x8
361 CBitFieldMaskBit61 = 0x4
362 CBitFieldMaskBit62 = 0x2
363 CBitFieldMaskBit63 = 0x1
364)
365
366type SockaddrStorage struct {
367 Family uint16
368 _ [118]int8
369 _ uint64
370}
371
khenaidooac637102019-01-14 15:44:34 -0500372type HDGeometry struct {
373 Heads uint8
374 Sectors uint8
375 Cylinders uint16
376 Start uint64
377}
378
khenaidooac637102019-01-14 15:44:34 -0500379type Statfs_t struct {
380 Type int64
381 Bsize int64
382 Frsize int64
383 Blocks uint64
384 Bfree uint64
385 Files uint64
386 Ffree uint64
387 Bavail uint64
388 Fsid Fsid
389 Namelen int64
390 Flags int64
391 Spare [5]int64
392}
393
khenaidooac637102019-01-14 15:44:34 -0500394type TpacketHdr struct {
395 Status uint64
396 Len uint32
397 Snaplen uint32
398 Mac uint16
399 Net uint16
400 Sec uint32
401 Usec uint32
402 _ [4]byte
403}
404
khenaidooac637102019-01-14 15:44:34 -0500405const (
Andrea Campanella3614a922021-02-25 12:40:42 +0100406 SizeofTpacketHdr = 0x20
khenaidooac637102019-01-14 15:44:34 -0500407)
408
khenaidooac637102019-01-14 15:44:34 -0500409type RTCPLLInfo struct {
410 Ctrl int32
411 Value int32
412 Max int32
413 Min int32
414 Posmult int32
415 Negmult int32
416 Clock int64
417}
418
khenaidooac637102019-01-14 15:44:34 -0500419type BlkpgPartition struct {
420 Start int64
421 Length int64
422 Pno int32
423 Devname [64]uint8
424 Volname [64]uint8
425 _ [4]byte
426}
427
428const (
Andrea Campanella3614a922021-02-25 12:40:42 +0100429 BLKPG = 0x20001269
khenaidooac637102019-01-14 15:44:34 -0500430)
431
khenaidooac637102019-01-14 15:44:34 -0500432type XDPUmemReg struct {
433 Addr uint64
434 Len uint64
435 Size uint32
436 Headroom uint32
Andrea Campanella3614a922021-02-25 12:40:42 +0100437 Flags uint32
438 _ [4]byte
khenaidooac637102019-01-14 15:44:34 -0500439}
440
Scott Baker8461e152019-10-01 14:44:30 -0700441type CryptoUserAlg struct {
442 Name [64]int8
443 Driver_name [64]int8
444 Module_name [64]int8
445 Type uint32
446 Mask uint32
447 Refcnt uint32
448 Flags uint32
449}
450
451type CryptoStatAEAD struct {
452 Type [64]int8
453 Encrypt_cnt uint64
454 Encrypt_tlen uint64
455 Decrypt_cnt uint64
456 Decrypt_tlen uint64
457 Err_cnt uint64
458}
459
460type CryptoStatAKCipher struct {
461 Type [64]int8
462 Encrypt_cnt uint64
463 Encrypt_tlen uint64
464 Decrypt_cnt uint64
465 Decrypt_tlen uint64
466 Verify_cnt uint64
467 Sign_cnt uint64
468 Err_cnt uint64
469}
470
471type CryptoStatCipher struct {
472 Type [64]int8
473 Encrypt_cnt uint64
474 Encrypt_tlen uint64
475 Decrypt_cnt uint64
476 Decrypt_tlen uint64
477 Err_cnt uint64
478}
479
480type CryptoStatCompress struct {
481 Type [64]int8
482 Compress_cnt uint64
483 Compress_tlen uint64
484 Decompress_cnt uint64
485 Decompress_tlen uint64
486 Err_cnt uint64
487}
488
489type CryptoStatHash struct {
490 Type [64]int8
491 Hash_cnt uint64
492 Hash_tlen uint64
493 Err_cnt uint64
494}
495
496type CryptoStatKPP struct {
497 Type [64]int8
498 Setsecret_cnt uint64
499 Generate_public_key_cnt uint64
500 Compute_shared_secret_cnt uint64
501 Err_cnt uint64
502}
503
504type CryptoStatRNG struct {
505 Type [64]int8
506 Generate_cnt uint64
507 Generate_tlen uint64
508 Seed_cnt uint64
509 Err_cnt uint64
510}
511
512type CryptoStatLarval struct {
513 Type [64]int8
514}
515
516type CryptoReportLarval struct {
517 Type [64]int8
518}
519
520type CryptoReportHash struct {
521 Type [64]int8
522 Blocksize uint32
523 Digestsize uint32
524}
525
526type CryptoReportCipher struct {
527 Type [64]int8
528 Blocksize uint32
529 Min_keysize uint32
530 Max_keysize uint32
531}
532
533type CryptoReportBlkCipher struct {
534 Type [64]int8
535 Geniv [64]int8
536 Blocksize uint32
537 Min_keysize uint32
538 Max_keysize uint32
539 Ivsize uint32
540}
541
542type CryptoReportAEAD struct {
543 Type [64]int8
544 Geniv [64]int8
545 Blocksize uint32
546 Maxauthsize uint32
547 Ivsize uint32
548}
549
550type CryptoReportComp struct {
551 Type [64]int8
552}
553
554type CryptoReportRNG struct {
555 Type [64]int8
556 Seedsize uint32
557}
558
559type CryptoReportAKCipher struct {
560 Type [64]int8
561}
562
563type CryptoReportKPP struct {
564 Type [64]int8
565}
566
567type CryptoReportAcomp struct {
568 Type [64]int8
569}
570
Scott Baker8461e152019-10-01 14:44:30 -0700571type LoopInfo struct {
572 Number int32
573 Device uint32
574 Inode uint64
575 Rdevice uint32
576 Offset int32
577 Encrypt_type int32
578 Encrypt_key_size int32
579 Flags int32
580 Name [64]int8
581 Encrypt_key [32]uint8
582 Init [2]uint64
583 Reserved [4]int8
584 _ [4]byte
585}
Scott Baker8461e152019-10-01 14:44:30 -0700586
587type TIPCSubscr struct {
588 Seq TIPCServiceRange
589 Timeout uint32
590 Filter uint32
591 Handle [8]int8
592}
593
Scott Baker8461e152019-10-01 14:44:30 -0700594type TIPCSIOCLNReq struct {
595 Peer uint32
596 Id uint32
597 Linkname [68]int8
598}
599
600type TIPCSIOCNodeIDReq struct {
601 Peer uint32
602 Id [16]int8
603}