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