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