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