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