Johan Jansson | 7c45f0c | 2021-11-12 11:41:28 +0200 | [diff] [blame] | 1 | // cgo -godefs -- -Wall -Werror -static -I/tmp/include -fsigned-char /build/unix/linux/types.go | go run mkpost.go |
Joe Richey | ea9bcad | 2017-03-08 10:50:27 -0800 | [diff] [blame] | 2 | // Code generated by the command above; see README.md. DO NOT EDIT. |
| 3 | |
Russ Cox | 9a76102 | 2021-02-19 22:57:36 -0500 | [diff] [blame] | 4 | //go:build s390x && linux |
Michael Munday | 33267e0 | 2016-05-11 12:29:03 -0400 | [diff] [blame] | 5 | // +build s390x,linux |
Michael Munday | 33267e0 | 2016-05-11 12:29:03 -0400 | [diff] [blame] | 6 | |
| 7 | package unix |
| 8 | |
| 9 | const ( |
Johan Jansson | 5d559ad | 2020-02-28 00:39:38 +0200 | [diff] [blame] | 10 | SizeofPtr = 0x8 |
| 11 | SizeofLong = 0x8 |
Michael Munday | 33267e0 | 2016-05-11 12:29:03 -0400 | [diff] [blame] | 12 | ) |
| 13 | |
| 14 | type ( |
Johan Jansson | 5d559ad | 2020-02-28 00:39:38 +0200 | [diff] [blame] | 15 | _C_long int64 |
Michael Munday | 33267e0 | 2016-05-11 12:29:03 -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 |
Michael Munday | 33267e0 | 2016-05-11 12:29:03 -0400 | [diff] [blame] | 30 | Offset int64 |
| 31 | Freq int64 |
| 32 | Maxerror int64 |
| 33 | Esterror int64 |
| 34 | Status int32 |
Michael Munday | 33267e0 | 2016-05-11 12:29:03 -0400 | [diff] [blame] | 35 | Constant int64 |
| 36 | Precision int64 |
| 37 | Tolerance int64 |
| 38 | Time Timeval |
| 39 | Tick int64 |
| 40 | Ppsfreq int64 |
| 41 | Jitter int64 |
| 42 | Shift int32 |
Michael Munday | 33267e0 | 2016-05-11 12:29:03 -0400 | [diff] [blame] | 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 | |
Michael Munday | 33267e0 | 2016-05-11 12:29:03 -0400 | [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 | |
Michael Munday | 33267e0 | 2016-05-11 12:29:03 -0400 | [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 | |
Michael Munday | 33267e0 | 2016-05-11 12:29:03 -0400 | [diff] [blame] | 112 | type Flock_t struct { |
| 113 | Type int16 |
| 114 | Whence int16 |
Michael Munday | 33267e0 | 2016-05-11 12:29:03 -0400 | [diff] [blame] | 115 | Start int64 |
| 116 | Len int64 |
| 117 | Pid int32 |
| 118 | _ [4]byte |
| 119 | } |
| 120 | |
Anatol Pomozov | 3d37ad5 | 2020-08-01 13:08:58 -0700 | [diff] [blame] | 121 | type DmNameList struct { |
| 122 | Dev uint64 |
| 123 | Next uint32 |
| 124 | Name [0]byte |
| 125 | _ [4]byte |
| 126 | } |
| 127 | |
Michael Munday | 33267e0 | 2016-05-11 12:29:03 -0400 | [diff] [blame] | 128 | const ( |
Johan Jansson | 5d559ad | 2020-02-28 00:39:38 +0200 | [diff] [blame] | 129 | FADV_DONTNEED = 0x6 |
| 130 | FADV_NOREUSE = 0x7 |
Michael Munday | 33267e0 | 2016-05-11 12:29:03 -0400 | [diff] [blame] | 131 | ) |
| 132 | |
Tom Thorogood | 9665404 | 2021-05-30 22:21:48 +0930 | [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 | |
Michael Munday | 33267e0 | 2016-05-11 12:29:03 -0400 | [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 | |
Michael Munday | 33267e0 | 2016-05-11 12:29:03 -0400 | [diff] [blame] | 154 | type Iovec struct { |
| 155 | Base *byte |
| 156 | Len uint64 |
| 157 | } |
| 158 | |
Michael Munday | 33267e0 | 2016-05-11 12:29:03 -0400 | [diff] [blame] | 159 | type Msghdr struct { |
| 160 | Name *byte |
| 161 | Namelen uint32 |
Michael Munday | 33267e0 | 2016-05-11 12:29:03 -0400 | [diff] [blame] | 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 | |
Matt Layher | 8946682 | 2021-08-09 16:32:58 -0400 | [diff] [blame] | 176 | type ifreq struct { |
| 177 | Ifrn [16]byte |
| 178 | Ifru [24]byte |
| 179 | } |
| 180 | |
Michael Munday | 33267e0 | 2016-05-11 12:29:03 -0400 | [diff] [blame] | 181 | const ( |
Tom Thorogood | 9665404 | 2021-05-30 22:21:48 +0930 | [diff] [blame] | 182 | SizeofSockaddrNFCLLCP = 0x60 |
| 183 | SizeofIovec = 0x10 |
| 184 | SizeofMsghdr = 0x38 |
| 185 | SizeofCmsghdr = 0x10 |
Michael Munday | 33267e0 | 2016-05-11 12:29:03 -0400 | [diff] [blame] | 186 | ) |
| 187 | |
| 188 | const ( |
Johan Jansson | 5d559ad | 2020-02-28 00:39:38 +0200 | [diff] [blame] | 189 | SizeofSockFprog = 0x10 |
Michael Munday | 33267e0 | 2016-05-11 12:29:03 -0400 | [diff] [blame] | 190 | ) |
| 191 | |
Michael Munday | 33267e0 | 2016-05-11 12:29:03 -0400 | [diff] [blame] | 192 | type PtraceRegs struct { |
| 193 | Psw PtracePsw |
| 194 | Gprs [16]uint64 |
| 195 | Acrs [16]uint32 |
| 196 | Orig_gpr2 uint64 |
| 197 | Fp_regs PtraceFpregs |
| 198 | Per_info PtracePer |
| 199 | Ieee_instruction_pointer uint64 |
| 200 | } |
| 201 | |
| 202 | type PtracePsw struct { |
| 203 | Mask uint64 |
| 204 | Addr uint64 |
| 205 | } |
| 206 | |
| 207 | type PtraceFpregs struct { |
| 208 | Fpc uint32 |
Michael Munday | 33267e0 | 2016-05-11 12:29:03 -0400 | [diff] [blame] | 209 | Fprs [16]float64 |
| 210 | } |
| 211 | |
| 212 | type PtracePer struct { |
Tobias Klauser | f242548 | 2022-02-19 15:30:37 +0100 | [diff] [blame] | 213 | Control_regs [3]uint64 |
| 214 | _ [8]byte |
Michael Munday | 33267e0 | 2016-05-11 12:29:03 -0400 | [diff] [blame] | 215 | Starting_addr uint64 |
| 216 | Ending_addr uint64 |
| 217 | Perc_atmid uint16 |
Michael Munday | 33267e0 | 2016-05-11 12:29:03 -0400 | [diff] [blame] | 218 | Address uint64 |
| 219 | Access_id uint8 |
| 220 | _ [7]byte |
| 221 | } |
| 222 | |
| 223 | type FdSet struct { |
| 224 | Bits [16]int64 |
| 225 | } |
| 226 | |
| 227 | type Sysinfo_t struct { |
| 228 | Uptime int64 |
| 229 | Loads [3]uint64 |
| 230 | Totalram uint64 |
| 231 | Freeram uint64 |
| 232 | Sharedram uint64 |
| 233 | Bufferram uint64 |
| 234 | Totalswap uint64 |
| 235 | Freeswap uint64 |
| 236 | Procs uint16 |
| 237 | Pad uint16 |
Michael Munday | 33267e0 | 2016-05-11 12:29:03 -0400 | [diff] [blame] | 238 | Totalhigh uint64 |
| 239 | Freehigh uint64 |
| 240 | Unit uint32 |
| 241 | _ [0]int8 |
| 242 | _ [4]byte |
| 243 | } |
| 244 | |
Michael Munday | 33267e0 | 2016-05-11 12:29:03 -0400 | [diff] [blame] | 245 | type Ustat_t struct { |
| 246 | Tfree int32 |
Michael Munday | 33267e0 | 2016-05-11 12:29:03 -0400 | [diff] [blame] | 247 | Tinode uint64 |
| 248 | Fname [6]int8 |
| 249 | Fpack [6]int8 |
| 250 | _ [4]byte |
| 251 | } |
| 252 | |
| 253 | type EpollEvent struct { |
| 254 | Events uint32 |
| 255 | _ int32 |
| 256 | Fd int32 |
| 257 | Pad int32 |
| 258 | } |
| 259 | |
| 260 | const ( |
Eric Lagergren | 6acee93 | 2022-04-03 11:18:00 -0700 | [diff] [blame] | 261 | OPEN_TREE_CLOEXEC = 0x80000 |
| 262 | ) |
| 263 | |
| 264 | const ( |
kortschak | 7f918dd | 2016-06-02 17:41:10 +0930 | [diff] [blame] | 265 | POLLRDHUP = 0x2000 |
kortschak | 7f918dd | 2016-06-02 17:41:10 +0930 | [diff] [blame] | 266 | ) |
| 267 | |
kortschak | 5a8c7f2 | 2016-06-14 14:28:28 +0930 | [diff] [blame] | 268 | type Sigset_t struct { |
Tobias Klauser | b126b21 | 2018-04-16 12:06:24 +0200 | [diff] [blame] | 269 | Val [16]uint64 |
kortschak | 5a8c7f2 | 2016-06-14 14:28:28 +0930 | [diff] [blame] | 270 | } |
| 271 | |
Yuval Pavel Zholkover | adf421d | 2019-05-25 19:31:25 +0300 | [diff] [blame] | 272 | const _C__NSIG = 0x41 |
| 273 | |
Matt Layher | a9b59b0 | 2022-03-18 09:50:32 -0400 | [diff] [blame] | 274 | type Siginfo struct { |
| 275 | Signo int32 |
| 276 | Errno int32 |
| 277 | Code int32 |
| 278 | _ int32 |
| 279 | _ [112]byte |
| 280 | } |
| 281 | |
Michael Munday | 33267e0 | 2016-05-11 12:29:03 -0400 | [diff] [blame] | 282 | type Termios struct { |
| 283 | Iflag uint32 |
| 284 | Oflag uint32 |
| 285 | Cflag uint32 |
| 286 | Lflag uint32 |
| 287 | Line uint8 |
| 288 | Cc [19]uint8 |
| 289 | Ispeed uint32 |
| 290 | Ospeed uint32 |
| 291 | } |
Tobias Klauser | cd2c276 | 2017-07-17 12:05:24 +0200 | [diff] [blame] | 292 | |
Matt Layher | 22e23b7 | 2017-08-25 11:04:33 -0400 | [diff] [blame] | 293 | type Taskstats struct { |
| 294 | Version uint16 |
Matt Layher | 22e23b7 | 2017-08-25 11:04:33 -0400 | [diff] [blame] | 295 | Ac_exitcode uint32 |
| 296 | Ac_flag uint8 |
| 297 | Ac_nice uint8 |
Matt Layher | 22e23b7 | 2017-08-25 11:04:33 -0400 | [diff] [blame] | 298 | Cpu_count uint64 |
| 299 | Cpu_delay_total uint64 |
| 300 | Blkio_count uint64 |
| 301 | Blkio_delay_total uint64 |
| 302 | Swapin_count uint64 |
| 303 | Swapin_delay_total uint64 |
| 304 | Cpu_run_real_total uint64 |
| 305 | Cpu_run_virtual_total uint64 |
| 306 | Ac_comm [32]int8 |
| 307 | Ac_sched uint8 |
| 308 | Ac_pad [3]uint8 |
| 309 | _ [4]byte |
| 310 | Ac_uid uint32 |
| 311 | Ac_gid uint32 |
| 312 | Ac_pid uint32 |
| 313 | Ac_ppid uint32 |
| 314 | Ac_btime uint32 |
Matt Layher | 22e23b7 | 2017-08-25 11:04:33 -0400 | [diff] [blame] | 315 | Ac_etime uint64 |
| 316 | Ac_utime uint64 |
| 317 | Ac_stime uint64 |
| 318 | Ac_minflt uint64 |
| 319 | Ac_majflt uint64 |
| 320 | Coremem uint64 |
| 321 | Virtmem uint64 |
| 322 | Hiwater_rss uint64 |
| 323 | Hiwater_vm uint64 |
| 324 | Read_char uint64 |
| 325 | Write_char uint64 |
| 326 | Read_syscalls uint64 |
| 327 | Write_syscalls uint64 |
| 328 | Read_bytes uint64 |
| 329 | Write_bytes uint64 |
| 330 | Cancelled_write_bytes uint64 |
| 331 | Nvcsw uint64 |
| 332 | Nivcsw uint64 |
| 333 | Ac_utimescaled uint64 |
| 334 | Ac_stimescaled uint64 |
| 335 | Cpu_scaled_run_real_total uint64 |
| 336 | Freepages_count uint64 |
| 337 | Freepages_delay_total uint64 |
Tobias Klauser | 82a175f | 2019-01-02 10:32:50 +0100 | [diff] [blame] | 338 | Thrashing_count uint64 |
| 339 | Thrashing_delay_total uint64 |
Tobias Klauser | c3d8025 | 2020-03-31 13:15:04 +0200 | [diff] [blame] | 340 | Ac_btime64 uint64 |
Tobias Klauser | 3f8b815 | 2022-04-06 09:35:20 +0200 | [diff] [blame] | 341 | Compact_count uint64 |
| 342 | Compact_delay_total uint64 |
Matt Layher | 22e23b7 | 2017-08-25 11:04:33 -0400 | [diff] [blame] | 343 | } |
Matt Layher | 2d6f6f8 | 2017-08-25 14:47:02 -0400 | [diff] [blame] | 344 | |
Tobias Klauser | 12d9d5b | 2018-01-02 15:27:15 +0100 | [diff] [blame] | 345 | type cpuMask uint64 |
| 346 | |
| 347 | const ( |
Johan Jansson | 5d559ad | 2020-02-28 00:39:38 +0200 | [diff] [blame] | 348 | _NCPUBITS = 0x40 |
Adam Sindelar | 2f57af4 | 2018-04-09 13:02:03 +0200 | [diff] [blame] | 349 | ) |
| 350 | |
Adam Sindelar | f6f3529 | 2018-04-11 13:57:14 +0200 | [diff] [blame] | 351 | const ( |
| 352 | CBitFieldMaskBit0 = 0x8000000000000000 |
| 353 | CBitFieldMaskBit1 = 0x4000000000000000 |
| 354 | CBitFieldMaskBit2 = 0x2000000000000000 |
| 355 | CBitFieldMaskBit3 = 0x1000000000000000 |
| 356 | CBitFieldMaskBit4 = 0x800000000000000 |
| 357 | CBitFieldMaskBit5 = 0x400000000000000 |
| 358 | CBitFieldMaskBit6 = 0x200000000000000 |
| 359 | CBitFieldMaskBit7 = 0x100000000000000 |
| 360 | CBitFieldMaskBit8 = 0x80000000000000 |
| 361 | CBitFieldMaskBit9 = 0x40000000000000 |
| 362 | CBitFieldMaskBit10 = 0x20000000000000 |
| 363 | CBitFieldMaskBit11 = 0x10000000000000 |
| 364 | CBitFieldMaskBit12 = 0x8000000000000 |
| 365 | CBitFieldMaskBit13 = 0x4000000000000 |
| 366 | CBitFieldMaskBit14 = 0x2000000000000 |
| 367 | CBitFieldMaskBit15 = 0x1000000000000 |
| 368 | CBitFieldMaskBit16 = 0x800000000000 |
| 369 | CBitFieldMaskBit17 = 0x400000000000 |
| 370 | CBitFieldMaskBit18 = 0x200000000000 |
| 371 | CBitFieldMaskBit19 = 0x100000000000 |
| 372 | CBitFieldMaskBit20 = 0x80000000000 |
| 373 | CBitFieldMaskBit21 = 0x40000000000 |
| 374 | CBitFieldMaskBit22 = 0x20000000000 |
| 375 | CBitFieldMaskBit23 = 0x10000000000 |
| 376 | CBitFieldMaskBit24 = 0x8000000000 |
| 377 | CBitFieldMaskBit25 = 0x4000000000 |
| 378 | CBitFieldMaskBit26 = 0x2000000000 |
| 379 | CBitFieldMaskBit27 = 0x1000000000 |
| 380 | CBitFieldMaskBit28 = 0x800000000 |
| 381 | CBitFieldMaskBit29 = 0x400000000 |
| 382 | CBitFieldMaskBit30 = 0x200000000 |
| 383 | CBitFieldMaskBit31 = 0x100000000 |
| 384 | CBitFieldMaskBit32 = 0x80000000 |
| 385 | CBitFieldMaskBit33 = 0x40000000 |
| 386 | CBitFieldMaskBit34 = 0x20000000 |
| 387 | CBitFieldMaskBit35 = 0x10000000 |
| 388 | CBitFieldMaskBit36 = 0x8000000 |
| 389 | CBitFieldMaskBit37 = 0x4000000 |
| 390 | CBitFieldMaskBit38 = 0x2000000 |
| 391 | CBitFieldMaskBit39 = 0x1000000 |
| 392 | CBitFieldMaskBit40 = 0x800000 |
| 393 | CBitFieldMaskBit41 = 0x400000 |
| 394 | CBitFieldMaskBit42 = 0x200000 |
| 395 | CBitFieldMaskBit43 = 0x100000 |
| 396 | CBitFieldMaskBit44 = 0x80000 |
| 397 | CBitFieldMaskBit45 = 0x40000 |
| 398 | CBitFieldMaskBit46 = 0x20000 |
| 399 | CBitFieldMaskBit47 = 0x10000 |
| 400 | CBitFieldMaskBit48 = 0x8000 |
| 401 | CBitFieldMaskBit49 = 0x4000 |
| 402 | CBitFieldMaskBit50 = 0x2000 |
| 403 | CBitFieldMaskBit51 = 0x1000 |
| 404 | CBitFieldMaskBit52 = 0x800 |
| 405 | CBitFieldMaskBit53 = 0x400 |
| 406 | CBitFieldMaskBit54 = 0x200 |
| 407 | CBitFieldMaskBit55 = 0x100 |
| 408 | CBitFieldMaskBit56 = 0x80 |
| 409 | CBitFieldMaskBit57 = 0x40 |
| 410 | CBitFieldMaskBit58 = 0x20 |
| 411 | CBitFieldMaskBit59 = 0x10 |
| 412 | CBitFieldMaskBit60 = 0x8 |
| 413 | CBitFieldMaskBit61 = 0x4 |
| 414 | CBitFieldMaskBit62 = 0x2 |
| 415 | CBitFieldMaskBit63 = 0x1 |
| 416 | ) |
Matt Layher | 9b00609 | 2018-04-18 13:57:21 -0400 | [diff] [blame] | 417 | |
| 418 | type SockaddrStorage struct { |
| 419 | Family uint16 |
| 420 | _ [118]int8 |
| 421 | _ uint64 |
| 422 | } |
| 423 | |
Matt Layher | 79b0c68 | 2018-04-18 17:20:05 -0400 | [diff] [blame] | 424 | type HDGeometry struct { |
| 425 | Heads uint8 |
| 426 | Sectors uint8 |
| 427 | Cylinders uint16 |
Matt Layher | 79b0c68 | 2018-04-18 17:20:05 -0400 | [diff] [blame] | 428 | Start uint64 |
| 429 | } |
| 430 | |
Tobias Klauser | 9950ad1 | 2018-05-11 10:07:35 +0200 | [diff] [blame] | 431 | type Statfs_t struct { |
| 432 | Type uint32 |
| 433 | Bsize uint32 |
| 434 | Blocks uint64 |
| 435 | Bfree uint64 |
| 436 | Bavail uint64 |
| 437 | Files uint64 |
| 438 | Ffree uint64 |
| 439 | Fsid Fsid |
| 440 | Namelen uint32 |
| 441 | Frsize uint32 |
| 442 | Flags uint32 |
| 443 | Spare [4]uint32 |
| 444 | _ [4]byte |
| 445 | } |
| 446 | |
Tobias Klauser | 7c87d13 | 2018-05-14 09:31:37 +0200 | [diff] [blame] | 447 | type TpacketHdr struct { |
| 448 | Status uint64 |
| 449 | Len uint32 |
| 450 | Snaplen uint32 |
| 451 | Mac uint16 |
| 452 | Net uint16 |
| 453 | Sec uint32 |
| 454 | Usec uint32 |
| 455 | _ [4]byte |
| 456 | } |
| 457 | |
Tobias Klauser | 7c87d13 | 2018-05-14 09:31:37 +0200 | [diff] [blame] | 458 | const ( |
Johan Jansson | 5d559ad | 2020-02-28 00:39:38 +0200 | [diff] [blame] | 459 | SizeofTpacketHdr = 0x20 |
Tobias Klauser | 7c87d13 | 2018-05-14 09:31:37 +0200 | [diff] [blame] | 460 | ) |
| 461 | |
Michael Stapelberg | 56ede36 | 2018-06-13 17:50:41 +0200 | [diff] [blame] | 462 | type RTCPLLInfo struct { |
| 463 | Ctrl int32 |
| 464 | Value int32 |
| 465 | Max int32 |
| 466 | Min int32 |
| 467 | Posmult int32 |
| 468 | Negmult int32 |
| 469 | Clock int64 |
| 470 | } |
Brad Fitzpatrick | e3f9388 | 2018-07-24 17:16:09 +0000 | [diff] [blame] | 471 | |
Brad Fitzpatrick | e3f9388 | 2018-07-24 17:16:09 +0000 | [diff] [blame] | 472 | type BlkpgPartition struct { |
| 473 | Start int64 |
| 474 | Length int64 |
| 475 | Pno int32 |
| 476 | Devname [64]uint8 |
| 477 | Volname [64]uint8 |
| 478 | _ [4]byte |
| 479 | } |
| 480 | |
| 481 | const ( |
Johan Jansson | 5d559ad | 2020-02-28 00:39:38 +0200 | [diff] [blame] | 482 | BLKPG = 0x1269 |
Brad Fitzpatrick | e3f9388 | 2018-07-24 17:16:09 +0000 | [diff] [blame] | 483 | ) |
Casey Callendrello | 3dc4335 | 2018-07-17 22:24:21 +0200 | [diff] [blame] | 484 | |
Matt Layher | d47a0f3 | 2018-09-21 12:08:21 -0400 | [diff] [blame] | 485 | type XDPUmemReg struct { |
| 486 | Addr uint64 |
| 487 | Len uint64 |
| 488 | Size uint32 |
| 489 | Headroom uint32 |
Matt Layher | 8a8471f | 2019-11-25 12:02:17 -0500 | [diff] [blame] | 490 | Flags uint32 |
| 491 | _ [4]byte |
Matt Layher | d47a0f3 | 2018-09-21 12:08:21 -0400 | [diff] [blame] | 492 | } |
| 493 | |
Matt Layher | 18eb32c | 2019-04-24 13:45:03 -0400 | [diff] [blame] | 494 | type CryptoUserAlg struct { |
| 495 | Name [64]int8 |
| 496 | Driver_name [64]int8 |
| 497 | Module_name [64]int8 |
| 498 | Type uint32 |
| 499 | Mask uint32 |
| 500 | Refcnt uint32 |
| 501 | Flags uint32 |
| 502 | } |
| 503 | |
| 504 | type CryptoStatAEAD struct { |
| 505 | Type [64]int8 |
| 506 | Encrypt_cnt uint64 |
| 507 | Encrypt_tlen uint64 |
| 508 | Decrypt_cnt uint64 |
| 509 | Decrypt_tlen uint64 |
| 510 | Err_cnt uint64 |
| 511 | } |
| 512 | |
| 513 | type CryptoStatAKCipher struct { |
| 514 | Type [64]int8 |
| 515 | Encrypt_cnt uint64 |
| 516 | Encrypt_tlen uint64 |
| 517 | Decrypt_cnt uint64 |
| 518 | Decrypt_tlen uint64 |
| 519 | Verify_cnt uint64 |
| 520 | Sign_cnt uint64 |
| 521 | Err_cnt uint64 |
| 522 | } |
| 523 | |
| 524 | type CryptoStatCipher struct { |
| 525 | Type [64]int8 |
| 526 | Encrypt_cnt uint64 |
| 527 | Encrypt_tlen uint64 |
| 528 | Decrypt_cnt uint64 |
| 529 | Decrypt_tlen uint64 |
| 530 | Err_cnt uint64 |
| 531 | } |
| 532 | |
| 533 | type CryptoStatCompress struct { |
| 534 | Type [64]int8 |
| 535 | Compress_cnt uint64 |
| 536 | Compress_tlen uint64 |
| 537 | Decompress_cnt uint64 |
| 538 | Decompress_tlen uint64 |
| 539 | Err_cnt uint64 |
| 540 | } |
| 541 | |
| 542 | type CryptoStatHash struct { |
| 543 | Type [64]int8 |
| 544 | Hash_cnt uint64 |
| 545 | Hash_tlen uint64 |
| 546 | Err_cnt uint64 |
| 547 | } |
| 548 | |
| 549 | type CryptoStatKPP struct { |
| 550 | Type [64]int8 |
| 551 | Setsecret_cnt uint64 |
| 552 | Generate_public_key_cnt uint64 |
| 553 | Compute_shared_secret_cnt uint64 |
| 554 | Err_cnt uint64 |
| 555 | } |
| 556 | |
| 557 | type CryptoStatRNG struct { |
| 558 | Type [64]int8 |
| 559 | Generate_cnt uint64 |
| 560 | Generate_tlen uint64 |
| 561 | Seed_cnt uint64 |
| 562 | Err_cnt uint64 |
| 563 | } |
| 564 | |
| 565 | type CryptoStatLarval struct { |
| 566 | Type [64]int8 |
| 567 | } |
| 568 | |
| 569 | type CryptoReportLarval struct { |
| 570 | Type [64]int8 |
| 571 | } |
| 572 | |
| 573 | type CryptoReportHash struct { |
| 574 | Type [64]int8 |
| 575 | Blocksize uint32 |
| 576 | Digestsize uint32 |
| 577 | } |
| 578 | |
| 579 | type CryptoReportCipher struct { |
| 580 | Type [64]int8 |
| 581 | Blocksize uint32 |
| 582 | Min_keysize uint32 |
| 583 | Max_keysize uint32 |
| 584 | } |
| 585 | |
| 586 | type CryptoReportBlkCipher struct { |
| 587 | Type [64]int8 |
| 588 | Geniv [64]int8 |
| 589 | Blocksize uint32 |
| 590 | Min_keysize uint32 |
| 591 | Max_keysize uint32 |
| 592 | Ivsize uint32 |
| 593 | } |
| 594 | |
| 595 | type CryptoReportAEAD struct { |
| 596 | Type [64]int8 |
| 597 | Geniv [64]int8 |
| 598 | Blocksize uint32 |
| 599 | Maxauthsize uint32 |
| 600 | Ivsize uint32 |
| 601 | } |
| 602 | |
| 603 | type CryptoReportComp struct { |
| 604 | Type [64]int8 |
| 605 | } |
| 606 | |
| 607 | type CryptoReportRNG struct { |
| 608 | Type [64]int8 |
| 609 | Seedsize uint32 |
| 610 | } |
| 611 | |
| 612 | type CryptoReportAKCipher struct { |
| 613 | Type [64]int8 |
| 614 | } |
| 615 | |
| 616 | type CryptoReportKPP struct { |
| 617 | Type [64]int8 |
| 618 | } |
| 619 | |
| 620 | type CryptoReportAcomp struct { |
| 621 | Type [64]int8 |
| 622 | } |
Lehner Florian | 12bbe5a | 2019-05-03 11:38:26 +0200 | [diff] [blame] | 623 | |
Tobias Klauser | fae7ac5 | 2019-07-11 11:16:12 +0200 | [diff] [blame] | 624 | type LoopInfo struct { |
| 625 | Number int32 |
| 626 | Device uint16 |
| 627 | Inode uint64 |
| 628 | Rdevice uint16 |
| 629 | Offset int32 |
| 630 | Encrypt_type int32 |
| 631 | Encrypt_key_size int32 |
| 632 | Flags int32 |
| 633 | Name [64]int8 |
| 634 | Encrypt_key [32]uint8 |
| 635 | Init [2]uint64 |
| 636 | Reserved [4]int8 |
| 637 | _ [4]byte |
| 638 | } |
Matt Layher | 43c0116 | 2019-07-29 14:45:48 -0400 | [diff] [blame] | 639 | |
| 640 | type TIPCSubscr struct { |
| 641 | Seq TIPCServiceRange |
| 642 | Timeout uint32 |
| 643 | Filter uint32 |
| 644 | Handle [8]int8 |
| 645 | } |
| 646 | |
Matt Layher | 43c0116 | 2019-07-29 14:45:48 -0400 | [diff] [blame] | 647 | type TIPCSIOCLNReq struct { |
| 648 | Peer uint32 |
| 649 | Id uint32 |
| 650 | Linkname [68]int8 |
| 651 | } |
| 652 | |
| 653 | type TIPCSIOCNodeIDReq struct { |
| 654 | Peer uint32 |
| 655 | Id [16]int8 |
| 656 | } |
Ben Cartwright-Cox | 0fcbb8f | 2020-10-27 12:50:27 +0000 | [diff] [blame] | 657 | |
| 658 | type PPSKInfo struct { |
| 659 | Assert_sequence uint32 |
| 660 | Clear_sequence uint32 |
| 661 | Assert_tu PPSKTime |
| 662 | Clear_tu PPSKTime |
| 663 | Current_mode int32 |
| 664 | _ [4]byte |
| 665 | } |
| 666 | |
| 667 | const ( |
| 668 | PPS_GETPARAMS = 0x800870a1 |
| 669 | PPS_SETPARAMS = 0x400870a2 |
| 670 | PPS_GETCAP = 0x800870a3 |
| 671 | PPS_FETCH = 0xc00870a4 |
| 672 | ) |
Lorenz Bauer | 528a39c | 2021-09-08 10:09:57 +0100 | [diff] [blame] | 673 | |
| 674 | const ( |
| 675 | PIDFD_NONBLOCK = 0x800 |
| 676 | ) |
Dustin Spicuzza | 969570c | 2021-09-30 14:11:05 +0000 | [diff] [blame] | 677 | |
| 678 | type SysvIpcPerm struct { |
| 679 | Key int32 |
| 680 | Uid uint32 |
| 681 | Gid uint32 |
| 682 | Cuid uint32 |
| 683 | Cgid uint32 |
| 684 | Mode uint32 |
| 685 | _ uint16 |
| 686 | Seq uint16 |
| 687 | _ uint64 |
| 688 | _ uint64 |
| 689 | } |
| 690 | type SysvShmDesc struct { |
| 691 | Perm SysvIpcPerm |
| 692 | Segsz uint64 |
| 693 | Atime int64 |
| 694 | Dtime int64 |
| 695 | Ctime int64 |
| 696 | Cpid int32 |
| 697 | Lpid int32 |
| 698 | Nattch uint64 |
| 699 | _ uint64 |
| 700 | _ uint64 |
| 701 | } |