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