blob: 4db44301632bc5088638ca0eb0b5daadeb67894b [file] [log] [blame]
kesavandc71914f2022-03-25 11:19:03 +05301// cgo -godefs -- -Wall -Werror -static -I/tmp/include /build/unix/linux/types.go | go run mkpost.go
kesavand2cde6582020-06-22 04:56:23 -04002// Code generated by the command above; see README.md. DO NOT EDIT.
3
Andrea Campanella764f1ed2022-03-24 11:46:38 +01004//go:build arm && linux
kesavand2cde6582020-06-22 04:56:23 -04005// +build arm,linux
6
7package unix
8
9const (
Andrea Campanella764f1ed2022-03-24 11:46:38 +010010 SizeofPtr = 0x4
11 SizeofLong = 0x4
kesavand2cde6582020-06-22 04:56:23 -040012)
13
14type (
Andrea Campanella764f1ed2022-03-24 11:46:38 +010015 _C_long int32
kesavand2cde6582020-06-22 04:56:23 -040016)
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
kesavand2cde6582020-06-22 04:56:23 -040085type 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
kesavand2cde6582020-06-22 04:56:23 -0400106type Dirent struct {
107 Ino uint64
108 Off int64
109 Reclen uint16
110 Type uint8
111 Name [256]uint8
112 _ [5]byte
113}
114
kesavand2cde6582020-06-22 04:56:23 -0400115type 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
Andrea Campanella764f1ed2022-03-24 11:46:38 +0100125type DmNameList struct {
126 Dev uint64
127 Next uint32
128 Name [0]byte
129 _ [4]byte
kesavand2cde6582020-06-22 04:56:23 -0400130}
131
132const (
Andrea Campanella764f1ed2022-03-24 11:46:38 +0100133 FADV_DONTNEED = 0x4
134 FADV_NOREUSE = 0x5
kesavand2cde6582020-06-22 04:56:23 -0400135)
136
kesavandc71914f2022-03-25 11:19:03 +0530137type RawSockaddrNFCLLCP struct {
138 Sa_family uint16
139 Dev_idx uint32
140 Target_idx uint32
141 Nfc_protocol uint32
142 Dsap uint8
143 Ssap uint8
144 Service_name [63]uint8
145 Service_name_len uint32
146}
147
kesavand2cde6582020-06-22 04:56:23 -0400148type RawSockaddr struct {
149 Family uint16
150 Data [14]uint8
151}
152
153type RawSockaddrAny struct {
154 Addr RawSockaddr
155 Pad [96]uint8
156}
157
kesavand2cde6582020-06-22 04:56:23 -0400158type Iovec struct {
159 Base *byte
160 Len uint32
161}
162
kesavand2cde6582020-06-22 04:56:23 -0400163type Msghdr struct {
164 Name *byte
165 Namelen uint32
166 Iov *Iovec
167 Iovlen uint32
168 Control *byte
169 Controllen uint32
170 Flags int32
171}
172
173type Cmsghdr struct {
174 Len uint32
175 Level int32
176 Type int32
177}
178
kesavandc71914f2022-03-25 11:19:03 +0530179type ifreq struct {
180 Ifrn [16]byte
181 Ifru [16]byte
182}
183
kesavand2cde6582020-06-22 04:56:23 -0400184const (
kesavandc71914f2022-03-25 11:19:03 +0530185 SizeofSockaddrNFCLLCP = 0x58
186 SizeofIovec = 0x8
187 SizeofMsghdr = 0x1c
188 SizeofCmsghdr = 0xc
kesavand2cde6582020-06-22 04:56:23 -0400189)
190
191const (
Andrea Campanella764f1ed2022-03-24 11:46:38 +0100192 SizeofSockFprog = 0x8
kesavand2cde6582020-06-22 04:56:23 -0400193)
194
kesavand2cde6582020-06-22 04:56:23 -0400195type PtraceRegs struct {
196 Uregs [18]uint32
197}
198
199type FdSet struct {
200 Bits [32]int32
201}
202
203type Sysinfo_t struct {
204 Uptime int32
205 Loads [3]uint32
206 Totalram uint32
207 Freeram uint32
208 Sharedram uint32
209 Bufferram uint32
210 Totalswap uint32
211 Freeswap uint32
212 Procs uint16
213 Pad uint16
214 Totalhigh uint32
215 Freehigh uint32
216 Unit uint32
217 _ [8]uint8
218}
219
kesavand2cde6582020-06-22 04:56:23 -0400220type Ustat_t struct {
221 Tfree int32
222 Tinode uint32
223 Fname [6]uint8
224 Fpack [6]uint8
225}
226
227type EpollEvent struct {
228 Events uint32
229 PadFd int32
230 Fd int32
231 Pad int32
232}
233
234const (
kesavand2cde6582020-06-22 04:56:23 -0400235 POLLRDHUP = 0x2000
kesavand2cde6582020-06-22 04:56:23 -0400236)
237
238type Sigset_t struct {
239 Val [32]uint32
240}
241
242const _C__NSIG = 0x41
243
kesavand2cde6582020-06-22 04:56:23 -0400244type Termios struct {
245 Iflag uint32
246 Oflag uint32
247 Cflag uint32
248 Lflag uint32
249 Line uint8
250 Cc [19]uint8
251 Ispeed uint32
252 Ospeed uint32
253}
254
kesavand2cde6582020-06-22 04:56:23 -0400255type Taskstats struct {
256 Version uint16
257 Ac_exitcode uint32
258 Ac_flag uint8
259 Ac_nice uint8
260 _ [4]byte
261 Cpu_count uint64
262 Cpu_delay_total uint64
263 Blkio_count uint64
264 Blkio_delay_total uint64
265 Swapin_count uint64
266 Swapin_delay_total uint64
267 Cpu_run_real_total uint64
268 Cpu_run_virtual_total uint64
269 Ac_comm [32]uint8
270 Ac_sched uint8
271 Ac_pad [3]uint8
272 _ [4]byte
273 Ac_uid uint32
274 Ac_gid uint32
275 Ac_pid uint32
276 Ac_ppid uint32
277 Ac_btime uint32
278 _ [4]byte
279 Ac_etime uint64
280 Ac_utime uint64
281 Ac_stime uint64
282 Ac_minflt uint64
283 Ac_majflt uint64
284 Coremem uint64
285 Virtmem uint64
286 Hiwater_rss uint64
287 Hiwater_vm uint64
288 Read_char uint64
289 Write_char uint64
290 Read_syscalls uint64
291 Write_syscalls uint64
292 Read_bytes uint64
293 Write_bytes uint64
294 Cancelled_write_bytes uint64
295 Nvcsw uint64
296 Nivcsw uint64
297 Ac_utimescaled uint64
298 Ac_stimescaled uint64
299 Cpu_scaled_run_real_total uint64
300 Freepages_count uint64
301 Freepages_delay_total uint64
302 Thrashing_count uint64
303 Thrashing_delay_total uint64
Andrea Campanella764f1ed2022-03-24 11:46:38 +0100304 Ac_btime64 uint64
kesavand2cde6582020-06-22 04:56:23 -0400305}
306
kesavand2cde6582020-06-22 04:56:23 -0400307type cpuMask uint32
308
309const (
Andrea Campanella764f1ed2022-03-24 11:46:38 +0100310 _NCPUBITS = 0x20
kesavand2cde6582020-06-22 04:56:23 -0400311)
312
313const (
314 CBitFieldMaskBit0 = 0x1
315 CBitFieldMaskBit1 = 0x2
316 CBitFieldMaskBit2 = 0x4
317 CBitFieldMaskBit3 = 0x8
318 CBitFieldMaskBit4 = 0x10
319 CBitFieldMaskBit5 = 0x20
320 CBitFieldMaskBit6 = 0x40
321 CBitFieldMaskBit7 = 0x80
322 CBitFieldMaskBit8 = 0x100
323 CBitFieldMaskBit9 = 0x200
324 CBitFieldMaskBit10 = 0x400
325 CBitFieldMaskBit11 = 0x800
326 CBitFieldMaskBit12 = 0x1000
327 CBitFieldMaskBit13 = 0x2000
328 CBitFieldMaskBit14 = 0x4000
329 CBitFieldMaskBit15 = 0x8000
330 CBitFieldMaskBit16 = 0x10000
331 CBitFieldMaskBit17 = 0x20000
332 CBitFieldMaskBit18 = 0x40000
333 CBitFieldMaskBit19 = 0x80000
334 CBitFieldMaskBit20 = 0x100000
335 CBitFieldMaskBit21 = 0x200000
336 CBitFieldMaskBit22 = 0x400000
337 CBitFieldMaskBit23 = 0x800000
338 CBitFieldMaskBit24 = 0x1000000
339 CBitFieldMaskBit25 = 0x2000000
340 CBitFieldMaskBit26 = 0x4000000
341 CBitFieldMaskBit27 = 0x8000000
342 CBitFieldMaskBit28 = 0x10000000
343 CBitFieldMaskBit29 = 0x20000000
344 CBitFieldMaskBit30 = 0x40000000
345 CBitFieldMaskBit31 = 0x80000000
346 CBitFieldMaskBit32 = 0x100000000
347 CBitFieldMaskBit33 = 0x200000000
348 CBitFieldMaskBit34 = 0x400000000
349 CBitFieldMaskBit35 = 0x800000000
350 CBitFieldMaskBit36 = 0x1000000000
351 CBitFieldMaskBit37 = 0x2000000000
352 CBitFieldMaskBit38 = 0x4000000000
353 CBitFieldMaskBit39 = 0x8000000000
354 CBitFieldMaskBit40 = 0x10000000000
355 CBitFieldMaskBit41 = 0x20000000000
356 CBitFieldMaskBit42 = 0x40000000000
357 CBitFieldMaskBit43 = 0x80000000000
358 CBitFieldMaskBit44 = 0x100000000000
359 CBitFieldMaskBit45 = 0x200000000000
360 CBitFieldMaskBit46 = 0x400000000000
361 CBitFieldMaskBit47 = 0x800000000000
362 CBitFieldMaskBit48 = 0x1000000000000
363 CBitFieldMaskBit49 = 0x2000000000000
364 CBitFieldMaskBit50 = 0x4000000000000
365 CBitFieldMaskBit51 = 0x8000000000000
366 CBitFieldMaskBit52 = 0x10000000000000
367 CBitFieldMaskBit53 = 0x20000000000000
368 CBitFieldMaskBit54 = 0x40000000000000
369 CBitFieldMaskBit55 = 0x80000000000000
370 CBitFieldMaskBit56 = 0x100000000000000
371 CBitFieldMaskBit57 = 0x200000000000000
372 CBitFieldMaskBit58 = 0x400000000000000
373 CBitFieldMaskBit59 = 0x800000000000000
374 CBitFieldMaskBit60 = 0x1000000000000000
375 CBitFieldMaskBit61 = 0x2000000000000000
376 CBitFieldMaskBit62 = 0x4000000000000000
377 CBitFieldMaskBit63 = 0x8000000000000000
378)
379
380type SockaddrStorage struct {
381 Family uint16
382 _ [122]uint8
383 _ uint32
384}
385
kesavand2cde6582020-06-22 04:56:23 -0400386type HDGeometry struct {
387 Heads uint8
388 Sectors uint8
389 Cylinders uint16
390 Start uint32
391}
392
kesavand2cde6582020-06-22 04:56:23 -0400393type Statfs_t struct {
394 Type int32
395 Bsize int32
396 Blocks uint64
397 Bfree uint64
398 Bavail uint64
399 Files uint64
400 Ffree uint64
401 Fsid Fsid
402 Namelen int32
403 Frsize int32
404 Flags int32
405 Spare [4]int32
406 _ [4]byte
407}
408
kesavand2cde6582020-06-22 04:56:23 -0400409type TpacketHdr struct {
410 Status uint32
411 Len uint32
412 Snaplen uint32
413 Mac uint16
414 Net uint16
415 Sec uint32
416 Usec uint32
417}
418
kesavand2cde6582020-06-22 04:56:23 -0400419const (
Andrea Campanella764f1ed2022-03-24 11:46:38 +0100420 SizeofTpacketHdr = 0x18
kesavand2cde6582020-06-22 04:56:23 -0400421)
422
kesavand2cde6582020-06-22 04:56:23 -0400423type RTCPLLInfo struct {
424 Ctrl int32
425 Value int32
426 Max int32
427 Min int32
428 Posmult int32
429 Negmult int32
430 Clock int32
431}
432
kesavand2cde6582020-06-22 04:56:23 -0400433type BlkpgPartition struct {
434 Start int64
435 Length int64
436 Pno int32
437 Devname [64]uint8
438 Volname [64]uint8
439 _ [4]byte
440}
441
442const (
Andrea Campanella764f1ed2022-03-24 11:46:38 +0100443 BLKPG = 0x1269
kesavand2cde6582020-06-22 04:56:23 -0400444)
445
kesavand2cde6582020-06-22 04:56:23 -0400446type XDPUmemReg struct {
447 Addr uint64
448 Len uint64
449 Size uint32
450 Headroom uint32
Andrea Campanella764f1ed2022-03-24 11:46:38 +0100451 Flags uint32
452 _ [4]byte
kesavand2cde6582020-06-22 04:56:23 -0400453}
454
kesavand2cde6582020-06-22 04:56:23 -0400455type CryptoUserAlg struct {
456 Name [64]uint8
457 Driver_name [64]uint8
458 Module_name [64]uint8
459 Type uint32
460 Mask uint32
461 Refcnt uint32
462 Flags uint32
463}
464
465type CryptoStatAEAD struct {
466 Type [64]uint8
467 Encrypt_cnt uint64
468 Encrypt_tlen uint64
469 Decrypt_cnt uint64
470 Decrypt_tlen uint64
471 Err_cnt uint64
472}
473
474type CryptoStatAKCipher struct {
475 Type [64]uint8
476 Encrypt_cnt uint64
477 Encrypt_tlen uint64
478 Decrypt_cnt uint64
479 Decrypt_tlen uint64
480 Verify_cnt uint64
481 Sign_cnt uint64
482 Err_cnt uint64
483}
484
485type CryptoStatCipher struct {
486 Type [64]uint8
487 Encrypt_cnt uint64
488 Encrypt_tlen uint64
489 Decrypt_cnt uint64
490 Decrypt_tlen uint64
491 Err_cnt uint64
492}
493
494type CryptoStatCompress struct {
495 Type [64]uint8
496 Compress_cnt uint64
497 Compress_tlen uint64
498 Decompress_cnt uint64
499 Decompress_tlen uint64
500 Err_cnt uint64
501}
502
503type CryptoStatHash struct {
504 Type [64]uint8
505 Hash_cnt uint64
506 Hash_tlen uint64
507 Err_cnt uint64
508}
509
510type CryptoStatKPP struct {
511 Type [64]uint8
512 Setsecret_cnt uint64
513 Generate_public_key_cnt uint64
514 Compute_shared_secret_cnt uint64
515 Err_cnt uint64
516}
517
518type CryptoStatRNG struct {
519 Type [64]uint8
520 Generate_cnt uint64
521 Generate_tlen uint64
522 Seed_cnt uint64
523 Err_cnt uint64
524}
525
526type CryptoStatLarval struct {
527 Type [64]uint8
528}
529
530type CryptoReportLarval struct {
531 Type [64]uint8
532}
533
534type CryptoReportHash struct {
535 Type [64]uint8
536 Blocksize uint32
537 Digestsize uint32
538}
539
540type CryptoReportCipher struct {
541 Type [64]uint8
542 Blocksize uint32
543 Min_keysize uint32
544 Max_keysize uint32
545}
546
547type CryptoReportBlkCipher struct {
548 Type [64]uint8
549 Geniv [64]uint8
550 Blocksize uint32
551 Min_keysize uint32
552 Max_keysize uint32
553 Ivsize uint32
554}
555
556type CryptoReportAEAD struct {
557 Type [64]uint8
558 Geniv [64]uint8
559 Blocksize uint32
560 Maxauthsize uint32
561 Ivsize uint32
562}
563
564type CryptoReportComp struct {
565 Type [64]uint8
566}
567
568type CryptoReportRNG struct {
569 Type [64]uint8
570 Seedsize uint32
571}
572
573type CryptoReportAKCipher struct {
574 Type [64]uint8
575}
576
577type CryptoReportKPP struct {
578 Type [64]uint8
579}
580
581type CryptoReportAcomp struct {
582 Type [64]uint8
583}
584
kesavand2cde6582020-06-22 04:56:23 -0400585type LoopInfo struct {
586 Number int32
587 Device uint16
588 Inode uint32
589 Rdevice uint16
590 Offset int32
591 Encrypt_type int32
592 Encrypt_key_size int32
593 Flags int32
594 Name [64]uint8
595 Encrypt_key [32]uint8
596 Init [2]uint32
597 Reserved [4]uint8
598}
Andrea Campanella764f1ed2022-03-24 11:46:38 +0100599
600type TIPCSubscr struct {
601 Seq TIPCServiceRange
602 Timeout uint32
603 Filter uint32
604 Handle [8]uint8
kesavand2cde6582020-06-22 04:56:23 -0400605}
Andrea Campanella764f1ed2022-03-24 11:46:38 +0100606
607type TIPCSIOCLNReq struct {
608 Peer uint32
609 Id uint32
610 Linkname [68]uint8
611}
612
613type TIPCSIOCNodeIDReq struct {
614 Peer uint32
615 Id [16]uint8
616}
617
618type PPSKInfo struct {
619 Assert_sequence uint32
620 Clear_sequence uint32
621 Assert_tu PPSKTime
622 Clear_tu PPSKTime
623 Current_mode int32
624 _ [4]byte
625}
626
627const (
628 PPS_GETPARAMS = 0x800470a1
629 PPS_SETPARAMS = 0x400470a2
630 PPS_GETCAP = 0x800470a3
631 PPS_FETCH = 0xc00470a4
632)
kesavandc71914f2022-03-25 11:19:03 +0530633
634const (
635 PIDFD_NONBLOCK = 0x800
636)
637
638type SysvIpcPerm struct {
639 Key int32
640 Uid uint32
641 Gid uint32
642 Cuid uint32
643 Cgid uint32
644 Mode uint16
645 _ [2]uint8
646 Seq uint16
647 _ uint16
648 _ uint32
649 _ uint32
650}
651type SysvShmDesc struct {
652 Perm SysvIpcPerm
653 Segsz uint32
654 Atime uint32
655 Atime_high uint32
656 Dtime uint32
657 Dtime_high uint32
658 Ctime uint32
659 Ctime_high uint32
660 Cpid int32
661 Lpid int32
662 Nattch uint32
663 _ uint32
664 _ uint32
665}