blob: 8051b56108fa15067dcce571175fa2dc2e342604 [file] [log] [blame]
Matteo Scandoloa4285862020-12-01 18:10:10 -08001// 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 Ac_btime64 uint64
280}
281
282type cpuMask uint32
283
284const (
285 _NCPUBITS = 0x20
286)
287
288const (
289 CBitFieldMaskBit0 = 0x1
290 CBitFieldMaskBit1 = 0x2
291 CBitFieldMaskBit2 = 0x4
292 CBitFieldMaskBit3 = 0x8
293 CBitFieldMaskBit4 = 0x10
294 CBitFieldMaskBit5 = 0x20
295 CBitFieldMaskBit6 = 0x40
296 CBitFieldMaskBit7 = 0x80
297 CBitFieldMaskBit8 = 0x100
298 CBitFieldMaskBit9 = 0x200
299 CBitFieldMaskBit10 = 0x400
300 CBitFieldMaskBit11 = 0x800
301 CBitFieldMaskBit12 = 0x1000
302 CBitFieldMaskBit13 = 0x2000
303 CBitFieldMaskBit14 = 0x4000
304 CBitFieldMaskBit15 = 0x8000
305 CBitFieldMaskBit16 = 0x10000
306 CBitFieldMaskBit17 = 0x20000
307 CBitFieldMaskBit18 = 0x40000
308 CBitFieldMaskBit19 = 0x80000
309 CBitFieldMaskBit20 = 0x100000
310 CBitFieldMaskBit21 = 0x200000
311 CBitFieldMaskBit22 = 0x400000
312 CBitFieldMaskBit23 = 0x800000
313 CBitFieldMaskBit24 = 0x1000000
314 CBitFieldMaskBit25 = 0x2000000
315 CBitFieldMaskBit26 = 0x4000000
316 CBitFieldMaskBit27 = 0x8000000
317 CBitFieldMaskBit28 = 0x10000000
318 CBitFieldMaskBit29 = 0x20000000
319 CBitFieldMaskBit30 = 0x40000000
320 CBitFieldMaskBit31 = 0x80000000
321 CBitFieldMaskBit32 = 0x100000000
322 CBitFieldMaskBit33 = 0x200000000
323 CBitFieldMaskBit34 = 0x400000000
324 CBitFieldMaskBit35 = 0x800000000
325 CBitFieldMaskBit36 = 0x1000000000
326 CBitFieldMaskBit37 = 0x2000000000
327 CBitFieldMaskBit38 = 0x4000000000
328 CBitFieldMaskBit39 = 0x8000000000
329 CBitFieldMaskBit40 = 0x10000000000
330 CBitFieldMaskBit41 = 0x20000000000
331 CBitFieldMaskBit42 = 0x40000000000
332 CBitFieldMaskBit43 = 0x80000000000
333 CBitFieldMaskBit44 = 0x100000000000
334 CBitFieldMaskBit45 = 0x200000000000
335 CBitFieldMaskBit46 = 0x400000000000
336 CBitFieldMaskBit47 = 0x800000000000
337 CBitFieldMaskBit48 = 0x1000000000000
338 CBitFieldMaskBit49 = 0x2000000000000
339 CBitFieldMaskBit50 = 0x4000000000000
340 CBitFieldMaskBit51 = 0x8000000000000
341 CBitFieldMaskBit52 = 0x10000000000000
342 CBitFieldMaskBit53 = 0x20000000000000
343 CBitFieldMaskBit54 = 0x40000000000000
344 CBitFieldMaskBit55 = 0x80000000000000
345 CBitFieldMaskBit56 = 0x100000000000000
346 CBitFieldMaskBit57 = 0x200000000000000
347 CBitFieldMaskBit58 = 0x400000000000000
348 CBitFieldMaskBit59 = 0x800000000000000
349 CBitFieldMaskBit60 = 0x1000000000000000
350 CBitFieldMaskBit61 = 0x2000000000000000
351 CBitFieldMaskBit62 = 0x4000000000000000
352 CBitFieldMaskBit63 = 0x8000000000000000
353)
354
355type SockaddrStorage struct {
356 Family uint16
357 _ [122]uint8
358 _ uint32
359}
360
361type HDGeometry struct {
362 Heads uint8
363 Sectors uint8
364 Cylinders uint16
365 Start uint32
366}
367
368type Statfs_t struct {
369 Type int32
370 Bsize int32
371 Blocks uint64
372 Bfree uint64
373 Bavail uint64
374 Files uint64
375 Ffree uint64
376 Fsid Fsid
377 Namelen int32
378 Frsize int32
379 Flags int32
380 Spare [4]int32
381 _ [4]byte
382}
383
384type TpacketHdr struct {
385 Status uint32
386 Len uint32
387 Snaplen uint32
388 Mac uint16
389 Net uint16
390 Sec uint32
391 Usec uint32
392}
393
394const (
395 SizeofTpacketHdr = 0x18
396)
397
398type RTCPLLInfo struct {
399 Ctrl int32
400 Value int32
401 Max int32
402 Min int32
403 Posmult int32
404 Negmult int32
405 Clock int32
406}
407
408type BlkpgPartition struct {
409 Start int64
410 Length int64
411 Pno int32
412 Devname [64]uint8
413 Volname [64]uint8
414 _ [4]byte
415}
416
417const (
418 BLKPG = 0x1269
419)
420
421type XDPUmemReg struct {
422 Addr uint64
423 Len uint64
424 Size uint32
425 Headroom uint32
426 Flags uint32
427 _ [4]byte
428}
429
430type CryptoUserAlg struct {
431 Name [64]uint8
432 Driver_name [64]uint8
433 Module_name [64]uint8
434 Type uint32
435 Mask uint32
436 Refcnt uint32
437 Flags uint32
438}
439
440type CryptoStatAEAD struct {
441 Type [64]uint8
442 Encrypt_cnt uint64
443 Encrypt_tlen uint64
444 Decrypt_cnt uint64
445 Decrypt_tlen uint64
446 Err_cnt uint64
447}
448
449type CryptoStatAKCipher struct {
450 Type [64]uint8
451 Encrypt_cnt uint64
452 Encrypt_tlen uint64
453 Decrypt_cnt uint64
454 Decrypt_tlen uint64
455 Verify_cnt uint64
456 Sign_cnt uint64
457 Err_cnt uint64
458}
459
460type CryptoStatCipher struct {
461 Type [64]uint8
462 Encrypt_cnt uint64
463 Encrypt_tlen uint64
464 Decrypt_cnt uint64
465 Decrypt_tlen uint64
466 Err_cnt uint64
467}
468
469type CryptoStatCompress struct {
470 Type [64]uint8
471 Compress_cnt uint64
472 Compress_tlen uint64
473 Decompress_cnt uint64
474 Decompress_tlen uint64
475 Err_cnt uint64
476}
477
478type CryptoStatHash struct {
479 Type [64]uint8
480 Hash_cnt uint64
481 Hash_tlen uint64
482 Err_cnt uint64
483}
484
485type CryptoStatKPP struct {
486 Type [64]uint8
487 Setsecret_cnt uint64
488 Generate_public_key_cnt uint64
489 Compute_shared_secret_cnt uint64
490 Err_cnt uint64
491}
492
493type CryptoStatRNG struct {
494 Type [64]uint8
495 Generate_cnt uint64
496 Generate_tlen uint64
497 Seed_cnt uint64
498 Err_cnt uint64
499}
500
501type CryptoStatLarval struct {
502 Type [64]uint8
503}
504
505type CryptoReportLarval struct {
506 Type [64]uint8
507}
508
509type CryptoReportHash struct {
510 Type [64]uint8
511 Blocksize uint32
512 Digestsize uint32
513}
514
515type CryptoReportCipher struct {
516 Type [64]uint8
517 Blocksize uint32
518 Min_keysize uint32
519 Max_keysize uint32
520}
521
522type CryptoReportBlkCipher struct {
523 Type [64]uint8
524 Geniv [64]uint8
525 Blocksize uint32
526 Min_keysize uint32
527 Max_keysize uint32
528 Ivsize uint32
529}
530
531type CryptoReportAEAD struct {
532 Type [64]uint8
533 Geniv [64]uint8
534 Blocksize uint32
535 Maxauthsize uint32
536 Ivsize uint32
537}
538
539type CryptoReportComp struct {
540 Type [64]uint8
541}
542
543type CryptoReportRNG struct {
544 Type [64]uint8
545 Seedsize uint32
546}
547
548type CryptoReportAKCipher struct {
549 Type [64]uint8
550}
551
552type CryptoReportKPP struct {
553 Type [64]uint8
554}
555
556type CryptoReportAcomp struct {
557 Type [64]uint8
558}
559
560type LoopInfo struct {
561 Number int32
562 Device uint16
563 Inode uint32
564 Rdevice uint16
565 Offset int32
566 Encrypt_type int32
567 Encrypt_key_size int32
568 Flags int32
569 Name [64]uint8
570 Encrypt_key [32]uint8
571 Init [2]uint32
572 Reserved [4]uint8
573}
574
575type TIPCSubscr struct {
576 Seq TIPCServiceRange
577 Timeout uint32
578 Filter uint32
579 Handle [8]uint8
580}
581
582type TIPCSIOCLNReq struct {
583 Peer uint32
584 Id uint32
585 Linkname [68]uint8
586}
587
588type TIPCSIOCNodeIDReq struct {
589 Peer uint32
590 Id [16]uint8
591}