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