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