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