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