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