blob: 52b5348c2e9e21f0b83708c4bb7486f5cce1147d [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 riscv64,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 uint64
86 Ino uint64
87 Mode uint32
88 Nlink uint32
89 Uid uint32
90 Gid uint32
91 Rdev uint64
92 _ uint64
93 Size int64
94 Blksize int32
95 _ int32
96 Blocks int64
97 Atim Timespec
98 Mtim Timespec
99 Ctim Timespec
100 _ [2]int32
101}
102
103type Dirent struct {
104 Ino uint64
105 Off int64
106 Reclen uint16
107 Type uint8
108 Name [256]uint8
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]uint8
129}
130
131type RawSockaddrAny struct {
132 Addr RawSockaddr
133 Pad [96]uint8
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 Pc uint64
170 Ra uint64
171 Sp uint64
172 Gp uint64
173 Tp uint64
174 T0 uint64
175 T1 uint64
176 T2 uint64
177 S0 uint64
178 S1 uint64
179 A0 uint64
180 A1 uint64
181 A2 uint64
182 A3 uint64
183 A4 uint64
184 A5 uint64
185 A6 uint64
186 A7 uint64
187 S2 uint64
188 S3 uint64
189 S4 uint64
190 S5 uint64
191 S6 uint64
192 S7 uint64
193 S8 uint64
194 S9 uint64
195 S10 uint64
196 S11 uint64
197 T3 uint64
198 T4 uint64
199 T5 uint64
200 T6 uint64
201}
202
203type FdSet struct {
204 Bits [16]int64
205}
206
207type Sysinfo_t struct {
208 Uptime int64
209 Loads [3]uint64
210 Totalram uint64
211 Freeram uint64
212 Sharedram uint64
213 Bufferram uint64
214 Totalswap uint64
215 Freeswap uint64
216 Procs uint16
217 Pad uint16
218 Totalhigh uint64
219 Freehigh uint64
220 Unit uint32
221 _ [0]uint8
222 _ [4]byte
223}
224
225type Ustat_t struct {
226 Tfree int32
227 Tinode uint64
228 Fname [6]uint8
229 Fpack [6]uint8
230 _ [4]byte
231}
232
233type EpollEvent struct {
234 Events uint32
235 _ int32
236 Fd int32
237 Pad int32
238}
239
240const (
241 POLLRDHUP = 0x2000
242)
243
244type Sigset_t struct {
245 Val [16]uint64
246}
247
248const _C__NSIG = 0x41
249
250type Termios struct {
251 Iflag uint32
252 Oflag uint32
253 Cflag uint32
254 Lflag uint32
255 Line uint8
256 Cc [19]uint8
257 Ispeed uint32
258 Ospeed uint32
259}
260
261type Taskstats struct {
262 Version uint16
263 Ac_exitcode uint32
264 Ac_flag uint8
265 Ac_nice uint8
266 Cpu_count uint64
267 Cpu_delay_total uint64
268 Blkio_count uint64
269 Blkio_delay_total uint64
270 Swapin_count uint64
271 Swapin_delay_total uint64
272 Cpu_run_real_total uint64
273 Cpu_run_virtual_total uint64
274 Ac_comm [32]uint8
275 Ac_sched uint8
276 Ac_pad [3]uint8
277 _ [4]byte
278 Ac_uid uint32
279 Ac_gid uint32
280 Ac_pid uint32
281 Ac_ppid uint32
282 Ac_btime uint32
283 Ac_etime uint64
284 Ac_utime uint64
285 Ac_stime uint64
286 Ac_minflt uint64
287 Ac_majflt uint64
288 Coremem uint64
289 Virtmem uint64
290 Hiwater_rss uint64
291 Hiwater_vm uint64
292 Read_char uint64
293 Write_char uint64
294 Read_syscalls uint64
295 Write_syscalls uint64
296 Read_bytes uint64
297 Write_bytes uint64
298 Cancelled_write_bytes uint64
299 Nvcsw uint64
300 Nivcsw uint64
301 Ac_utimescaled uint64
302 Ac_stimescaled uint64
303 Cpu_scaled_run_real_total uint64
304 Freepages_count uint64
305 Freepages_delay_total uint64
306 Thrashing_count uint64
307 Thrashing_delay_total uint64
308}
309
310type cpuMask uint64
311
312const (
313 _NCPUBITS = 0x40
314)
315
316const (
317 CBitFieldMaskBit0 = 0x1
318 CBitFieldMaskBit1 = 0x2
319 CBitFieldMaskBit2 = 0x4
320 CBitFieldMaskBit3 = 0x8
321 CBitFieldMaskBit4 = 0x10
322 CBitFieldMaskBit5 = 0x20
323 CBitFieldMaskBit6 = 0x40
324 CBitFieldMaskBit7 = 0x80
325 CBitFieldMaskBit8 = 0x100
326 CBitFieldMaskBit9 = 0x200
327 CBitFieldMaskBit10 = 0x400
328 CBitFieldMaskBit11 = 0x800
329 CBitFieldMaskBit12 = 0x1000
330 CBitFieldMaskBit13 = 0x2000
331 CBitFieldMaskBit14 = 0x4000
332 CBitFieldMaskBit15 = 0x8000
333 CBitFieldMaskBit16 = 0x10000
334 CBitFieldMaskBit17 = 0x20000
335 CBitFieldMaskBit18 = 0x40000
336 CBitFieldMaskBit19 = 0x80000
337 CBitFieldMaskBit20 = 0x100000
338 CBitFieldMaskBit21 = 0x200000
339 CBitFieldMaskBit22 = 0x400000
340 CBitFieldMaskBit23 = 0x800000
341 CBitFieldMaskBit24 = 0x1000000
342 CBitFieldMaskBit25 = 0x2000000
343 CBitFieldMaskBit26 = 0x4000000
344 CBitFieldMaskBit27 = 0x8000000
345 CBitFieldMaskBit28 = 0x10000000
346 CBitFieldMaskBit29 = 0x20000000
347 CBitFieldMaskBit30 = 0x40000000
348 CBitFieldMaskBit31 = 0x80000000
349 CBitFieldMaskBit32 = 0x100000000
350 CBitFieldMaskBit33 = 0x200000000
351 CBitFieldMaskBit34 = 0x400000000
352 CBitFieldMaskBit35 = 0x800000000
353 CBitFieldMaskBit36 = 0x1000000000
354 CBitFieldMaskBit37 = 0x2000000000
355 CBitFieldMaskBit38 = 0x4000000000
356 CBitFieldMaskBit39 = 0x8000000000
357 CBitFieldMaskBit40 = 0x10000000000
358 CBitFieldMaskBit41 = 0x20000000000
359 CBitFieldMaskBit42 = 0x40000000000
360 CBitFieldMaskBit43 = 0x80000000000
361 CBitFieldMaskBit44 = 0x100000000000
362 CBitFieldMaskBit45 = 0x200000000000
363 CBitFieldMaskBit46 = 0x400000000000
364 CBitFieldMaskBit47 = 0x800000000000
365 CBitFieldMaskBit48 = 0x1000000000000
366 CBitFieldMaskBit49 = 0x2000000000000
367 CBitFieldMaskBit50 = 0x4000000000000
368 CBitFieldMaskBit51 = 0x8000000000000
369 CBitFieldMaskBit52 = 0x10000000000000
370 CBitFieldMaskBit53 = 0x20000000000000
371 CBitFieldMaskBit54 = 0x40000000000000
372 CBitFieldMaskBit55 = 0x80000000000000
373 CBitFieldMaskBit56 = 0x100000000000000
374 CBitFieldMaskBit57 = 0x200000000000000
375 CBitFieldMaskBit58 = 0x400000000000000
376 CBitFieldMaskBit59 = 0x800000000000000
377 CBitFieldMaskBit60 = 0x1000000000000000
378 CBitFieldMaskBit61 = 0x2000000000000000
379 CBitFieldMaskBit62 = 0x4000000000000000
380 CBitFieldMaskBit63 = 0x8000000000000000
381)
382
383type SockaddrStorage struct {
384 Family uint16
385 _ [118]uint8
386 _ uint64
387}
388
389type HDGeometry struct {
390 Heads uint8
391 Sectors uint8
392 Cylinders uint16
393 Start uint64
394}
395
396type Statfs_t struct {
397 Type int64
398 Bsize int64
399 Blocks uint64
400 Bfree uint64
401 Bavail uint64
402 Files uint64
403 Ffree uint64
404 Fsid Fsid
405 Namelen int64
406 Frsize int64
407 Flags int64
408 Spare [4]int64
409}
410
411type TpacketHdr struct {
412 Status uint64
413 Len uint32
414 Snaplen uint32
415 Mac uint16
416 Net uint16
417 Sec uint32
418 Usec uint32
419 _ [4]byte
420}
421
422const (
423 SizeofTpacketHdr = 0x20
424)
425
426type RTCPLLInfo struct {
427 Ctrl int32
428 Value int32
429 Max int32
430 Min int32
431 Posmult int32
432 Negmult int32
433 Clock int64
434}
435
436type BlkpgPartition struct {
437 Start int64
438 Length int64
439 Pno int32
440 Devname [64]uint8
441 Volname [64]uint8
442 _ [4]byte
443}
444
445const (
446 BLKPG = 0x1269
447)
448
449type XDPUmemReg struct {
450 Addr uint64
451 Len uint64
452 Size uint32
453 Headroom uint32
454 Flags uint32
455 _ [4]byte
456}
457
458type CryptoUserAlg struct {
459 Name [64]uint8
460 Driver_name [64]uint8
461 Module_name [64]uint8
462 Type uint32
463 Mask uint32
464 Refcnt uint32
465 Flags uint32
466}
467
468type CryptoStatAEAD struct {
469 Type [64]uint8
470 Encrypt_cnt uint64
471 Encrypt_tlen uint64
472 Decrypt_cnt uint64
473 Decrypt_tlen uint64
474 Err_cnt uint64
475}
476
477type CryptoStatAKCipher struct {
478 Type [64]uint8
479 Encrypt_cnt uint64
480 Encrypt_tlen uint64
481 Decrypt_cnt uint64
482 Decrypt_tlen uint64
483 Verify_cnt uint64
484 Sign_cnt uint64
485 Err_cnt uint64
486}
487
488type CryptoStatCipher struct {
489 Type [64]uint8
490 Encrypt_cnt uint64
491 Encrypt_tlen uint64
492 Decrypt_cnt uint64
493 Decrypt_tlen uint64
494 Err_cnt uint64
495}
496
497type CryptoStatCompress struct {
498 Type [64]uint8
499 Compress_cnt uint64
500 Compress_tlen uint64
501 Decompress_cnt uint64
502 Decompress_tlen uint64
503 Err_cnt uint64
504}
505
506type CryptoStatHash struct {
507 Type [64]uint8
508 Hash_cnt uint64
509 Hash_tlen uint64
510 Err_cnt uint64
511}
512
513type CryptoStatKPP struct {
514 Type [64]uint8
515 Setsecret_cnt uint64
516 Generate_public_key_cnt uint64
517 Compute_shared_secret_cnt uint64
518 Err_cnt uint64
519}
520
521type CryptoStatRNG struct {
522 Type [64]uint8
523 Generate_cnt uint64
524 Generate_tlen uint64
525 Seed_cnt uint64
526 Err_cnt uint64
527}
528
529type CryptoStatLarval struct {
530 Type [64]uint8
531}
532
533type CryptoReportLarval struct {
534 Type [64]uint8
535}
536
537type CryptoReportHash struct {
538 Type [64]uint8
539 Blocksize uint32
540 Digestsize uint32
541}
542
543type CryptoReportCipher struct {
544 Type [64]uint8
545 Blocksize uint32
546 Min_keysize uint32
547 Max_keysize uint32
548}
549
550type CryptoReportBlkCipher struct {
551 Type [64]uint8
552 Geniv [64]uint8
553 Blocksize uint32
554 Min_keysize uint32
555 Max_keysize uint32
556 Ivsize uint32
557}
558
559type CryptoReportAEAD struct {
560 Type [64]uint8
561 Geniv [64]uint8
562 Blocksize uint32
563 Maxauthsize uint32
564 Ivsize uint32
565}
566
567type CryptoReportComp struct {
568 Type [64]uint8
569}
570
571type CryptoReportRNG struct {
572 Type [64]uint8
573 Seedsize uint32
574}
575
576type CryptoReportAKCipher struct {
577 Type [64]uint8
578}
579
580type CryptoReportKPP struct {
581 Type [64]uint8
582}
583
584type CryptoReportAcomp struct {
585 Type [64]uint8
586}
587
588type LoopInfo struct {
589 Number int32
590 Device uint32
591 Inode uint64
592 Rdevice uint32
593 Offset int32
594 Encrypt_type int32
595 Encrypt_key_size int32
596 Flags int32
597 Name [64]uint8
598 Encrypt_key [32]uint8
599 Init [2]uint64
600 Reserved [4]uint8
601 _ [4]byte
602}
603
604type TIPCSubscr struct {
605 Seq TIPCServiceRange
606 Timeout uint32
607 Filter uint32
608 Handle [8]uint8
609}
610
611type TIPCSIOCLNReq struct {
612 Peer uint32
613 Id uint32
614 Linkname [68]uint8
615}
616
617type TIPCSIOCNodeIDReq struct {
618 Peer uint32
619 Id [16]uint8
620}