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