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