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