|
1 // cgo -godefs -objdir=/tmp/loong64/cgo -- -Wall -Werror -static -I/tmp/loong64/include linux/types.go | go run mkpost.go |
|
2 // Code generated by the command above; see README.md. DO NOT EDIT. |
|
3 |
|
4 //go:build loong64 && linux |
|
5 // +build loong64,linux |
|
6 |
|
7 package unix |
|
8 |
|
9 const ( |
|
10 SizeofPtr = 0x8 |
|
11 SizeofLong = 0x8 |
|
12 ) |
|
13 |
|
14 type ( |
|
15 _C_long int64 |
|
16 ) |
|
17 |
|
18 type Timespec struct { |
|
19 Sec int64 |
|
20 Nsec int64 |
|
21 } |
|
22 |
|
23 type Timeval struct { |
|
24 Sec int64 |
|
25 Usec int64 |
|
26 } |
|
27 |
|
28 type Timex struct { |
|
29 Modes uint32 |
|
30 Offset int64 |
|
31 Freq int64 |
|
32 Maxerror int64 |
|
33 Esterror int64 |
|
34 Status int32 |
|
35 Constant int64 |
|
36 Precision int64 |
|
37 Tolerance int64 |
|
38 Time Timeval |
|
39 Tick int64 |
|
40 Ppsfreq int64 |
|
41 Jitter int64 |
|
42 Shift int32 |
|
43 Stabil int64 |
|
44 Jitcnt int64 |
|
45 Calcnt int64 |
|
46 Errcnt int64 |
|
47 Stbcnt int64 |
|
48 Tai int32 |
|
49 _ [44]byte |
|
50 } |
|
51 |
|
52 type Time_t int64 |
|
53 |
|
54 type Tms struct { |
|
55 Utime int64 |
|
56 Stime int64 |
|
57 Cutime int64 |
|
58 Cstime int64 |
|
59 } |
|
60 |
|
61 type Utimbuf struct { |
|
62 Actime int64 |
|
63 Modtime int64 |
|
64 } |
|
65 |
|
66 type Rusage struct { |
|
67 Utime Timeval |
|
68 Stime Timeval |
|
69 Maxrss int64 |
|
70 Ixrss int64 |
|
71 Idrss int64 |
|
72 Isrss int64 |
|
73 Minflt int64 |
|
74 Majflt int64 |
|
75 Nswap int64 |
|
76 Inblock int64 |
|
77 Oublock int64 |
|
78 Msgsnd int64 |
|
79 Msgrcv int64 |
|
80 Nsignals int64 |
|
81 Nvcsw int64 |
|
82 Nivcsw int64 |
|
83 } |
|
84 |
|
85 type Stat_t struct { |
|
86 Dev uint64 |
|
87 Ino uint64 |
|
88 Mode uint32 |
|
89 Nlink uint32 |
|
90 Uid uint32 |
|
91 Gid uint32 |
|
92 Rdev uint64 |
|
93 _ uint64 |
|
94 Size int64 |
|
95 Blksize int32 |
|
96 _ int32 |
|
97 Blocks int64 |
|
98 Atim Timespec |
|
99 Mtim Timespec |
|
100 Ctim Timespec |
|
101 _ [2]int32 |
|
102 } |
|
103 |
|
104 type Dirent struct { |
|
105 Ino uint64 |
|
106 Off int64 |
|
107 Reclen uint16 |
|
108 Type uint8 |
|
109 Name [256]int8 |
|
110 _ [5]byte |
|
111 } |
|
112 |
|
113 type Flock_t struct { |
|
114 Type int16 |
|
115 Whence int16 |
|
116 Start int64 |
|
117 Len int64 |
|
118 Pid int32 |
|
119 _ [4]byte |
|
120 } |
|
121 |
|
122 type DmNameList struct { |
|
123 Dev uint64 |
|
124 Next uint32 |
|
125 Name [0]byte |
|
126 _ [4]byte |
|
127 } |
|
128 |
|
129 const ( |
|
130 FADV_DONTNEED = 0x4 |
|
131 FADV_NOREUSE = 0x5 |
|
132 ) |
|
133 |
|
134 type RawSockaddrNFCLLCP struct { |
|
135 Sa_family uint16 |
|
136 Dev_idx uint32 |
|
137 Target_idx uint32 |
|
138 Nfc_protocol uint32 |
|
139 Dsap uint8 |
|
140 Ssap uint8 |
|
141 Service_name [63]uint8 |
|
142 Service_name_len uint64 |
|
143 } |
|
144 |
|
145 type RawSockaddr struct { |
|
146 Family uint16 |
|
147 Data [14]int8 |
|
148 } |
|
149 |
|
150 type RawSockaddrAny struct { |
|
151 Addr RawSockaddr |
|
152 Pad [96]int8 |
|
153 } |
|
154 |
|
155 type Iovec struct { |
|
156 Base *byte |
|
157 Len uint64 |
|
158 } |
|
159 |
|
160 type Msghdr struct { |
|
161 Name *byte |
|
162 Namelen uint32 |
|
163 Iov *Iovec |
|
164 Iovlen uint64 |
|
165 Control *byte |
|
166 Controllen uint64 |
|
167 Flags int32 |
|
168 _ [4]byte |
|
169 } |
|
170 |
|
171 type Cmsghdr struct { |
|
172 Len uint64 |
|
173 Level int32 |
|
174 Type int32 |
|
175 } |
|
176 |
|
177 type ifreq struct { |
|
178 Ifrn [16]byte |
|
179 Ifru [24]byte |
|
180 } |
|
181 |
|
182 const ( |
|
183 SizeofSockaddrNFCLLCP = 0x60 |
|
184 SizeofIovec = 0x10 |
|
185 SizeofMsghdr = 0x38 |
|
186 SizeofCmsghdr = 0x10 |
|
187 ) |
|
188 |
|
189 const ( |
|
190 SizeofSockFprog = 0x10 |
|
191 ) |
|
192 |
|
193 type PtraceRegs struct { |
|
194 Regs [32]uint64 |
|
195 Orig_a0 uint64 |
|
196 Era uint64 |
|
197 Badv uint64 |
|
198 Reserved [10]uint64 |
|
199 } |
|
200 |
|
201 type FdSet struct { |
|
202 Bits [16]int64 |
|
203 } |
|
204 |
|
205 type Sysinfo_t struct { |
|
206 Uptime int64 |
|
207 Loads [3]uint64 |
|
208 Totalram uint64 |
|
209 Freeram uint64 |
|
210 Sharedram uint64 |
|
211 Bufferram uint64 |
|
212 Totalswap uint64 |
|
213 Freeswap uint64 |
|
214 Procs uint16 |
|
215 Pad uint16 |
|
216 Totalhigh uint64 |
|
217 Freehigh uint64 |
|
218 Unit uint32 |
|
219 _ [0]int8 |
|
220 _ [4]byte |
|
221 } |
|
222 |
|
223 type Ustat_t struct { |
|
224 Tfree int32 |
|
225 Tinode uint64 |
|
226 Fname [6]int8 |
|
227 Fpack [6]int8 |
|
228 _ [4]byte |
|
229 } |
|
230 |
|
231 type EpollEvent struct { |
|
232 Events uint32 |
|
233 _ int32 |
|
234 Fd int32 |
|
235 Pad int32 |
|
236 } |
|
237 |
|
238 const ( |
|
239 OPEN_TREE_CLOEXEC = 0x80000 |
|
240 ) |
|
241 |
|
242 const ( |
|
243 POLLRDHUP = 0x2000 |
|
244 ) |
|
245 |
|
246 type Sigset_t struct { |
|
247 Val [16]uint64 |
|
248 } |
|
249 |
|
250 const _C__NSIG = 0x41 |
|
251 |
|
252 type Siginfo struct { |
|
253 Signo int32 |
|
254 Errno int32 |
|
255 Code int32 |
|
256 _ int32 |
|
257 _ [112]byte |
|
258 } |
|
259 |
|
260 type Termios struct { |
|
261 Iflag uint32 |
|
262 Oflag uint32 |
|
263 Cflag uint32 |
|
264 Lflag uint32 |
|
265 Line uint8 |
|
266 Cc [19]uint8 |
|
267 Ispeed uint32 |
|
268 Ospeed uint32 |
|
269 } |
|
270 |
|
271 type Taskstats struct { |
|
272 Version uint16 |
|
273 Ac_exitcode uint32 |
|
274 Ac_flag uint8 |
|
275 Ac_nice uint8 |
|
276 Cpu_count uint64 |
|
277 Cpu_delay_total uint64 |
|
278 Blkio_count uint64 |
|
279 Blkio_delay_total uint64 |
|
280 Swapin_count uint64 |
|
281 Swapin_delay_total uint64 |
|
282 Cpu_run_real_total uint64 |
|
283 Cpu_run_virtual_total uint64 |
|
284 Ac_comm [32]int8 |
|
285 Ac_sched uint8 |
|
286 Ac_pad [3]uint8 |
|
287 _ [4]byte |
|
288 Ac_uid uint32 |
|
289 Ac_gid uint32 |
|
290 Ac_pid uint32 |
|
291 Ac_ppid uint32 |
|
292 Ac_btime uint32 |
|
293 Ac_etime uint64 |
|
294 Ac_utime uint64 |
|
295 Ac_stime uint64 |
|
296 Ac_minflt uint64 |
|
297 Ac_majflt uint64 |
|
298 Coremem uint64 |
|
299 Virtmem uint64 |
|
300 Hiwater_rss uint64 |
|
301 Hiwater_vm uint64 |
|
302 Read_char uint64 |
|
303 Write_char uint64 |
|
304 Read_syscalls uint64 |
|
305 Write_syscalls uint64 |
|
306 Read_bytes uint64 |
|
307 Write_bytes uint64 |
|
308 Cancelled_write_bytes uint64 |
|
309 Nvcsw uint64 |
|
310 Nivcsw uint64 |
|
311 Ac_utimescaled uint64 |
|
312 Ac_stimescaled uint64 |
|
313 Cpu_scaled_run_real_total uint64 |
|
314 Freepages_count uint64 |
|
315 Freepages_delay_total uint64 |
|
316 Thrashing_count uint64 |
|
317 Thrashing_delay_total uint64 |
|
318 Ac_btime64 uint64 |
|
319 Compact_count uint64 |
|
320 Compact_delay_total uint64 |
|
321 Ac_tgid uint32 |
|
322 Ac_tgetime uint64 |
|
323 Ac_exe_dev uint64 |
|
324 Ac_exe_inode uint64 |
|
325 Wpcopy_count uint64 |
|
326 Wpcopy_delay_total uint64 |
|
327 } |
|
328 |
|
329 type cpuMask uint64 |
|
330 |
|
331 const ( |
|
332 _NCPUBITS = 0x40 |
|
333 ) |
|
334 |
|
335 const ( |
|
336 CBitFieldMaskBit0 = 0x1 |
|
337 CBitFieldMaskBit1 = 0x2 |
|
338 CBitFieldMaskBit2 = 0x4 |
|
339 CBitFieldMaskBit3 = 0x8 |
|
340 CBitFieldMaskBit4 = 0x10 |
|
341 CBitFieldMaskBit5 = 0x20 |
|
342 CBitFieldMaskBit6 = 0x40 |
|
343 CBitFieldMaskBit7 = 0x80 |
|
344 CBitFieldMaskBit8 = 0x100 |
|
345 CBitFieldMaskBit9 = 0x200 |
|
346 CBitFieldMaskBit10 = 0x400 |
|
347 CBitFieldMaskBit11 = 0x800 |
|
348 CBitFieldMaskBit12 = 0x1000 |
|
349 CBitFieldMaskBit13 = 0x2000 |
|
350 CBitFieldMaskBit14 = 0x4000 |
|
351 CBitFieldMaskBit15 = 0x8000 |
|
352 CBitFieldMaskBit16 = 0x10000 |
|
353 CBitFieldMaskBit17 = 0x20000 |
|
354 CBitFieldMaskBit18 = 0x40000 |
|
355 CBitFieldMaskBit19 = 0x80000 |
|
356 CBitFieldMaskBit20 = 0x100000 |
|
357 CBitFieldMaskBit21 = 0x200000 |
|
358 CBitFieldMaskBit22 = 0x400000 |
|
359 CBitFieldMaskBit23 = 0x800000 |
|
360 CBitFieldMaskBit24 = 0x1000000 |
|
361 CBitFieldMaskBit25 = 0x2000000 |
|
362 CBitFieldMaskBit26 = 0x4000000 |
|
363 CBitFieldMaskBit27 = 0x8000000 |
|
364 CBitFieldMaskBit28 = 0x10000000 |
|
365 CBitFieldMaskBit29 = 0x20000000 |
|
366 CBitFieldMaskBit30 = 0x40000000 |
|
367 CBitFieldMaskBit31 = 0x80000000 |
|
368 CBitFieldMaskBit32 = 0x100000000 |
|
369 CBitFieldMaskBit33 = 0x200000000 |
|
370 CBitFieldMaskBit34 = 0x400000000 |
|
371 CBitFieldMaskBit35 = 0x800000000 |
|
372 CBitFieldMaskBit36 = 0x1000000000 |
|
373 CBitFieldMaskBit37 = 0x2000000000 |
|
374 CBitFieldMaskBit38 = 0x4000000000 |
|
375 CBitFieldMaskBit39 = 0x8000000000 |
|
376 CBitFieldMaskBit40 = 0x10000000000 |
|
377 CBitFieldMaskBit41 = 0x20000000000 |
|
378 CBitFieldMaskBit42 = 0x40000000000 |
|
379 CBitFieldMaskBit43 = 0x80000000000 |
|
380 CBitFieldMaskBit44 = 0x100000000000 |
|
381 CBitFieldMaskBit45 = 0x200000000000 |
|
382 CBitFieldMaskBit46 = 0x400000000000 |
|
383 CBitFieldMaskBit47 = 0x800000000000 |
|
384 CBitFieldMaskBit48 = 0x1000000000000 |
|
385 CBitFieldMaskBit49 = 0x2000000000000 |
|
386 CBitFieldMaskBit50 = 0x4000000000000 |
|
387 CBitFieldMaskBit51 = 0x8000000000000 |
|
388 CBitFieldMaskBit52 = 0x10000000000000 |
|
389 CBitFieldMaskBit53 = 0x20000000000000 |
|
390 CBitFieldMaskBit54 = 0x40000000000000 |
|
391 CBitFieldMaskBit55 = 0x80000000000000 |
|
392 CBitFieldMaskBit56 = 0x100000000000000 |
|
393 CBitFieldMaskBit57 = 0x200000000000000 |
|
394 CBitFieldMaskBit58 = 0x400000000000000 |
|
395 CBitFieldMaskBit59 = 0x800000000000000 |
|
396 CBitFieldMaskBit60 = 0x1000000000000000 |
|
397 CBitFieldMaskBit61 = 0x2000000000000000 |
|
398 CBitFieldMaskBit62 = 0x4000000000000000 |
|
399 CBitFieldMaskBit63 = 0x8000000000000000 |
|
400 ) |
|
401 |
|
402 type SockaddrStorage struct { |
|
403 Family uint16 |
|
404 _ [118]int8 |
|
405 _ uint64 |
|
406 } |
|
407 |
|
408 type HDGeometry struct { |
|
409 Heads uint8 |
|
410 Sectors uint8 |
|
411 Cylinders uint16 |
|
412 Start uint64 |
|
413 } |
|
414 |
|
415 type Statfs_t struct { |
|
416 Type int64 |
|
417 Bsize int64 |
|
418 Blocks uint64 |
|
419 Bfree uint64 |
|
420 Bavail uint64 |
|
421 Files uint64 |
|
422 Ffree uint64 |
|
423 Fsid Fsid |
|
424 Namelen int64 |
|
425 Frsize int64 |
|
426 Flags int64 |
|
427 Spare [4]int64 |
|
428 } |
|
429 |
|
430 type TpacketHdr struct { |
|
431 Status uint64 |
|
432 Len uint32 |
|
433 Snaplen uint32 |
|
434 Mac uint16 |
|
435 Net uint16 |
|
436 Sec uint32 |
|
437 Usec uint32 |
|
438 _ [4]byte |
|
439 } |
|
440 |
|
441 const ( |
|
442 SizeofTpacketHdr = 0x20 |
|
443 ) |
|
444 |
|
445 type RTCPLLInfo struct { |
|
446 Ctrl int32 |
|
447 Value int32 |
|
448 Max int32 |
|
449 Min int32 |
|
450 Posmult int32 |
|
451 Negmult int32 |
|
452 Clock int64 |
|
453 } |
|
454 |
|
455 type BlkpgPartition struct { |
|
456 Start int64 |
|
457 Length int64 |
|
458 Pno int32 |
|
459 Devname [64]uint8 |
|
460 Volname [64]uint8 |
|
461 _ [4]byte |
|
462 } |
|
463 |
|
464 const ( |
|
465 BLKPG = 0x1269 |
|
466 ) |
|
467 |
|
468 type XDPUmemReg struct { |
|
469 Addr uint64 |
|
470 Len uint64 |
|
471 Size uint32 |
|
472 Headroom uint32 |
|
473 Flags uint32 |
|
474 _ [4]byte |
|
475 } |
|
476 |
|
477 type CryptoUserAlg struct { |
|
478 Name [64]int8 |
|
479 Driver_name [64]int8 |
|
480 Module_name [64]int8 |
|
481 Type uint32 |
|
482 Mask uint32 |
|
483 Refcnt uint32 |
|
484 Flags uint32 |
|
485 } |
|
486 |
|
487 type CryptoStatAEAD struct { |
|
488 Type [64]int8 |
|
489 Encrypt_cnt uint64 |
|
490 Encrypt_tlen uint64 |
|
491 Decrypt_cnt uint64 |
|
492 Decrypt_tlen uint64 |
|
493 Err_cnt uint64 |
|
494 } |
|
495 |
|
496 type CryptoStatAKCipher struct { |
|
497 Type [64]int8 |
|
498 Encrypt_cnt uint64 |
|
499 Encrypt_tlen uint64 |
|
500 Decrypt_cnt uint64 |
|
501 Decrypt_tlen uint64 |
|
502 Verify_cnt uint64 |
|
503 Sign_cnt uint64 |
|
504 Err_cnt uint64 |
|
505 } |
|
506 |
|
507 type CryptoStatCipher struct { |
|
508 Type [64]int8 |
|
509 Encrypt_cnt uint64 |
|
510 Encrypt_tlen uint64 |
|
511 Decrypt_cnt uint64 |
|
512 Decrypt_tlen uint64 |
|
513 Err_cnt uint64 |
|
514 } |
|
515 |
|
516 type CryptoStatCompress struct { |
|
517 Type [64]int8 |
|
518 Compress_cnt uint64 |
|
519 Compress_tlen uint64 |
|
520 Decompress_cnt uint64 |
|
521 Decompress_tlen uint64 |
|
522 Err_cnt uint64 |
|
523 } |
|
524 |
|
525 type CryptoStatHash struct { |
|
526 Type [64]int8 |
|
527 Hash_cnt uint64 |
|
528 Hash_tlen uint64 |
|
529 Err_cnt uint64 |
|
530 } |
|
531 |
|
532 type CryptoStatKPP struct { |
|
533 Type [64]int8 |
|
534 Setsecret_cnt uint64 |
|
535 Generate_public_key_cnt uint64 |
|
536 Compute_shared_secret_cnt uint64 |
|
537 Err_cnt uint64 |
|
538 } |
|
539 |
|
540 type CryptoStatRNG struct { |
|
541 Type [64]int8 |
|
542 Generate_cnt uint64 |
|
543 Generate_tlen uint64 |
|
544 Seed_cnt uint64 |
|
545 Err_cnt uint64 |
|
546 } |
|
547 |
|
548 type CryptoStatLarval struct { |
|
549 Type [64]int8 |
|
550 } |
|
551 |
|
552 type CryptoReportLarval struct { |
|
553 Type [64]int8 |
|
554 } |
|
555 |
|
556 type CryptoReportHash struct { |
|
557 Type [64]int8 |
|
558 Blocksize uint32 |
|
559 Digestsize uint32 |
|
560 } |
|
561 |
|
562 type CryptoReportCipher struct { |
|
563 Type [64]int8 |
|
564 Blocksize uint32 |
|
565 Min_keysize uint32 |
|
566 Max_keysize uint32 |
|
567 } |
|
568 |
|
569 type CryptoReportBlkCipher struct { |
|
570 Type [64]int8 |
|
571 Geniv [64]int8 |
|
572 Blocksize uint32 |
|
573 Min_keysize uint32 |
|
574 Max_keysize uint32 |
|
575 Ivsize uint32 |
|
576 } |
|
577 |
|
578 type CryptoReportAEAD struct { |
|
579 Type [64]int8 |
|
580 Geniv [64]int8 |
|
581 Blocksize uint32 |
|
582 Maxauthsize uint32 |
|
583 Ivsize uint32 |
|
584 } |
|
585 |
|
586 type CryptoReportComp struct { |
|
587 Type [64]int8 |
|
588 } |
|
589 |
|
590 type CryptoReportRNG struct { |
|
591 Type [64]int8 |
|
592 Seedsize uint32 |
|
593 } |
|
594 |
|
595 type CryptoReportAKCipher struct { |
|
596 Type [64]int8 |
|
597 } |
|
598 |
|
599 type CryptoReportKPP struct { |
|
600 Type [64]int8 |
|
601 } |
|
602 |
|
603 type CryptoReportAcomp struct { |
|
604 Type [64]int8 |
|
605 } |
|
606 |
|
607 type LoopInfo struct { |
|
608 Number int32 |
|
609 Device uint32 |
|
610 Inode uint64 |
|
611 Rdevice uint32 |
|
612 Offset int32 |
|
613 Encrypt_type int32 |
|
614 Encrypt_key_size int32 |
|
615 Flags int32 |
|
616 Name [64]int8 |
|
617 Encrypt_key [32]uint8 |
|
618 Init [2]uint64 |
|
619 Reserved [4]int8 |
|
620 _ [4]byte |
|
621 } |
|
622 |
|
623 type TIPCSubscr struct { |
|
624 Seq TIPCServiceRange |
|
625 Timeout uint32 |
|
626 Filter uint32 |
|
627 Handle [8]int8 |
|
628 } |
|
629 |
|
630 type TIPCSIOCLNReq struct { |
|
631 Peer uint32 |
|
632 Id uint32 |
|
633 Linkname [68]int8 |
|
634 } |
|
635 |
|
636 type TIPCSIOCNodeIDReq struct { |
|
637 Peer uint32 |
|
638 Id [16]int8 |
|
639 } |
|
640 |
|
641 type PPSKInfo struct { |
|
642 Assert_sequence uint32 |
|
643 Clear_sequence uint32 |
|
644 Assert_tu PPSKTime |
|
645 Clear_tu PPSKTime |
|
646 Current_mode int32 |
|
647 _ [4]byte |
|
648 } |
|
649 |
|
650 const ( |
|
651 PPS_GETPARAMS = 0x800870a1 |
|
652 PPS_SETPARAMS = 0x400870a2 |
|
653 PPS_GETCAP = 0x800870a3 |
|
654 PPS_FETCH = 0xc00870a4 |
|
655 ) |
|
656 |
|
657 const ( |
|
658 PIDFD_NONBLOCK = 0x800 |
|
659 ) |
|
660 |
|
661 type SysvIpcPerm struct { |
|
662 Key int32 |
|
663 Uid uint32 |
|
664 Gid uint32 |
|
665 Cuid uint32 |
|
666 Cgid uint32 |
|
667 Mode uint32 |
|
668 _ [0]uint8 |
|
669 Seq uint16 |
|
670 _ uint16 |
|
671 _ uint64 |
|
672 _ uint64 |
|
673 } |
|
674 type SysvShmDesc struct { |
|
675 Perm SysvIpcPerm |
|
676 Segsz uint64 |
|
677 Atime int64 |
|
678 Dtime int64 |
|
679 Ctime int64 |
|
680 Cpid int32 |
|
681 Lpid int32 |
|
682 Nattch uint64 |
|
683 _ uint64 |
|
684 _ uint64 |
|
685 } |