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