blob: b8c8f2894335a888f1788bf05a9db046ef25101b [file] [log] [blame]
kesavandc71914f2022-03-25 11:19:03 +05301// cgo -godefs -- -Wall -Werror -static -I/tmp/include -m64 /build/unix/linux/types.go | go run mkpost.go
kesavand2cde6582020-06-22 04:56:23 -04002// Code generated by the command above; see README.md. DO NOT EDIT.
3
Andrea Campanella764f1ed2022-03-24 11:46:38 +01004//go:build amd64 && linux
kesavand2cde6582020-06-22 04:56:23 -04005// +build amd64,linux
6
7package unix
8
9const (
Andrea Campanella764f1ed2022-03-24 11:46:38 +010010 SizeofPtr = 0x8
11 SizeofLong = 0x8
kesavand2cde6582020-06-22 04:56:23 -040012)
13
14type (
Andrea Campanella764f1ed2022-03-24 11:46:38 +010015 _C_long int64
kesavand2cde6582020-06-22 04:56:23 -040016)
17
18type Timespec struct {
19 Sec int64
20 Nsec int64
21}
22
23type Timeval struct {
24 Sec int64
25 Usec int64
26}
27
28type 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
52type Time_t int64
53
54type Tms struct {
55 Utime int64
56 Stime int64
57 Cutime int64
58 Cstime int64
59}
60
61type Utimbuf struct {
62 Actime int64
63 Modtime int64
64}
65
66type 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
kesavand2cde6582020-06-22 04:56:23 -040085type Stat_t struct {
86 Dev uint64
87 Ino uint64
88 Nlink uint64
89 Mode uint32
90 Uid uint32
91 Gid uint32
92 _ int32
93 Rdev uint64
94 Size int64
95 Blksize int64
96 Blocks int64
97 Atim Timespec
98 Mtim Timespec
99 Ctim Timespec
100 _ [3]int64
101}
102
kesavand2cde6582020-06-22 04:56:23 -0400103type Dirent struct {
104 Ino uint64
105 Off int64
106 Reclen uint16
107 Type uint8
108 Name [256]int8
109 _ [5]byte
110}
111
kesavand2cde6582020-06-22 04:56:23 -0400112type Flock_t struct {
113 Type int16
114 Whence int16
115 Start int64
116 Len int64
117 Pid int32
118 _ [4]byte
119}
120
Andrea Campanella764f1ed2022-03-24 11:46:38 +0100121type DmNameList struct {
122 Dev uint64
123 Next uint32
124 Name [0]byte
125 _ [4]byte
kesavand2cde6582020-06-22 04:56:23 -0400126}
127
128const (
Andrea Campanella764f1ed2022-03-24 11:46:38 +0100129 FADV_DONTNEED = 0x4
130 FADV_NOREUSE = 0x5
kesavand2cde6582020-06-22 04:56:23 -0400131)
132
kesavandc71914f2022-03-25 11:19:03 +0530133type RawSockaddrNFCLLCP struct {
134 Sa_family uint16
135 Dev_idx uint32
136 Target_idx uint32
137 Nfc_protocol uint32
138 Dsap uint8
139 Ssap uint8
140 Service_name [63]uint8
141 Service_name_len uint64
142}
143
kesavand2cde6582020-06-22 04:56:23 -0400144type RawSockaddr struct {
145 Family uint16
146 Data [14]int8
147}
148
149type RawSockaddrAny struct {
150 Addr RawSockaddr
151 Pad [96]int8
152}
153
kesavand2cde6582020-06-22 04:56:23 -0400154type Iovec struct {
155 Base *byte
156 Len uint64
157}
158
kesavand2cde6582020-06-22 04:56:23 -0400159type Msghdr struct {
160 Name *byte
161 Namelen uint32
162 Iov *Iovec
163 Iovlen uint64
164 Control *byte
165 Controllen uint64
166 Flags int32
167 _ [4]byte
168}
169
170type Cmsghdr struct {
171 Len uint64
172 Level int32
173 Type int32
174}
175
kesavandc71914f2022-03-25 11:19:03 +0530176type ifreq struct {
177 Ifrn [16]byte
178 Ifru [24]byte
179}
180
kesavand2cde6582020-06-22 04:56:23 -0400181const (
kesavandc71914f2022-03-25 11:19:03 +0530182 SizeofSockaddrNFCLLCP = 0x60
183 SizeofIovec = 0x10
184 SizeofMsghdr = 0x38
185 SizeofCmsghdr = 0x10
kesavand2cde6582020-06-22 04:56:23 -0400186)
187
188const (
Andrea Campanella764f1ed2022-03-24 11:46:38 +0100189 SizeofSockFprog = 0x10
kesavand2cde6582020-06-22 04:56:23 -0400190)
191
kesavand2cde6582020-06-22 04:56:23 -0400192type PtraceRegs struct {
193 R15 uint64
194 R14 uint64
195 R13 uint64
196 R12 uint64
197 Rbp uint64
198 Rbx uint64
199 R11 uint64
200 R10 uint64
201 R9 uint64
202 R8 uint64
203 Rax uint64
204 Rcx uint64
205 Rdx uint64
206 Rsi uint64
207 Rdi uint64
208 Orig_rax uint64
209 Rip uint64
210 Cs uint64
211 Eflags uint64
212 Rsp uint64
213 Ss uint64
214 Fs_base uint64
215 Gs_base uint64
216 Ds uint64
217 Es uint64
218 Fs uint64
219 Gs uint64
220}
221
222type FdSet struct {
223 Bits [16]int64
224}
225
226type Sysinfo_t struct {
227 Uptime int64
228 Loads [3]uint64
229 Totalram uint64
230 Freeram uint64
231 Sharedram uint64
232 Bufferram uint64
233 Totalswap uint64
234 Freeswap uint64
235 Procs uint16
236 Pad uint16
237 Totalhigh uint64
238 Freehigh uint64
239 Unit uint32
240 _ [0]int8
241 _ [4]byte
242}
243
kesavand2cde6582020-06-22 04:56:23 -0400244type Ustat_t struct {
245 Tfree int32
246 Tinode uint64
247 Fname [6]int8
248 Fpack [6]int8
249 _ [4]byte
250}
251
252type EpollEvent struct {
253 Events uint32
254 Fd int32
255 Pad int32
256}
257
258const (
kesavand2cde6582020-06-22 04:56:23 -0400259 POLLRDHUP = 0x2000
kesavand2cde6582020-06-22 04:56:23 -0400260)
261
262type Sigset_t struct {
263 Val [16]uint64
264}
265
266const _C__NSIG = 0x41
267
kesavand2cde6582020-06-22 04:56:23 -0400268type Termios struct {
269 Iflag uint32
270 Oflag uint32
271 Cflag uint32
272 Lflag uint32
273 Line uint8
274 Cc [19]uint8
275 Ispeed uint32
276 Ospeed uint32
277}
278
kesavand2cde6582020-06-22 04:56:23 -0400279type Taskstats struct {
280 Version uint16
281 Ac_exitcode uint32
282 Ac_flag uint8
283 Ac_nice uint8
284 Cpu_count uint64
285 Cpu_delay_total uint64
286 Blkio_count uint64
287 Blkio_delay_total uint64
288 Swapin_count uint64
289 Swapin_delay_total uint64
290 Cpu_run_real_total uint64
291 Cpu_run_virtual_total uint64
292 Ac_comm [32]int8
293 Ac_sched uint8
294 Ac_pad [3]uint8
295 _ [4]byte
296 Ac_uid uint32
297 Ac_gid uint32
298 Ac_pid uint32
299 Ac_ppid uint32
300 Ac_btime uint32
301 Ac_etime uint64
302 Ac_utime uint64
303 Ac_stime uint64
304 Ac_minflt uint64
305 Ac_majflt uint64
306 Coremem uint64
307 Virtmem uint64
308 Hiwater_rss uint64
309 Hiwater_vm uint64
310 Read_char uint64
311 Write_char uint64
312 Read_syscalls uint64
313 Write_syscalls uint64
314 Read_bytes uint64
315 Write_bytes uint64
316 Cancelled_write_bytes uint64
317 Nvcsw uint64
318 Nivcsw uint64
319 Ac_utimescaled uint64
320 Ac_stimescaled uint64
321 Cpu_scaled_run_real_total uint64
322 Freepages_count uint64
323 Freepages_delay_total uint64
324 Thrashing_count uint64
325 Thrashing_delay_total uint64
Andrea Campanella764f1ed2022-03-24 11:46:38 +0100326 Ac_btime64 uint64
kesavand2cde6582020-06-22 04:56:23 -0400327}
328
kesavand2cde6582020-06-22 04:56:23 -0400329type cpuMask uint64
330
331const (
Andrea Campanella764f1ed2022-03-24 11:46:38 +0100332 _NCPUBITS = 0x40
kesavand2cde6582020-06-22 04:56:23 -0400333)
334
335const (
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
402type SockaddrStorage struct {
403 Family uint16
404 _ [118]int8
405 _ uint64
406}
407
kesavand2cde6582020-06-22 04:56:23 -0400408type HDGeometry struct {
409 Heads uint8
410 Sectors uint8
411 Cylinders uint16
412 Start uint64
413}
414
kesavand2cde6582020-06-22 04:56:23 -0400415type 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
kesavand2cde6582020-06-22 04:56:23 -0400430type 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
kesavand2cde6582020-06-22 04:56:23 -0400441const (
Andrea Campanella764f1ed2022-03-24 11:46:38 +0100442 SizeofTpacketHdr = 0x20
kesavand2cde6582020-06-22 04:56:23 -0400443)
444
kesavand2cde6582020-06-22 04:56:23 -0400445type 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
kesavand2cde6582020-06-22 04:56:23 -0400455type BlkpgPartition struct {
456 Start int64
457 Length int64
458 Pno int32
459 Devname [64]uint8
460 Volname [64]uint8
461 _ [4]byte
462}
463
464const (
Andrea Campanella764f1ed2022-03-24 11:46:38 +0100465 BLKPG = 0x1269
kesavand2cde6582020-06-22 04:56:23 -0400466)
467
kesavand2cde6582020-06-22 04:56:23 -0400468type XDPUmemReg struct {
469 Addr uint64
470 Len uint64
471 Size uint32
472 Headroom uint32
Andrea Campanella764f1ed2022-03-24 11:46:38 +0100473 Flags uint32
474 _ [4]byte
kesavand2cde6582020-06-22 04:56:23 -0400475}
476
kesavand2cde6582020-06-22 04:56:23 -0400477type 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
487type 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
496type 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
507type 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
516type 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
525type CryptoStatHash struct {
526 Type [64]int8
527 Hash_cnt uint64
528 Hash_tlen uint64
529 Err_cnt uint64
530}
531
532type 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
540type CryptoStatRNG struct {
541 Type [64]int8
542 Generate_cnt uint64
543 Generate_tlen uint64
544 Seed_cnt uint64
545 Err_cnt uint64
546}
547
548type CryptoStatLarval struct {
549 Type [64]int8
550}
551
552type CryptoReportLarval struct {
553 Type [64]int8
554}
555
556type CryptoReportHash struct {
557 Type [64]int8
558 Blocksize uint32
559 Digestsize uint32
560}
561
562type CryptoReportCipher struct {
563 Type [64]int8
564 Blocksize uint32
565 Min_keysize uint32
566 Max_keysize uint32
567}
568
569type 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
578type CryptoReportAEAD struct {
579 Type [64]int8
580 Geniv [64]int8
581 Blocksize uint32
582 Maxauthsize uint32
583 Ivsize uint32
584}
585
586type CryptoReportComp struct {
587 Type [64]int8
588}
589
590type CryptoReportRNG struct {
591 Type [64]int8
592 Seedsize uint32
593}
594
595type CryptoReportAKCipher struct {
596 Type [64]int8
597}
598
599type CryptoReportKPP struct {
600 Type [64]int8
601}
602
603type CryptoReportAcomp struct {
604 Type [64]int8
605}
606
kesavand2cde6582020-06-22 04:56:23 -0400607type LoopInfo struct {
608 Number int32
609 Device uint64
610 Inode uint64
611 Rdevice uint64
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}
Andrea Campanella764f1ed2022-03-24 11:46:38 +0100622
623type TIPCSubscr struct {
624 Seq TIPCServiceRange
625 Timeout uint32
626 Filter uint32
627 Handle [8]int8
kesavand2cde6582020-06-22 04:56:23 -0400628}
Andrea Campanella764f1ed2022-03-24 11:46:38 +0100629
630type TIPCSIOCLNReq struct {
631 Peer uint32
632 Id uint32
633 Linkname [68]int8
634}
635
636type TIPCSIOCNodeIDReq struct {
637 Peer uint32
638 Id [16]int8
639}
640
641type 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
650const (
651 PPS_GETPARAMS = 0x800870a1
652 PPS_SETPARAMS = 0x400870a2
653 PPS_GETCAP = 0x800870a3
654 PPS_FETCH = 0xc00870a4
655)
kesavandc71914f2022-03-25 11:19:03 +0530656
657const (
658 PIDFD_NONBLOCK = 0x800
659)
660
661type 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}
674type 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}