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