blob: 33a73bf183bfb2173e199f0c16ee0a7230944785 [file] [log] [blame]
Matteo Scandoloa4285862020-12-01 18:10:10 -08001// 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 Ac_btime64 uint64
286}
287
288type cpuMask uint64
289
290const (
291 _NCPUBITS = 0x40
292)
293
294const (
295 CBitFieldMaskBit0 = 0x8000000000000000
296 CBitFieldMaskBit1 = 0x4000000000000000
297 CBitFieldMaskBit2 = 0x2000000000000000
298 CBitFieldMaskBit3 = 0x1000000000000000
299 CBitFieldMaskBit4 = 0x800000000000000
300 CBitFieldMaskBit5 = 0x400000000000000
301 CBitFieldMaskBit6 = 0x200000000000000
302 CBitFieldMaskBit7 = 0x100000000000000
303 CBitFieldMaskBit8 = 0x80000000000000
304 CBitFieldMaskBit9 = 0x40000000000000
305 CBitFieldMaskBit10 = 0x20000000000000
306 CBitFieldMaskBit11 = 0x10000000000000
307 CBitFieldMaskBit12 = 0x8000000000000
308 CBitFieldMaskBit13 = 0x4000000000000
309 CBitFieldMaskBit14 = 0x2000000000000
310 CBitFieldMaskBit15 = 0x1000000000000
311 CBitFieldMaskBit16 = 0x800000000000
312 CBitFieldMaskBit17 = 0x400000000000
313 CBitFieldMaskBit18 = 0x200000000000
314 CBitFieldMaskBit19 = 0x100000000000
315 CBitFieldMaskBit20 = 0x80000000000
316 CBitFieldMaskBit21 = 0x40000000000
317 CBitFieldMaskBit22 = 0x20000000000
318 CBitFieldMaskBit23 = 0x10000000000
319 CBitFieldMaskBit24 = 0x8000000000
320 CBitFieldMaskBit25 = 0x4000000000
321 CBitFieldMaskBit26 = 0x2000000000
322 CBitFieldMaskBit27 = 0x1000000000
323 CBitFieldMaskBit28 = 0x800000000
324 CBitFieldMaskBit29 = 0x400000000
325 CBitFieldMaskBit30 = 0x200000000
326 CBitFieldMaskBit31 = 0x100000000
327 CBitFieldMaskBit32 = 0x80000000
328 CBitFieldMaskBit33 = 0x40000000
329 CBitFieldMaskBit34 = 0x20000000
330 CBitFieldMaskBit35 = 0x10000000
331 CBitFieldMaskBit36 = 0x8000000
332 CBitFieldMaskBit37 = 0x4000000
333 CBitFieldMaskBit38 = 0x2000000
334 CBitFieldMaskBit39 = 0x1000000
335 CBitFieldMaskBit40 = 0x800000
336 CBitFieldMaskBit41 = 0x400000
337 CBitFieldMaskBit42 = 0x200000
338 CBitFieldMaskBit43 = 0x100000
339 CBitFieldMaskBit44 = 0x80000
340 CBitFieldMaskBit45 = 0x40000
341 CBitFieldMaskBit46 = 0x20000
342 CBitFieldMaskBit47 = 0x10000
343 CBitFieldMaskBit48 = 0x8000
344 CBitFieldMaskBit49 = 0x4000
345 CBitFieldMaskBit50 = 0x2000
346 CBitFieldMaskBit51 = 0x1000
347 CBitFieldMaskBit52 = 0x800
348 CBitFieldMaskBit53 = 0x400
349 CBitFieldMaskBit54 = 0x200
350 CBitFieldMaskBit55 = 0x100
351 CBitFieldMaskBit56 = 0x80
352 CBitFieldMaskBit57 = 0x40
353 CBitFieldMaskBit58 = 0x20
354 CBitFieldMaskBit59 = 0x10
355 CBitFieldMaskBit60 = 0x8
356 CBitFieldMaskBit61 = 0x4
357 CBitFieldMaskBit62 = 0x2
358 CBitFieldMaskBit63 = 0x1
359)
360
361type SockaddrStorage struct {
362 Family uint16
363 _ [118]int8
364 _ uint64
365}
366
367type HDGeometry struct {
368 Heads uint8
369 Sectors uint8
370 Cylinders uint16
371 Start uint64
372}
373
374type Statfs_t struct {
375 Type int64
376 Bsize int64
377 Blocks uint64
378 Bfree uint64
379 Bavail uint64
380 Files uint64
381 Ffree uint64
382 Fsid Fsid
383 Namelen int64
384 Frsize int64
385 Flags int64
386 Spare [4]int64
387}
388
389type TpacketHdr struct {
390 Status uint64
391 Len uint32
392 Snaplen uint32
393 Mac uint16
394 Net uint16
395 Sec uint32
396 Usec uint32
397 _ [4]byte
398}
399
400const (
401 SizeofTpacketHdr = 0x20
402)
403
404type RTCPLLInfo struct {
405 Ctrl int32
406 Value int32
407 Max int32
408 Min int32
409 Posmult int32
410 Negmult int32
411 Clock int64
412}
413
414type BlkpgPartition struct {
415 Start int64
416 Length int64
417 Pno int32
418 Devname [64]uint8
419 Volname [64]uint8
420 _ [4]byte
421}
422
423const (
424 BLKPG = 0x20001269
425)
426
427type XDPUmemReg struct {
428 Addr uint64
429 Len uint64
430 Size uint32
431 Headroom uint32
432 Flags uint32
433 _ [4]byte
434}
435
436type CryptoUserAlg struct {
437 Name [64]int8
438 Driver_name [64]int8
439 Module_name [64]int8
440 Type uint32
441 Mask uint32
442 Refcnt uint32
443 Flags uint32
444}
445
446type CryptoStatAEAD struct {
447 Type [64]int8
448 Encrypt_cnt uint64
449 Encrypt_tlen uint64
450 Decrypt_cnt uint64
451 Decrypt_tlen uint64
452 Err_cnt uint64
453}
454
455type CryptoStatAKCipher struct {
456 Type [64]int8
457 Encrypt_cnt uint64
458 Encrypt_tlen uint64
459 Decrypt_cnt uint64
460 Decrypt_tlen uint64
461 Verify_cnt uint64
462 Sign_cnt uint64
463 Err_cnt uint64
464}
465
466type CryptoStatCipher struct {
467 Type [64]int8
468 Encrypt_cnt uint64
469 Encrypt_tlen uint64
470 Decrypt_cnt uint64
471 Decrypt_tlen uint64
472 Err_cnt uint64
473}
474
475type CryptoStatCompress struct {
476 Type [64]int8
477 Compress_cnt uint64
478 Compress_tlen uint64
479 Decompress_cnt uint64
480 Decompress_tlen uint64
481 Err_cnt uint64
482}
483
484type CryptoStatHash struct {
485 Type [64]int8
486 Hash_cnt uint64
487 Hash_tlen uint64
488 Err_cnt uint64
489}
490
491type CryptoStatKPP struct {
492 Type [64]int8
493 Setsecret_cnt uint64
494 Generate_public_key_cnt uint64
495 Compute_shared_secret_cnt uint64
496 Err_cnt uint64
497}
498
499type CryptoStatRNG struct {
500 Type [64]int8
501 Generate_cnt uint64
502 Generate_tlen uint64
503 Seed_cnt uint64
504 Err_cnt uint64
505}
506
507type CryptoStatLarval struct {
508 Type [64]int8
509}
510
511type CryptoReportLarval struct {
512 Type [64]int8
513}
514
515type CryptoReportHash struct {
516 Type [64]int8
517 Blocksize uint32
518 Digestsize uint32
519}
520
521type CryptoReportCipher struct {
522 Type [64]int8
523 Blocksize uint32
524 Min_keysize uint32
525 Max_keysize uint32
526}
527
528type CryptoReportBlkCipher struct {
529 Type [64]int8
530 Geniv [64]int8
531 Blocksize uint32
532 Min_keysize uint32
533 Max_keysize uint32
534 Ivsize uint32
535}
536
537type CryptoReportAEAD struct {
538 Type [64]int8
539 Geniv [64]int8
540 Blocksize uint32
541 Maxauthsize uint32
542 Ivsize uint32
543}
544
545type CryptoReportComp struct {
546 Type [64]int8
547}
548
549type CryptoReportRNG struct {
550 Type [64]int8
551 Seedsize uint32
552}
553
554type CryptoReportAKCipher struct {
555 Type [64]int8
556}
557
558type CryptoReportKPP struct {
559 Type [64]int8
560}
561
562type CryptoReportAcomp struct {
563 Type [64]int8
564}
565
566type LoopInfo struct {
567 Number int32
568 Device uint32
569 Inode uint64
570 Rdevice uint32
571 Offset int32
572 Encrypt_type int32
573 Encrypt_key_size int32
574 Flags int32
575 Name [64]int8
576 Encrypt_key [32]uint8
577 Init [2]uint64
578 Reserved [4]int8
579 _ [4]byte
580}
581
582type TIPCSubscr struct {
583 Seq TIPCServiceRange
584 Timeout uint32
585 Filter uint32
586 Handle [8]int8
587}
588
589type TIPCSIOCLNReq struct {
590 Peer uint32
591 Id uint32
592 Linkname [68]int8
593}
594
595type TIPCSIOCNodeIDReq struct {
596 Peer uint32
597 Id [16]int8
598}