blob: 0ca856e559b6cbfd5095c06fc1901beb2c457194 [file] [log] [blame]
khenaidooac637102019-01-14 15:44:34 -05001// cgo -godefs -- -Wall -Werror -static -I/tmp/include linux/types.go | go run mkpost.go
2// Code generated by the command above; see README.md. DO NOT EDIT.
3
4// +build ppc64,linux
5
6package unix
7
8const (
Andrea Campanella3614a922021-02-25 12:40:42 +01009 SizeofPtr = 0x8
10 SizeofLong = 0x8
khenaidooac637102019-01-14 15:44:34 -050011)
12
13type (
Andrea Campanella3614a922021-02-25 12:40:42 +010014 _C_long int64
khenaidooac637102019-01-14 15:44:34 -050015)
16
17type Timespec struct {
18 Sec int64
19 Nsec int64
20}
21
22type Timeval struct {
23 Sec int64
24 Usec int64
25}
26
27type Timex struct {
28 Modes uint32
29 Offset int64
30 Freq int64
31 Maxerror int64
32 Esterror int64
33 Status int32
34 Constant int64
35 Precision int64
36 Tolerance int64
37 Time Timeval
38 Tick int64
39 Ppsfreq int64
40 Jitter int64
41 Shift int32
42 Stabil int64
43 Jitcnt int64
44 Calcnt int64
45 Errcnt int64
46 Stbcnt int64
47 Tai int32
48 _ [44]byte
49}
50
51type Time_t int64
52
53type Tms struct {
54 Utime int64
55 Stime int64
56 Cutime int64
57 Cstime int64
58}
59
60type Utimbuf struct {
61 Actime int64
62 Modtime int64
63}
64
65type Rusage struct {
66 Utime Timeval
67 Stime Timeval
68 Maxrss int64
69 Ixrss int64
70 Idrss int64
71 Isrss int64
72 Minflt int64
73 Majflt int64
74 Nswap int64
75 Inblock int64
76 Oublock int64
77 Msgsnd int64
78 Msgrcv int64
79 Nsignals int64
80 Nvcsw int64
81 Nivcsw int64
82}
83
khenaidooac637102019-01-14 15:44:34 -050084type Stat_t struct {
85 Dev uint64
86 Ino uint64
87 Nlink uint64
88 Mode uint32
89 Uid uint32
90 Gid uint32
91 _ int32
92 Rdev uint64
93 Size int64
94 Blksize int64
95 Blocks int64
96 Atim Timespec
97 Mtim Timespec
98 Ctim Timespec
99 _ uint64
100 _ uint64
101 _ uint64
102}
103
khenaidooac637102019-01-14 15:44:34 -0500104type Dirent struct {
105 Ino uint64
106 Off int64
107 Reclen uint16
108 Type uint8
109 Name [256]uint8
110 _ [5]byte
111}
112
khenaidooac637102019-01-14 15:44:34 -0500113type Flock_t struct {
114 Type int16
115 Whence int16
116 Start int64
117 Len int64
118 Pid int32
119 _ [4]byte
120}
121
Andrea Campanella3614a922021-02-25 12:40:42 +0100122type DmNameList struct {
123 Dev uint64
124 Next uint32
125 Name [0]byte
126 _ [4]byte
khenaidooac637102019-01-14 15:44:34 -0500127}
128
129const (
Andrea Campanella3614a922021-02-25 12:40:42 +0100130 FADV_DONTNEED = 0x4
131 FADV_NOREUSE = 0x5
khenaidooac637102019-01-14 15:44:34 -0500132)
133
khenaidooac637102019-01-14 15:44:34 -0500134type RawSockaddr struct {
135 Family uint16
136 Data [14]uint8
137}
138
139type RawSockaddrAny struct {
140 Addr RawSockaddr
141 Pad [96]uint8
142}
143
khenaidooac637102019-01-14 15:44:34 -0500144type Iovec struct {
145 Base *byte
146 Len uint64
147}
148
khenaidooac637102019-01-14 15:44:34 -0500149type Msghdr struct {
150 Name *byte
151 Namelen uint32
152 Iov *Iovec
153 Iovlen uint64
154 Control *byte
155 Controllen uint64
156 Flags int32
157 _ [4]byte
158}
159
160type Cmsghdr struct {
161 Len uint64
162 Level int32
163 Type int32
164}
165
khenaidooac637102019-01-14 15:44:34 -0500166const (
Andrea Campanella3614a922021-02-25 12:40:42 +0100167 SizeofIovec = 0x10
168 SizeofMsghdr = 0x38
169 SizeofCmsghdr = 0x10
khenaidooac637102019-01-14 15:44:34 -0500170)
171
172const (
Andrea Campanella3614a922021-02-25 12:40:42 +0100173 SizeofSockFprog = 0x10
khenaidooac637102019-01-14 15:44:34 -0500174)
175
khenaidooac637102019-01-14 15:44:34 -0500176type PtraceRegs struct {
177 Gpr [32]uint64
178 Nip uint64
179 Msr uint64
180 Orig_gpr3 uint64
181 Ctr uint64
182 Link uint64
183 Xer uint64
184 Ccr uint64
185 Softe uint64
186 Trap uint64
187 Dar uint64
188 Dsisr uint64
189 Result uint64
190}
191
192type FdSet struct {
193 Bits [16]int64
194}
195
196type Sysinfo_t struct {
197 Uptime int64
198 Loads [3]uint64
199 Totalram uint64
200 Freeram uint64
201 Sharedram uint64
202 Bufferram uint64
203 Totalswap uint64
204 Freeswap uint64
205 Procs uint16
206 Pad uint16
207 Totalhigh uint64
208 Freehigh uint64
209 Unit uint32
210 _ [0]uint8
211 _ [4]byte
212}
213
khenaidooac637102019-01-14 15:44:34 -0500214type Ustat_t struct {
215 Tfree int32
216 Tinode uint64
217 Fname [6]uint8
218 Fpack [6]uint8
219 _ [4]byte
220}
221
222type EpollEvent struct {
223 Events uint32
224 _ int32
225 Fd int32
226 Pad int32
227}
228
229const (
khenaidooac637102019-01-14 15:44:34 -0500230 POLLRDHUP = 0x2000
khenaidooac637102019-01-14 15:44:34 -0500231)
232
233type Sigset_t struct {
234 Val [16]uint64
235}
236
Scott Baker8461e152019-10-01 14:44:30 -0700237const _C__NSIG = 0x41
238
khenaidooac637102019-01-14 15:44:34 -0500239type Termios struct {
240 Iflag uint32
241 Oflag uint32
242 Cflag uint32
243 Lflag uint32
244 Cc [19]uint8
245 Line uint8
246 Ispeed uint32
247 Ospeed uint32
248}
249
khenaidooac637102019-01-14 15:44:34 -0500250type Taskstats struct {
251 Version uint16
252 Ac_exitcode uint32
253 Ac_flag uint8
254 Ac_nice uint8
255 Cpu_count uint64
256 Cpu_delay_total uint64
257 Blkio_count uint64
258 Blkio_delay_total uint64
259 Swapin_count uint64
260 Swapin_delay_total uint64
261 Cpu_run_real_total uint64
262 Cpu_run_virtual_total uint64
263 Ac_comm [32]uint8
264 Ac_sched uint8
265 Ac_pad [3]uint8
266 _ [4]byte
267 Ac_uid uint32
268 Ac_gid uint32
269 Ac_pid uint32
270 Ac_ppid uint32
271 Ac_btime uint32
272 Ac_etime uint64
273 Ac_utime uint64
274 Ac_stime uint64
275 Ac_minflt uint64
276 Ac_majflt uint64
277 Coremem uint64
278 Virtmem uint64
279 Hiwater_rss uint64
280 Hiwater_vm uint64
281 Read_char uint64
282 Write_char uint64
283 Read_syscalls uint64
284 Write_syscalls uint64
285 Read_bytes uint64
286 Write_bytes uint64
287 Cancelled_write_bytes uint64
288 Nvcsw uint64
289 Nivcsw uint64
290 Ac_utimescaled uint64
291 Ac_stimescaled uint64
292 Cpu_scaled_run_real_total uint64
293 Freepages_count uint64
294 Freepages_delay_total uint64
295 Thrashing_count uint64
296 Thrashing_delay_total uint64
Andrea Campanella3614a922021-02-25 12:40:42 +0100297 Ac_btime64 uint64
khenaidooac637102019-01-14 15:44:34 -0500298}
299
khenaidooac637102019-01-14 15:44:34 -0500300type cpuMask uint64
301
302const (
Andrea Campanella3614a922021-02-25 12:40:42 +0100303 _NCPUBITS = 0x40
khenaidooac637102019-01-14 15:44:34 -0500304)
305
306const (
307 CBitFieldMaskBit0 = 0x8000000000000000
308 CBitFieldMaskBit1 = 0x4000000000000000
309 CBitFieldMaskBit2 = 0x2000000000000000
310 CBitFieldMaskBit3 = 0x1000000000000000
311 CBitFieldMaskBit4 = 0x800000000000000
312 CBitFieldMaskBit5 = 0x400000000000000
313 CBitFieldMaskBit6 = 0x200000000000000
314 CBitFieldMaskBit7 = 0x100000000000000
315 CBitFieldMaskBit8 = 0x80000000000000
316 CBitFieldMaskBit9 = 0x40000000000000
317 CBitFieldMaskBit10 = 0x20000000000000
318 CBitFieldMaskBit11 = 0x10000000000000
319 CBitFieldMaskBit12 = 0x8000000000000
320 CBitFieldMaskBit13 = 0x4000000000000
321 CBitFieldMaskBit14 = 0x2000000000000
322 CBitFieldMaskBit15 = 0x1000000000000
323 CBitFieldMaskBit16 = 0x800000000000
324 CBitFieldMaskBit17 = 0x400000000000
325 CBitFieldMaskBit18 = 0x200000000000
326 CBitFieldMaskBit19 = 0x100000000000
327 CBitFieldMaskBit20 = 0x80000000000
328 CBitFieldMaskBit21 = 0x40000000000
329 CBitFieldMaskBit22 = 0x20000000000
330 CBitFieldMaskBit23 = 0x10000000000
331 CBitFieldMaskBit24 = 0x8000000000
332 CBitFieldMaskBit25 = 0x4000000000
333 CBitFieldMaskBit26 = 0x2000000000
334 CBitFieldMaskBit27 = 0x1000000000
335 CBitFieldMaskBit28 = 0x800000000
336 CBitFieldMaskBit29 = 0x400000000
337 CBitFieldMaskBit30 = 0x200000000
338 CBitFieldMaskBit31 = 0x100000000
339 CBitFieldMaskBit32 = 0x80000000
340 CBitFieldMaskBit33 = 0x40000000
341 CBitFieldMaskBit34 = 0x20000000
342 CBitFieldMaskBit35 = 0x10000000
343 CBitFieldMaskBit36 = 0x8000000
344 CBitFieldMaskBit37 = 0x4000000
345 CBitFieldMaskBit38 = 0x2000000
346 CBitFieldMaskBit39 = 0x1000000
347 CBitFieldMaskBit40 = 0x800000
348 CBitFieldMaskBit41 = 0x400000
349 CBitFieldMaskBit42 = 0x200000
350 CBitFieldMaskBit43 = 0x100000
351 CBitFieldMaskBit44 = 0x80000
352 CBitFieldMaskBit45 = 0x40000
353 CBitFieldMaskBit46 = 0x20000
354 CBitFieldMaskBit47 = 0x10000
355 CBitFieldMaskBit48 = 0x8000
356 CBitFieldMaskBit49 = 0x4000
357 CBitFieldMaskBit50 = 0x2000
358 CBitFieldMaskBit51 = 0x1000
359 CBitFieldMaskBit52 = 0x800
360 CBitFieldMaskBit53 = 0x400
361 CBitFieldMaskBit54 = 0x200
362 CBitFieldMaskBit55 = 0x100
363 CBitFieldMaskBit56 = 0x80
364 CBitFieldMaskBit57 = 0x40
365 CBitFieldMaskBit58 = 0x20
366 CBitFieldMaskBit59 = 0x10
367 CBitFieldMaskBit60 = 0x8
368 CBitFieldMaskBit61 = 0x4
369 CBitFieldMaskBit62 = 0x2
370 CBitFieldMaskBit63 = 0x1
371)
372
373type SockaddrStorage struct {
374 Family uint16
375 _ [118]uint8
376 _ uint64
377}
378
khenaidooac637102019-01-14 15:44:34 -0500379type HDGeometry struct {
380 Heads uint8
381 Sectors uint8
382 Cylinders uint16
383 Start uint64
384}
385
khenaidooac637102019-01-14 15:44:34 -0500386type Statfs_t struct {
387 Type int64
388 Bsize int64
389 Blocks uint64
390 Bfree uint64
391 Bavail uint64
392 Files uint64
393 Ffree uint64
394 Fsid Fsid
395 Namelen int64
396 Frsize int64
397 Flags int64
398 Spare [4]int64
399}
400
khenaidooac637102019-01-14 15:44:34 -0500401type TpacketHdr struct {
402 Status uint64
403 Len uint32
404 Snaplen uint32
405 Mac uint16
406 Net uint16
407 Sec uint32
408 Usec uint32
409 _ [4]byte
410}
411
khenaidooac637102019-01-14 15:44:34 -0500412const (
Andrea Campanella3614a922021-02-25 12:40:42 +0100413 SizeofTpacketHdr = 0x20
khenaidooac637102019-01-14 15:44:34 -0500414)
415
khenaidooac637102019-01-14 15:44:34 -0500416type RTCPLLInfo struct {
417 Ctrl int32
418 Value int32
419 Max int32
420 Min int32
421 Posmult int32
422 Negmult int32
423 Clock int64
424}
425
khenaidooac637102019-01-14 15:44:34 -0500426type BlkpgPartition struct {
427 Start int64
428 Length int64
429 Pno int32
430 Devname [64]uint8
431 Volname [64]uint8
432 _ [4]byte
433}
434
435const (
Andrea Campanella3614a922021-02-25 12:40:42 +0100436 BLKPG = 0x20001269
khenaidooac637102019-01-14 15:44:34 -0500437)
438
khenaidooac637102019-01-14 15:44:34 -0500439type XDPUmemReg struct {
440 Addr uint64
441 Len uint64
442 Size uint32
443 Headroom uint32
Andrea Campanella3614a922021-02-25 12:40:42 +0100444 Flags uint32
445 _ [4]byte
khenaidooac637102019-01-14 15:44:34 -0500446}
447
Scott Baker8461e152019-10-01 14:44:30 -0700448type CryptoUserAlg struct {
449 Name [64]uint8
450 Driver_name [64]uint8
451 Module_name [64]uint8
452 Type uint32
453 Mask uint32
454 Refcnt uint32
455 Flags uint32
456}
457
458type CryptoStatAEAD struct {
459 Type [64]uint8
460 Encrypt_cnt uint64
461 Encrypt_tlen uint64
462 Decrypt_cnt uint64
463 Decrypt_tlen uint64
464 Err_cnt uint64
465}
466
467type CryptoStatAKCipher struct {
468 Type [64]uint8
469 Encrypt_cnt uint64
470 Encrypt_tlen uint64
471 Decrypt_cnt uint64
472 Decrypt_tlen uint64
473 Verify_cnt uint64
474 Sign_cnt uint64
475 Err_cnt uint64
476}
477
478type CryptoStatCipher struct {
479 Type [64]uint8
480 Encrypt_cnt uint64
481 Encrypt_tlen uint64
482 Decrypt_cnt uint64
483 Decrypt_tlen uint64
484 Err_cnt uint64
485}
486
487type CryptoStatCompress struct {
488 Type [64]uint8
489 Compress_cnt uint64
490 Compress_tlen uint64
491 Decompress_cnt uint64
492 Decompress_tlen uint64
493 Err_cnt uint64
494}
495
496type CryptoStatHash struct {
497 Type [64]uint8
498 Hash_cnt uint64
499 Hash_tlen uint64
500 Err_cnt uint64
501}
502
503type CryptoStatKPP struct {
504 Type [64]uint8
505 Setsecret_cnt uint64
506 Generate_public_key_cnt uint64
507 Compute_shared_secret_cnt uint64
508 Err_cnt uint64
509}
510
511type CryptoStatRNG struct {
512 Type [64]uint8
513 Generate_cnt uint64
514 Generate_tlen uint64
515 Seed_cnt uint64
516 Err_cnt uint64
517}
518
519type CryptoStatLarval struct {
520 Type [64]uint8
521}
522
523type CryptoReportLarval struct {
524 Type [64]uint8
525}
526
527type CryptoReportHash struct {
528 Type [64]uint8
529 Blocksize uint32
530 Digestsize uint32
531}
532
533type CryptoReportCipher struct {
534 Type [64]uint8
535 Blocksize uint32
536 Min_keysize uint32
537 Max_keysize uint32
538}
539
540type CryptoReportBlkCipher struct {
541 Type [64]uint8
542 Geniv [64]uint8
543 Blocksize uint32
544 Min_keysize uint32
545 Max_keysize uint32
546 Ivsize uint32
547}
548
549type CryptoReportAEAD struct {
550 Type [64]uint8
551 Geniv [64]uint8
552 Blocksize uint32
553 Maxauthsize uint32
554 Ivsize uint32
555}
556
557type CryptoReportComp struct {
558 Type [64]uint8
559}
560
561type CryptoReportRNG struct {
562 Type [64]uint8
563 Seedsize uint32
564}
565
566type CryptoReportAKCipher struct {
567 Type [64]uint8
568}
569
570type CryptoReportKPP struct {
571 Type [64]uint8
572}
573
574type CryptoReportAcomp struct {
575 Type [64]uint8
576}
577
Scott Baker8461e152019-10-01 14:44:30 -0700578type LoopInfo struct {
579 Number int32
580 Device uint64
581 Inode uint64
582 Rdevice uint64
583 Offset int32
584 Encrypt_type int32
585 Encrypt_key_size int32
586 Flags int32
587 Name [64]uint8
588 Encrypt_key [32]uint8
589 Init [2]uint64
590 Reserved [4]uint8
591 _ [4]byte
592}
Scott Baker8461e152019-10-01 14:44:30 -0700593
594type TIPCSubscr struct {
595 Seq TIPCServiceRange
596 Timeout uint32
597 Filter uint32
598 Handle [8]uint8
599}
600
Scott Baker8461e152019-10-01 14:44:30 -0700601type TIPCSIOCLNReq struct {
602 Peer uint32
603 Id uint32
604 Linkname [68]uint8
605}
606
607type TIPCSIOCNodeIDReq struct {
608 Peer uint32
609 Id [16]uint8
610}