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