blob: 8f6b453aba5b148321ef09de7aedb1dfa5c1660b [file] [log] [blame]
khenaidooac637102019-01-14 15:44:34 -05001// 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 (
Andrea Campanella3614a922021-02-25 12:40:42 +01009 SizeofPtr = 0x4
10 SizeofLong = 0x4
khenaidooac637102019-01-14 15:44:34 -050011)
12
13type (
Andrea Campanella3614a922021-02-25 12:40:42 +010014 _C_long int32
khenaidooac637102019-01-14 15:44:34 -050015)
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
khenaidooac637102019-01-14 15:44:34 -050084type 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
khenaidooac637102019-01-14 15:44:34 -0500105type Dirent struct {
106 Ino uint64
107 Off int64
108 Reclen uint16
109 Type uint8
110 Name [256]uint8
111 _ [5]byte
112}
113
khenaidooac637102019-01-14 15:44:34 -0500114type 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
Andrea Campanella3614a922021-02-25 12:40:42 +0100124type DmNameList struct {
125 Dev uint64
126 Next uint32
127 Name [0]byte
128 _ [4]byte
khenaidooac637102019-01-14 15:44:34 -0500129}
130
131const (
Andrea Campanella3614a922021-02-25 12:40:42 +0100132 FADV_DONTNEED = 0x4
133 FADV_NOREUSE = 0x5
khenaidooac637102019-01-14 15:44:34 -0500134)
135
khenaidooac637102019-01-14 15:44:34 -0500136type RawSockaddr struct {
137 Family uint16
138 Data [14]uint8
139}
140
141type RawSockaddrAny struct {
142 Addr RawSockaddr
143 Pad [96]uint8
144}
145
khenaidooac637102019-01-14 15:44:34 -0500146type Iovec struct {
147 Base *byte
148 Len uint32
149}
150
khenaidooac637102019-01-14 15:44:34 -0500151type Msghdr struct {
152 Name *byte
153 Namelen uint32
154 Iov *Iovec
155 Iovlen uint32
156 Control *byte
157 Controllen uint32
158 Flags int32
159}
160
161type Cmsghdr struct {
162 Len uint32
163 Level int32
164 Type int32
165}
166
khenaidooac637102019-01-14 15:44:34 -0500167const (
Andrea Campanella3614a922021-02-25 12:40:42 +0100168 SizeofIovec = 0x8
169 SizeofMsghdr = 0x1c
170 SizeofCmsghdr = 0xc
khenaidooac637102019-01-14 15:44:34 -0500171)
172
173const (
Andrea Campanella3614a922021-02-25 12:40:42 +0100174 SizeofSockFprog = 0x8
khenaidooac637102019-01-14 15:44:34 -0500175)
176
khenaidooac637102019-01-14 15:44:34 -0500177type PtraceRegs struct {
178 Uregs [18]uint32
179}
180
181type FdSet struct {
182 Bits [32]int32
183}
184
185type Sysinfo_t struct {
186 Uptime int32
187 Loads [3]uint32
188 Totalram uint32
189 Freeram uint32
190 Sharedram uint32
191 Bufferram uint32
192 Totalswap uint32
193 Freeswap uint32
194 Procs uint16
195 Pad uint16
196 Totalhigh uint32
197 Freehigh uint32
198 Unit uint32
199 _ [8]uint8
200}
201
khenaidooac637102019-01-14 15:44:34 -0500202type Ustat_t struct {
203 Tfree int32
204 Tinode uint32
205 Fname [6]uint8
206 Fpack [6]uint8
207}
208
209type EpollEvent struct {
210 Events uint32
211 PadFd int32
212 Fd int32
213 Pad int32
214}
215
216const (
khenaidooac637102019-01-14 15:44:34 -0500217 POLLRDHUP = 0x2000
khenaidooac637102019-01-14 15:44:34 -0500218)
219
220type Sigset_t struct {
221 Val [32]uint32
222}
223
Scott Baker8461e152019-10-01 14:44:30 -0700224const _C__NSIG = 0x41
225
khenaidooac637102019-01-14 15:44:34 -0500226type Termios struct {
227 Iflag uint32
228 Oflag uint32
229 Cflag uint32
230 Lflag uint32
231 Line uint8
232 Cc [19]uint8
233 Ispeed uint32
234 Ospeed uint32
235}
236
khenaidooac637102019-01-14 15:44:34 -0500237type Taskstats struct {
238 Version uint16
239 Ac_exitcode uint32
240 Ac_flag uint8
241 Ac_nice uint8
242 _ [4]byte
243 Cpu_count uint64
244 Cpu_delay_total uint64
245 Blkio_count uint64
246 Blkio_delay_total uint64
247 Swapin_count uint64
248 Swapin_delay_total uint64
249 Cpu_run_real_total uint64
250 Cpu_run_virtual_total uint64
251 Ac_comm [32]uint8
252 Ac_sched uint8
253 Ac_pad [3]uint8
254 _ [4]byte
255 Ac_uid uint32
256 Ac_gid uint32
257 Ac_pid uint32
258 Ac_ppid uint32
259 Ac_btime uint32
260 _ [4]byte
261 Ac_etime uint64
262 Ac_utime uint64
263 Ac_stime uint64
264 Ac_minflt uint64
265 Ac_majflt uint64
266 Coremem uint64
267 Virtmem uint64
268 Hiwater_rss uint64
269 Hiwater_vm uint64
270 Read_char uint64
271 Write_char uint64
272 Read_syscalls uint64
273 Write_syscalls uint64
274 Read_bytes uint64
275 Write_bytes uint64
276 Cancelled_write_bytes uint64
277 Nvcsw uint64
278 Nivcsw uint64
279 Ac_utimescaled uint64
280 Ac_stimescaled uint64
281 Cpu_scaled_run_real_total uint64
282 Freepages_count uint64
283 Freepages_delay_total uint64
284 Thrashing_count uint64
285 Thrashing_delay_total uint64
Andrea Campanella3614a922021-02-25 12:40:42 +0100286 Ac_btime64 uint64
khenaidooac637102019-01-14 15:44:34 -0500287}
288
khenaidooac637102019-01-14 15:44:34 -0500289type cpuMask uint32
290
291const (
Andrea Campanella3614a922021-02-25 12:40:42 +0100292 _NCPUBITS = 0x20
khenaidooac637102019-01-14 15:44:34 -0500293)
294
295const (
296 CBitFieldMaskBit0 = 0x1
297 CBitFieldMaskBit1 = 0x2
298 CBitFieldMaskBit2 = 0x4
299 CBitFieldMaskBit3 = 0x8
300 CBitFieldMaskBit4 = 0x10
301 CBitFieldMaskBit5 = 0x20
302 CBitFieldMaskBit6 = 0x40
303 CBitFieldMaskBit7 = 0x80
304 CBitFieldMaskBit8 = 0x100
305 CBitFieldMaskBit9 = 0x200
306 CBitFieldMaskBit10 = 0x400
307 CBitFieldMaskBit11 = 0x800
308 CBitFieldMaskBit12 = 0x1000
309 CBitFieldMaskBit13 = 0x2000
310 CBitFieldMaskBit14 = 0x4000
311 CBitFieldMaskBit15 = 0x8000
312 CBitFieldMaskBit16 = 0x10000
313 CBitFieldMaskBit17 = 0x20000
314 CBitFieldMaskBit18 = 0x40000
315 CBitFieldMaskBit19 = 0x80000
316 CBitFieldMaskBit20 = 0x100000
317 CBitFieldMaskBit21 = 0x200000
318 CBitFieldMaskBit22 = 0x400000
319 CBitFieldMaskBit23 = 0x800000
320 CBitFieldMaskBit24 = 0x1000000
321 CBitFieldMaskBit25 = 0x2000000
322 CBitFieldMaskBit26 = 0x4000000
323 CBitFieldMaskBit27 = 0x8000000
324 CBitFieldMaskBit28 = 0x10000000
325 CBitFieldMaskBit29 = 0x20000000
326 CBitFieldMaskBit30 = 0x40000000
327 CBitFieldMaskBit31 = 0x80000000
328 CBitFieldMaskBit32 = 0x100000000
329 CBitFieldMaskBit33 = 0x200000000
330 CBitFieldMaskBit34 = 0x400000000
331 CBitFieldMaskBit35 = 0x800000000
332 CBitFieldMaskBit36 = 0x1000000000
333 CBitFieldMaskBit37 = 0x2000000000
334 CBitFieldMaskBit38 = 0x4000000000
335 CBitFieldMaskBit39 = 0x8000000000
336 CBitFieldMaskBit40 = 0x10000000000
337 CBitFieldMaskBit41 = 0x20000000000
338 CBitFieldMaskBit42 = 0x40000000000
339 CBitFieldMaskBit43 = 0x80000000000
340 CBitFieldMaskBit44 = 0x100000000000
341 CBitFieldMaskBit45 = 0x200000000000
342 CBitFieldMaskBit46 = 0x400000000000
343 CBitFieldMaskBit47 = 0x800000000000
344 CBitFieldMaskBit48 = 0x1000000000000
345 CBitFieldMaskBit49 = 0x2000000000000
346 CBitFieldMaskBit50 = 0x4000000000000
347 CBitFieldMaskBit51 = 0x8000000000000
348 CBitFieldMaskBit52 = 0x10000000000000
349 CBitFieldMaskBit53 = 0x20000000000000
350 CBitFieldMaskBit54 = 0x40000000000000
351 CBitFieldMaskBit55 = 0x80000000000000
352 CBitFieldMaskBit56 = 0x100000000000000
353 CBitFieldMaskBit57 = 0x200000000000000
354 CBitFieldMaskBit58 = 0x400000000000000
355 CBitFieldMaskBit59 = 0x800000000000000
356 CBitFieldMaskBit60 = 0x1000000000000000
357 CBitFieldMaskBit61 = 0x2000000000000000
358 CBitFieldMaskBit62 = 0x4000000000000000
359 CBitFieldMaskBit63 = 0x8000000000000000
360)
361
362type SockaddrStorage struct {
363 Family uint16
364 _ [122]uint8
365 _ uint32
366}
367
khenaidooac637102019-01-14 15:44:34 -0500368type HDGeometry struct {
369 Heads uint8
370 Sectors uint8
371 Cylinders uint16
372 Start uint32
373}
374
khenaidooac637102019-01-14 15:44:34 -0500375type Statfs_t struct {
376 Type int32
377 Bsize int32
378 Blocks uint64
379 Bfree uint64
380 Bavail uint64
381 Files uint64
382 Ffree uint64
383 Fsid Fsid
384 Namelen int32
385 Frsize int32
386 Flags int32
387 Spare [4]int32
388 _ [4]byte
389}
390
khenaidooac637102019-01-14 15:44:34 -0500391type TpacketHdr struct {
392 Status uint32
393 Len uint32
394 Snaplen uint32
395 Mac uint16
396 Net uint16
397 Sec uint32
398 Usec uint32
399}
400
khenaidooac637102019-01-14 15:44:34 -0500401const (
Andrea Campanella3614a922021-02-25 12:40:42 +0100402 SizeofTpacketHdr = 0x18
khenaidooac637102019-01-14 15:44:34 -0500403)
404
khenaidooac637102019-01-14 15:44:34 -0500405type RTCPLLInfo struct {
406 Ctrl int32
407 Value int32
408 Max int32
409 Min int32
410 Posmult int32
411 Negmult int32
412 Clock int32
413}
414
khenaidooac637102019-01-14 15:44:34 -0500415type BlkpgPartition struct {
416 Start int64
417 Length int64
418 Pno int32
419 Devname [64]uint8
420 Volname [64]uint8
421 _ [4]byte
422}
423
424const (
Andrea Campanella3614a922021-02-25 12:40:42 +0100425 BLKPG = 0x1269
khenaidooac637102019-01-14 15:44:34 -0500426)
427
khenaidooac637102019-01-14 15:44:34 -0500428type XDPUmemReg struct {
429 Addr uint64
430 Len uint64
431 Size uint32
432 Headroom uint32
Andrea Campanella3614a922021-02-25 12:40:42 +0100433 Flags uint32
434 _ [4]byte
khenaidooac637102019-01-14 15:44:34 -0500435}
436
Scott Baker8461e152019-10-01 14:44:30 -0700437type CryptoUserAlg struct {
438 Name [64]uint8
439 Driver_name [64]uint8
440 Module_name [64]uint8
441 Type uint32
442 Mask uint32
443 Refcnt uint32
444 Flags uint32
445}
446
447type CryptoStatAEAD struct {
448 Type [64]uint8
449 Encrypt_cnt uint64
450 Encrypt_tlen uint64
451 Decrypt_cnt uint64
452 Decrypt_tlen uint64
453 Err_cnt uint64
454}
455
456type CryptoStatAKCipher struct {
457 Type [64]uint8
458 Encrypt_cnt uint64
459 Encrypt_tlen uint64
460 Decrypt_cnt uint64
461 Decrypt_tlen uint64
462 Verify_cnt uint64
463 Sign_cnt uint64
464 Err_cnt uint64
465}
466
467type CryptoStatCipher struct {
468 Type [64]uint8
469 Encrypt_cnt uint64
470 Encrypt_tlen uint64
471 Decrypt_cnt uint64
472 Decrypt_tlen uint64
473 Err_cnt uint64
474}
475
476type CryptoStatCompress struct {
477 Type [64]uint8
478 Compress_cnt uint64
479 Compress_tlen uint64
480 Decompress_cnt uint64
481 Decompress_tlen uint64
482 Err_cnt uint64
483}
484
485type CryptoStatHash struct {
486 Type [64]uint8
487 Hash_cnt uint64
488 Hash_tlen uint64
489 Err_cnt uint64
490}
491
492type CryptoStatKPP struct {
493 Type [64]uint8
494 Setsecret_cnt uint64
495 Generate_public_key_cnt uint64
496 Compute_shared_secret_cnt uint64
497 Err_cnt uint64
498}
499
500type CryptoStatRNG struct {
501 Type [64]uint8
502 Generate_cnt uint64
503 Generate_tlen uint64
504 Seed_cnt uint64
505 Err_cnt uint64
506}
507
508type CryptoStatLarval struct {
509 Type [64]uint8
510}
511
512type CryptoReportLarval struct {
513 Type [64]uint8
514}
515
516type CryptoReportHash struct {
517 Type [64]uint8
518 Blocksize uint32
519 Digestsize uint32
520}
521
522type CryptoReportCipher struct {
523 Type [64]uint8
524 Blocksize uint32
525 Min_keysize uint32
526 Max_keysize uint32
527}
528
529type CryptoReportBlkCipher struct {
530 Type [64]uint8
531 Geniv [64]uint8
532 Blocksize uint32
533 Min_keysize uint32
534 Max_keysize uint32
535 Ivsize uint32
536}
537
538type CryptoReportAEAD struct {
539 Type [64]uint8
540 Geniv [64]uint8
541 Blocksize uint32
542 Maxauthsize uint32
543 Ivsize uint32
544}
545
546type CryptoReportComp struct {
547 Type [64]uint8
548}
549
550type CryptoReportRNG struct {
551 Type [64]uint8
552 Seedsize uint32
553}
554
555type CryptoReportAKCipher struct {
556 Type [64]uint8
557}
558
559type CryptoReportKPP struct {
560 Type [64]uint8
561}
562
563type CryptoReportAcomp struct {
564 Type [64]uint8
565}
566
Scott Baker8461e152019-10-01 14:44:30 -0700567type LoopInfo struct {
568 Number int32
569 Device uint16
570 Inode uint32
571 Rdevice uint16
572 Offset int32
573 Encrypt_type int32
574 Encrypt_key_size int32
575 Flags int32
576 Name [64]uint8
577 Encrypt_key [32]uint8
578 Init [2]uint32
579 Reserved [4]uint8
580}
Scott Baker8461e152019-10-01 14:44:30 -0700581
582type TIPCSubscr struct {
583 Seq TIPCServiceRange
584 Timeout uint32
585 Filter uint32
586 Handle [8]uint8
587}
588
Scott Baker8461e152019-10-01 14:44:30 -0700589type TIPCSIOCLNReq struct {
590 Peer uint32
591 Id uint32
592 Linkname [68]uint8
593}
594
595type TIPCSIOCNodeIDReq struct {
596 Peer uint32
597 Id [16]uint8
598}