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