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