Clayton Townsend II | e052cef | 2022-07-22 08:59:55 -0500 | [diff] [blame] | 1 | // cgo -godefs -objdir=/tmp/mipsle/cgo -- -Wall -Werror -static -I/tmp/mipsle/include 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 mipsle && linux |
Vladimir Stefanovic | 478fcf5 | 2016-12-05 16:46:50 +0100 | [diff] [blame] | 5 | |
| 6 | package unix |
| 7 | |
| 8 | const ( |
Johan Jansson | 5d559ad | 2020-02-28 00:39:38 +0200 | [diff] [blame] | 9 | SizeofPtr = 0x4 |
| 10 | SizeofLong = 0x4 |
Vladimir Stefanovic | 478fcf5 | 2016-12-05 16:46:50 +0100 | [diff] [blame] | 11 | ) |
| 12 | |
| 13 | type ( |
Johan Jansson | 5d559ad | 2020-02-28 00:39:38 +0200 | [diff] [blame] | 14 | _C_long int32 |
Vladimir Stefanovic | 478fcf5 | 2016-12-05 16:46:50 +0100 | [diff] [blame] | 15 | ) |
| 16 | |
| 17 | type Timespec struct { |
| 18 | Sec int32 |
| 19 | Nsec int32 |
| 20 | } |
| 21 | |
| 22 | type Timeval struct { |
| 23 | Sec int32 |
| 24 | Usec int32 |
| 25 | } |
| 26 | |
| 27 | type Timex struct { |
| 28 | Modes uint32 |
| 29 | Offset int32 |
| 30 | Freq int32 |
| 31 | Maxerror int32 |
| 32 | Esterror int32 |
| 33 | Status int32 |
| 34 | Constant int32 |
| 35 | Precision int32 |
| 36 | Tolerance int32 |
| 37 | Time Timeval |
| 38 | Tick int32 |
| 39 | Ppsfreq int32 |
| 40 | Jitter int32 |
| 41 | Shift int32 |
| 42 | Stabil int32 |
| 43 | Jitcnt int32 |
| 44 | Calcnt int32 |
| 45 | Errcnt int32 |
| 46 | Stbcnt int32 |
| 47 | Tai int32 |
Garret Kelly | af9a212 | 2018-01-24 11:33:53 -0500 | [diff] [blame] | 48 | _ [44]byte |
Vladimir Stefanovic | 478fcf5 | 2016-12-05 16:46:50 +0100 | [diff] [blame] | 49 | } |
| 50 | |
| 51 | type Time_t int32 |
| 52 | |
| 53 | type Tms struct { |
| 54 | Utime int32 |
| 55 | Stime int32 |
| 56 | Cutime int32 |
| 57 | Cstime int32 |
| 58 | } |
| 59 | |
| 60 | type Utimbuf struct { |
| 61 | Actime int32 |
| 62 | Modtime int32 |
| 63 | } |
| 64 | |
| 65 | type Rusage struct { |
| 66 | Utime Timeval |
| 67 | Stime Timeval |
| 68 | Maxrss int32 |
| 69 | Ixrss int32 |
| 70 | Idrss int32 |
| 71 | Isrss int32 |
| 72 | Minflt int32 |
| 73 | Majflt int32 |
| 74 | Nswap int32 |
| 75 | Inblock int32 |
| 76 | Oublock int32 |
| 77 | Msgsnd int32 |
| 78 | Msgrcv int32 |
| 79 | Nsignals int32 |
| 80 | Nvcsw int32 |
| 81 | Nivcsw int32 |
| 82 | } |
| 83 | |
Vladimir Stefanovic | 478fcf5 | 2016-12-05 16:46:50 +0100 | [diff] [blame] | 84 | type Stat_t struct { |
| 85 | Dev uint32 |
| 86 | Pad1 [3]int32 |
| 87 | Ino uint64 |
| 88 | Mode uint32 |
| 89 | Nlink uint32 |
| 90 | Uid uint32 |
| 91 | Gid uint32 |
| 92 | Rdev uint32 |
| 93 | Pad2 [3]int32 |
| 94 | Size int64 |
| 95 | Atim Timespec |
| 96 | Mtim Timespec |
| 97 | Ctim Timespec |
| 98 | Blksize int32 |
| 99 | Pad4 int32 |
| 100 | Blocks int64 |
| 101 | Pad5 [14]int32 |
| 102 | } |
| 103 | |
Vladimir Stefanovic | 478fcf5 | 2016-12-05 16:46:50 +0100 | [diff] [blame] | 104 | type Dirent struct { |
Garret Kelly | af9a212 | 2018-01-24 11:33:53 -0500 | [diff] [blame] | 105 | Ino uint64 |
| 106 | Off int64 |
| 107 | Reclen uint16 |
| 108 | Type uint8 |
| 109 | Name [256]int8 |
| 110 | _ [5]byte |
Vladimir Stefanovic | 478fcf5 | 2016-12-05 16:46:50 +0100 | [diff] [blame] | 111 | } |
| 112 | |
Vladimir Stefanovic | 478fcf5 | 2016-12-05 16:46:50 +0100 | [diff] [blame] | 113 | type Flock_t struct { |
Garret Kelly | af9a212 | 2018-01-24 11:33:53 -0500 | [diff] [blame] | 114 | Type int16 |
| 115 | Whence int16 |
| 116 | _ [4]byte |
| 117 | Start int64 |
| 118 | Len int64 |
| 119 | Pid int32 |
| 120 | _ [4]byte |
Vladimir Stefanovic | 478fcf5 | 2016-12-05 16:46:50 +0100 | [diff] [blame] | 121 | } |
| 122 | |
Anatol Pomozov | 3d37ad5 | 2020-08-01 13:08:58 -0700 | [diff] [blame] | 123 | type DmNameList struct { |
| 124 | Dev uint64 |
| 125 | Next uint32 |
| 126 | Name [0]byte |
| 127 | _ [4]byte |
| 128 | } |
| 129 | |
Vladimir Stefanovic | 478fcf5 | 2016-12-05 16:46:50 +0100 | [diff] [blame] | 130 | const ( |
Johan Jansson | 5d559ad | 2020-02-28 00:39:38 +0200 | [diff] [blame] | 131 | FADV_DONTNEED = 0x4 |
| 132 | FADV_NOREUSE = 0x5 |
Vladimir Stefanovic | 478fcf5 | 2016-12-05 16:46:50 +0100 | [diff] [blame] | 133 | ) |
| 134 | |
Tom Thorogood | 9665404 | 2021-05-30 22:21:48 +0930 | [diff] [blame] | 135 | type RawSockaddrNFCLLCP struct { |
| 136 | Sa_family uint16 |
| 137 | Dev_idx uint32 |
| 138 | Target_idx uint32 |
| 139 | Nfc_protocol uint32 |
| 140 | Dsap uint8 |
| 141 | Ssap uint8 |
| 142 | Service_name [63]uint8 |
| 143 | Service_name_len uint32 |
| 144 | } |
| 145 | |
Vladimir Stefanovic | 478fcf5 | 2016-12-05 16:46:50 +0100 | [diff] [blame] | 146 | type RawSockaddr struct { |
| 147 | Family uint16 |
| 148 | Data [14]int8 |
| 149 | } |
| 150 | |
| 151 | type RawSockaddrAny struct { |
| 152 | Addr RawSockaddr |
| 153 | Pad [96]int8 |
| 154 | } |
| 155 | |
Vladimir Stefanovic | 478fcf5 | 2016-12-05 16:46:50 +0100 | [diff] [blame] | 156 | type Iovec struct { |
| 157 | Base *byte |
| 158 | Len uint32 |
| 159 | } |
| 160 | |
Vladimir Stefanovic | 478fcf5 | 2016-12-05 16:46:50 +0100 | [diff] [blame] | 161 | type Msghdr struct { |
| 162 | Name *byte |
| 163 | Namelen uint32 |
| 164 | Iov *Iovec |
| 165 | Iovlen uint32 |
| 166 | Control *byte |
| 167 | Controllen uint32 |
| 168 | Flags int32 |
| 169 | } |
| 170 | |
| 171 | type Cmsghdr struct { |
| 172 | Len uint32 |
| 173 | Level int32 |
| 174 | Type int32 |
| 175 | } |
| 176 | |
Matt Layher | 8946682 | 2021-08-09 16:32:58 -0400 | [diff] [blame] | 177 | type ifreq struct { |
| 178 | Ifrn [16]byte |
| 179 | Ifru [16]byte |
| 180 | } |
| 181 | |
Vladimir Stefanovic | 478fcf5 | 2016-12-05 16:46:50 +0100 | [diff] [blame] | 182 | const ( |
Tom Thorogood | 9665404 | 2021-05-30 22:21:48 +0930 | [diff] [blame] | 183 | SizeofSockaddrNFCLLCP = 0x58 |
| 184 | SizeofIovec = 0x8 |
| 185 | SizeofMsghdr = 0x1c |
| 186 | SizeofCmsghdr = 0xc |
Vladimir Stefanovic | 478fcf5 | 2016-12-05 16:46:50 +0100 | [diff] [blame] | 187 | ) |
| 188 | |
| 189 | const ( |
Johan Jansson | 5d559ad | 2020-02-28 00:39:38 +0200 | [diff] [blame] | 190 | SizeofSockFprog = 0x8 |
Vladimir Stefanovic | 478fcf5 | 2016-12-05 16:46:50 +0100 | [diff] [blame] | 191 | ) |
| 192 | |
Vladimir Stefanovic | 478fcf5 | 2016-12-05 16:46:50 +0100 | [diff] [blame] | 193 | type PtraceRegs struct { |
James Cowgill | 156c5a2 | 2017-05-12 16:43:35 +0100 | [diff] [blame] | 194 | Regs [32]uint64 |
| 195 | Lo uint64 |
| 196 | Hi uint64 |
| 197 | Epc uint64 |
| 198 | Badvaddr uint64 |
| 199 | Status uint64 |
| 200 | Cause uint64 |
Vladimir Stefanovic | 478fcf5 | 2016-12-05 16:46:50 +0100 | [diff] [blame] | 201 | } |
| 202 | |
Vladimir Stefanovic | 478fcf5 | 2016-12-05 16:46:50 +0100 | [diff] [blame] | 203 | type FdSet struct { |
| 204 | Bits [32]int32 |
| 205 | } |
| 206 | |
| 207 | type Sysinfo_t struct { |
| 208 | Uptime int32 |
| 209 | Loads [3]uint32 |
| 210 | Totalram uint32 |
| 211 | Freeram uint32 |
| 212 | Sharedram uint32 |
| 213 | Bufferram uint32 |
| 214 | Totalswap uint32 |
| 215 | Freeswap uint32 |
| 216 | Procs uint16 |
| 217 | Pad uint16 |
| 218 | Totalhigh uint32 |
| 219 | Freehigh uint32 |
| 220 | Unit uint32 |
Tobias Klauser | 2281fa9 | 2018-04-13 16:10:16 +0200 | [diff] [blame] | 221 | _ [8]int8 |
Vladimir Stefanovic | 478fcf5 | 2016-12-05 16:46:50 +0100 | [diff] [blame] | 222 | } |
| 223 | |
Vladimir Stefanovic | 478fcf5 | 2016-12-05 16:46:50 +0100 | [diff] [blame] | 224 | type Ustat_t struct { |
| 225 | Tfree int32 |
| 226 | Tinode uint32 |
| 227 | Fname [6]int8 |
| 228 | Fpack [6]int8 |
| 229 | } |
| 230 | |
| 231 | type EpollEvent struct { |
| 232 | Events uint32 |
| 233 | PadFd int32 |
| 234 | Fd int32 |
| 235 | Pad int32 |
| 236 | } |
| 237 | |
| 238 | const ( |
Eric Lagergren | 6acee93 | 2022-04-03 11:18:00 -0700 | [diff] [blame] | 239 | OPEN_TREE_CLOEXEC = 0x80000 |
| 240 | ) |
| 241 | |
| 242 | const ( |
Vladimir Stefanovic | 478fcf5 | 2016-12-05 16:46:50 +0100 | [diff] [blame] | 243 | POLLRDHUP = 0x2000 |
Vladimir Stefanovic | 478fcf5 | 2016-12-05 16:46:50 +0100 | [diff] [blame] | 244 | ) |
| 245 | |
| 246 | type Sigset_t struct { |
Tobias Klauser | b126b21 | 2018-04-16 12:06:24 +0200 | [diff] [blame] | 247 | Val [32]uint32 |
Vladimir Stefanovic | 478fcf5 | 2016-12-05 16:46:50 +0100 | [diff] [blame] | 248 | } |
| 249 | |
Yuval Pavel Zholkover | adf421d | 2019-05-25 19:31:25 +0300 | [diff] [blame] | 250 | const _C__NSIG = 0x80 |
| 251 | |
Lorenz Bauer | c57c793 | 2022-09-28 08:41:32 +0000 | [diff] [blame] | 252 | const ( |
| 253 | SIG_BLOCK = 0x1 |
| 254 | SIG_UNBLOCK = 0x2 |
| 255 | SIG_SETMASK = 0x3 |
| 256 | ) |
| 257 | |
Matt Layher | a9b59b0 | 2022-03-18 09:50:32 -0400 | [diff] [blame] | 258 | type Siginfo struct { |
| 259 | Signo int32 |
| 260 | Code int32 |
| 261 | Errno int32 |
| 262 | _ [116]byte |
| 263 | } |
| 264 | |
Vladimir Stefanovic | 478fcf5 | 2016-12-05 16:46:50 +0100 | [diff] [blame] | 265 | type Termios struct { |
| 266 | Iflag uint32 |
| 267 | Oflag uint32 |
| 268 | Cflag uint32 |
| 269 | Lflag uint32 |
| 270 | Line uint8 |
| 271 | Cc [23]uint8 |
| 272 | Ispeed uint32 |
| 273 | Ospeed uint32 |
| 274 | } |
Tobias Klauser | cd2c276 | 2017-07-17 12:05:24 +0200 | [diff] [blame] | 275 | |
Matt Layher | 22e23b7 | 2017-08-25 11:04:33 -0400 | [diff] [blame] | 276 | type Taskstats struct { |
| 277 | Version uint16 |
Matt Layher | 22e23b7 | 2017-08-25 11:04:33 -0400 | [diff] [blame] | 278 | Ac_exitcode uint32 |
| 279 | Ac_flag uint8 |
| 280 | Ac_nice uint8 |
Tobias Klauser | 97b4c2a | 2018-12-20 09:24:39 +0100 | [diff] [blame] | 281 | _ [4]byte |
Matt Layher | 22e23b7 | 2017-08-25 11:04:33 -0400 | [diff] [blame] | 282 | Cpu_count uint64 |
| 283 | Cpu_delay_total uint64 |
| 284 | Blkio_count uint64 |
| 285 | Blkio_delay_total uint64 |
| 286 | Swapin_count uint64 |
| 287 | Swapin_delay_total uint64 |
| 288 | Cpu_run_real_total uint64 |
| 289 | Cpu_run_virtual_total uint64 |
| 290 | Ac_comm [32]int8 |
| 291 | Ac_sched uint8 |
| 292 | Ac_pad [3]uint8 |
Garret Kelly | af9a212 | 2018-01-24 11:33:53 -0500 | [diff] [blame] | 293 | _ [4]byte |
Matt Layher | 22e23b7 | 2017-08-25 11:04:33 -0400 | [diff] [blame] | 294 | Ac_uid uint32 |
| 295 | Ac_gid uint32 |
| 296 | Ac_pid uint32 |
| 297 | Ac_ppid uint32 |
| 298 | Ac_btime uint32 |
Garret Kelly | af9a212 | 2018-01-24 11:33:53 -0500 | [diff] [blame] | 299 | _ [4]byte |
Matt Layher | 22e23b7 | 2017-08-25 11:04:33 -0400 | [diff] [blame] | 300 | Ac_etime uint64 |
| 301 | Ac_utime uint64 |
| 302 | Ac_stime uint64 |
| 303 | Ac_minflt uint64 |
| 304 | Ac_majflt uint64 |
| 305 | Coremem uint64 |
| 306 | Virtmem uint64 |
| 307 | Hiwater_rss uint64 |
| 308 | Hiwater_vm uint64 |
| 309 | Read_char uint64 |
| 310 | Write_char uint64 |
| 311 | Read_syscalls uint64 |
| 312 | Write_syscalls uint64 |
| 313 | Read_bytes uint64 |
| 314 | Write_bytes uint64 |
| 315 | Cancelled_write_bytes uint64 |
| 316 | Nvcsw uint64 |
| 317 | Nivcsw uint64 |
| 318 | Ac_utimescaled uint64 |
| 319 | Ac_stimescaled uint64 |
| 320 | Cpu_scaled_run_real_total uint64 |
| 321 | Freepages_count uint64 |
| 322 | Freepages_delay_total uint64 |
Tobias Klauser | 82a175f | 2019-01-02 10:32:50 +0100 | [diff] [blame] | 323 | Thrashing_count uint64 |
| 324 | Thrashing_delay_total uint64 |
Tobias Klauser | c3d8025 | 2020-03-31 13:15:04 +0200 | [diff] [blame] | 325 | Ac_btime64 uint64 |
Tobias Klauser | 3f8b815 | 2022-04-06 09:35:20 +0200 | [diff] [blame] | 326 | Compact_count uint64 |
| 327 | Compact_delay_total uint64 |
Tobias Klauser | af78867 | 2022-06-15 13:46:28 +0200 | [diff] [blame] | 328 | Ac_tgid uint32 |
| 329 | _ [4]byte |
| 330 | Ac_tgetime uint64 |
| 331 | Ac_exe_dev uint64 |
| 332 | Ac_exe_inode uint64 |
| 333 | Wpcopy_count uint64 |
| 334 | Wpcopy_delay_total uint64 |
Tobias Klauser | a1a9c4b | 2023-06-26 15:37:18 +0200 | [diff] [blame] | 335 | Irq_count uint64 |
| 336 | Irq_delay_total uint64 |
Matt Layher | 22e23b7 | 2017-08-25 11:04:33 -0400 | [diff] [blame] | 337 | } |
Matt Layher | 2d6f6f8 | 2017-08-25 14:47:02 -0400 | [diff] [blame] | 338 | |
Tobias Klauser | 12d9d5b | 2018-01-02 15:27:15 +0100 | [diff] [blame] | 339 | type cpuMask uint32 |
| 340 | |
| 341 | const ( |
Johan Jansson | 5d559ad | 2020-02-28 00:39:38 +0200 | [diff] [blame] | 342 | _NCPUBITS = 0x20 |
Adam Sindelar | 2f57af4 | 2018-04-09 13:02:03 +0200 | [diff] [blame] | 343 | ) |
| 344 | |
Adam Sindelar | f6f3529 | 2018-04-11 13:57:14 +0200 | [diff] [blame] | 345 | const ( |
| 346 | CBitFieldMaskBit0 = 0x1 |
| 347 | CBitFieldMaskBit1 = 0x2 |
| 348 | CBitFieldMaskBit2 = 0x4 |
| 349 | CBitFieldMaskBit3 = 0x8 |
| 350 | CBitFieldMaskBit4 = 0x10 |
| 351 | CBitFieldMaskBit5 = 0x20 |
| 352 | CBitFieldMaskBit6 = 0x40 |
| 353 | CBitFieldMaskBit7 = 0x80 |
| 354 | CBitFieldMaskBit8 = 0x100 |
| 355 | CBitFieldMaskBit9 = 0x200 |
| 356 | CBitFieldMaskBit10 = 0x400 |
| 357 | CBitFieldMaskBit11 = 0x800 |
| 358 | CBitFieldMaskBit12 = 0x1000 |
| 359 | CBitFieldMaskBit13 = 0x2000 |
| 360 | CBitFieldMaskBit14 = 0x4000 |
| 361 | CBitFieldMaskBit15 = 0x8000 |
| 362 | CBitFieldMaskBit16 = 0x10000 |
| 363 | CBitFieldMaskBit17 = 0x20000 |
| 364 | CBitFieldMaskBit18 = 0x40000 |
| 365 | CBitFieldMaskBit19 = 0x80000 |
| 366 | CBitFieldMaskBit20 = 0x100000 |
| 367 | CBitFieldMaskBit21 = 0x200000 |
| 368 | CBitFieldMaskBit22 = 0x400000 |
| 369 | CBitFieldMaskBit23 = 0x800000 |
| 370 | CBitFieldMaskBit24 = 0x1000000 |
| 371 | CBitFieldMaskBit25 = 0x2000000 |
| 372 | CBitFieldMaskBit26 = 0x4000000 |
| 373 | CBitFieldMaskBit27 = 0x8000000 |
| 374 | CBitFieldMaskBit28 = 0x10000000 |
| 375 | CBitFieldMaskBit29 = 0x20000000 |
| 376 | CBitFieldMaskBit30 = 0x40000000 |
| 377 | CBitFieldMaskBit31 = 0x80000000 |
| 378 | CBitFieldMaskBit32 = 0x100000000 |
| 379 | CBitFieldMaskBit33 = 0x200000000 |
| 380 | CBitFieldMaskBit34 = 0x400000000 |
| 381 | CBitFieldMaskBit35 = 0x800000000 |
| 382 | CBitFieldMaskBit36 = 0x1000000000 |
| 383 | CBitFieldMaskBit37 = 0x2000000000 |
| 384 | CBitFieldMaskBit38 = 0x4000000000 |
| 385 | CBitFieldMaskBit39 = 0x8000000000 |
| 386 | CBitFieldMaskBit40 = 0x10000000000 |
| 387 | CBitFieldMaskBit41 = 0x20000000000 |
| 388 | CBitFieldMaskBit42 = 0x40000000000 |
| 389 | CBitFieldMaskBit43 = 0x80000000000 |
| 390 | CBitFieldMaskBit44 = 0x100000000000 |
| 391 | CBitFieldMaskBit45 = 0x200000000000 |
| 392 | CBitFieldMaskBit46 = 0x400000000000 |
| 393 | CBitFieldMaskBit47 = 0x800000000000 |
| 394 | CBitFieldMaskBit48 = 0x1000000000000 |
| 395 | CBitFieldMaskBit49 = 0x2000000000000 |
| 396 | CBitFieldMaskBit50 = 0x4000000000000 |
| 397 | CBitFieldMaskBit51 = 0x8000000000000 |
| 398 | CBitFieldMaskBit52 = 0x10000000000000 |
| 399 | CBitFieldMaskBit53 = 0x20000000000000 |
| 400 | CBitFieldMaskBit54 = 0x40000000000000 |
| 401 | CBitFieldMaskBit55 = 0x80000000000000 |
| 402 | CBitFieldMaskBit56 = 0x100000000000000 |
| 403 | CBitFieldMaskBit57 = 0x200000000000000 |
| 404 | CBitFieldMaskBit58 = 0x400000000000000 |
| 405 | CBitFieldMaskBit59 = 0x800000000000000 |
| 406 | CBitFieldMaskBit60 = 0x1000000000000000 |
| 407 | CBitFieldMaskBit61 = 0x2000000000000000 |
| 408 | CBitFieldMaskBit62 = 0x4000000000000000 |
| 409 | CBitFieldMaskBit63 = 0x8000000000000000 |
| 410 | ) |
Matt Layher | 9b00609 | 2018-04-18 13:57:21 -0400 | [diff] [blame] | 411 | |
| 412 | type SockaddrStorage struct { |
| 413 | Family uint16 |
Tobias Klauser | 1470852 | 2023-03-02 16:17:12 +0100 | [diff] [blame] | 414 | Data [122]byte |
Matt Layher | 9b00609 | 2018-04-18 13:57:21 -0400 | [diff] [blame] | 415 | _ uint32 |
| 416 | } |
| 417 | |
Matt Layher | 79b0c68 | 2018-04-18 17:20:05 -0400 | [diff] [blame] | 418 | type HDGeometry struct { |
| 419 | Heads uint8 |
| 420 | Sectors uint8 |
| 421 | Cylinders uint16 |
| 422 | Start uint32 |
| 423 | } |
| 424 | |
Tobias Klauser | 9950ad1 | 2018-05-11 10:07:35 +0200 | [diff] [blame] | 425 | type Statfs_t struct { |
| 426 | Type int32 |
| 427 | Bsize int32 |
| 428 | Frsize int32 |
| 429 | _ [4]byte |
| 430 | Blocks uint64 |
| 431 | Bfree uint64 |
| 432 | Files uint64 |
| 433 | Ffree uint64 |
| 434 | Bavail uint64 |
| 435 | Fsid Fsid |
| 436 | Namelen int32 |
| 437 | Flags int32 |
| 438 | Spare [5]int32 |
| 439 | _ [4]byte |
| 440 | } |
| 441 | |
Tobias Klauser | 7c87d13 | 2018-05-14 09:31:37 +0200 | [diff] [blame] | 442 | type TpacketHdr struct { |
| 443 | Status uint32 |
| 444 | Len uint32 |
| 445 | Snaplen uint32 |
| 446 | Mac uint16 |
| 447 | Net uint16 |
| 448 | Sec uint32 |
| 449 | Usec uint32 |
| 450 | } |
| 451 | |
Tobias Klauser | 7c87d13 | 2018-05-14 09:31:37 +0200 | [diff] [blame] | 452 | const ( |
Johan Jansson | 5d559ad | 2020-02-28 00:39:38 +0200 | [diff] [blame] | 453 | SizeofTpacketHdr = 0x18 |
Tobias Klauser | 7c87d13 | 2018-05-14 09:31:37 +0200 | [diff] [blame] | 454 | ) |
| 455 | |
Michael Stapelberg | 56ede36 | 2018-06-13 17:50:41 +0200 | [diff] [blame] | 456 | type RTCPLLInfo struct { |
| 457 | Ctrl int32 |
| 458 | Value int32 |
| 459 | Max int32 |
| 460 | Min int32 |
| 461 | Posmult int32 |
| 462 | Negmult int32 |
| 463 | Clock int32 |
| 464 | } |
Brad Fitzpatrick | e3f9388 | 2018-07-24 17:16:09 +0000 | [diff] [blame] | 465 | |
Brad Fitzpatrick | e3f9388 | 2018-07-24 17:16:09 +0000 | [diff] [blame] | 466 | type BlkpgPartition struct { |
| 467 | Start int64 |
| 468 | Length int64 |
| 469 | Pno int32 |
| 470 | Devname [64]uint8 |
| 471 | Volname [64]uint8 |
| 472 | _ [4]byte |
| 473 | } |
| 474 | |
| 475 | const ( |
Johan Jansson | 5d559ad | 2020-02-28 00:39:38 +0200 | [diff] [blame] | 476 | BLKPG = 0x20001269 |
Brad Fitzpatrick | e3f9388 | 2018-07-24 17:16:09 +0000 | [diff] [blame] | 477 | ) |
Casey Callendrello | 3dc4335 | 2018-07-17 22:24:21 +0200 | [diff] [blame] | 478 | |
Matt Layher | 18eb32c | 2019-04-24 13:45:03 -0400 | [diff] [blame] | 479 | type CryptoUserAlg struct { |
| 480 | Name [64]int8 |
| 481 | Driver_name [64]int8 |
| 482 | Module_name [64]int8 |
| 483 | Type uint32 |
| 484 | Mask uint32 |
| 485 | Refcnt uint32 |
| 486 | Flags uint32 |
| 487 | } |
| 488 | |
| 489 | type CryptoStatAEAD struct { |
| 490 | Type [64]int8 |
| 491 | Encrypt_cnt uint64 |
| 492 | Encrypt_tlen uint64 |
| 493 | Decrypt_cnt uint64 |
| 494 | Decrypt_tlen uint64 |
| 495 | Err_cnt uint64 |
| 496 | } |
| 497 | |
| 498 | type CryptoStatAKCipher struct { |
| 499 | Type [64]int8 |
| 500 | Encrypt_cnt uint64 |
| 501 | Encrypt_tlen uint64 |
| 502 | Decrypt_cnt uint64 |
| 503 | Decrypt_tlen uint64 |
| 504 | Verify_cnt uint64 |
| 505 | Sign_cnt uint64 |
| 506 | Err_cnt uint64 |
| 507 | } |
| 508 | |
| 509 | type CryptoStatCipher struct { |
| 510 | Type [64]int8 |
| 511 | Encrypt_cnt uint64 |
| 512 | Encrypt_tlen uint64 |
| 513 | Decrypt_cnt uint64 |
| 514 | Decrypt_tlen uint64 |
| 515 | Err_cnt uint64 |
| 516 | } |
| 517 | |
| 518 | type CryptoStatCompress struct { |
| 519 | Type [64]int8 |
| 520 | Compress_cnt uint64 |
| 521 | Compress_tlen uint64 |
| 522 | Decompress_cnt uint64 |
| 523 | Decompress_tlen uint64 |
| 524 | Err_cnt uint64 |
| 525 | } |
| 526 | |
| 527 | type CryptoStatHash struct { |
| 528 | Type [64]int8 |
| 529 | Hash_cnt uint64 |
| 530 | Hash_tlen uint64 |
| 531 | Err_cnt uint64 |
| 532 | } |
| 533 | |
| 534 | type CryptoStatKPP struct { |
| 535 | Type [64]int8 |
| 536 | Setsecret_cnt uint64 |
| 537 | Generate_public_key_cnt uint64 |
| 538 | Compute_shared_secret_cnt uint64 |
| 539 | Err_cnt uint64 |
| 540 | } |
| 541 | |
| 542 | type CryptoStatRNG struct { |
| 543 | Type [64]int8 |
| 544 | Generate_cnt uint64 |
| 545 | Generate_tlen uint64 |
| 546 | Seed_cnt uint64 |
| 547 | Err_cnt uint64 |
| 548 | } |
| 549 | |
| 550 | type CryptoStatLarval struct { |
| 551 | Type [64]int8 |
| 552 | } |
| 553 | |
| 554 | type CryptoReportLarval struct { |
| 555 | Type [64]int8 |
| 556 | } |
| 557 | |
| 558 | type CryptoReportHash struct { |
| 559 | Type [64]int8 |
| 560 | Blocksize uint32 |
| 561 | Digestsize uint32 |
| 562 | } |
| 563 | |
| 564 | type CryptoReportCipher struct { |
| 565 | Type [64]int8 |
| 566 | Blocksize uint32 |
| 567 | Min_keysize uint32 |
| 568 | Max_keysize uint32 |
| 569 | } |
| 570 | |
| 571 | type CryptoReportBlkCipher struct { |
| 572 | Type [64]int8 |
| 573 | Geniv [64]int8 |
| 574 | Blocksize uint32 |
| 575 | Min_keysize uint32 |
| 576 | Max_keysize uint32 |
| 577 | Ivsize uint32 |
| 578 | } |
| 579 | |
| 580 | type CryptoReportAEAD struct { |
| 581 | Type [64]int8 |
| 582 | Geniv [64]int8 |
| 583 | Blocksize uint32 |
| 584 | Maxauthsize uint32 |
| 585 | Ivsize uint32 |
| 586 | } |
| 587 | |
| 588 | type CryptoReportComp struct { |
| 589 | Type [64]int8 |
| 590 | } |
| 591 | |
| 592 | type CryptoReportRNG struct { |
| 593 | Type [64]int8 |
| 594 | Seedsize uint32 |
| 595 | } |
| 596 | |
| 597 | type CryptoReportAKCipher struct { |
| 598 | Type [64]int8 |
| 599 | } |
| 600 | |
| 601 | type CryptoReportKPP struct { |
| 602 | Type [64]int8 |
| 603 | } |
| 604 | |
| 605 | type CryptoReportAcomp struct { |
| 606 | Type [64]int8 |
| 607 | } |
Lehner Florian | 12bbe5a | 2019-05-03 11:38:26 +0200 | [diff] [blame] | 608 | |
Tobias Klauser | fae7ac5 | 2019-07-11 11:16:12 +0200 | [diff] [blame] | 609 | type LoopInfo struct { |
| 610 | Number int32 |
| 611 | Device uint32 |
| 612 | Inode uint32 |
| 613 | Rdevice uint32 |
| 614 | Offset int32 |
| 615 | Encrypt_type int32 |
| 616 | Encrypt_key_size int32 |
| 617 | Flags int32 |
| 618 | Name [64]int8 |
| 619 | Encrypt_key [32]uint8 |
| 620 | Init [2]uint32 |
| 621 | Reserved [4]int8 |
| 622 | } |
Matt Layher | 43c0116 | 2019-07-29 14:45:48 -0400 | [diff] [blame] | 623 | |
| 624 | type TIPCSubscr struct { |
| 625 | Seq TIPCServiceRange |
| 626 | Timeout uint32 |
| 627 | Filter uint32 |
| 628 | Handle [8]int8 |
| 629 | } |
| 630 | |
Matt Layher | 43c0116 | 2019-07-29 14:45:48 -0400 | [diff] [blame] | 631 | type TIPCSIOCLNReq struct { |
| 632 | Peer uint32 |
| 633 | Id uint32 |
| 634 | Linkname [68]int8 |
| 635 | } |
| 636 | |
| 637 | type TIPCSIOCNodeIDReq struct { |
| 638 | Peer uint32 |
| 639 | Id [16]int8 |
| 640 | } |
Ben Cartwright-Cox | 0fcbb8f | 2020-10-27 12:50:27 +0000 | [diff] [blame] | 641 | |
| 642 | type PPSKInfo struct { |
| 643 | Assert_sequence uint32 |
| 644 | Clear_sequence uint32 |
| 645 | Assert_tu PPSKTime |
| 646 | Clear_tu PPSKTime |
| 647 | Current_mode int32 |
| 648 | _ [4]byte |
| 649 | } |
| 650 | |
| 651 | const ( |
| 652 | PPS_GETPARAMS = 0x400470a1 |
| 653 | PPS_SETPARAMS = 0x800470a2 |
| 654 | PPS_GETCAP = 0x400470a3 |
| 655 | PPS_FETCH = 0xc00470a4 |
| 656 | ) |
Lorenz Bauer | 528a39c | 2021-09-08 10:09:57 +0100 | [diff] [blame] | 657 | |
| 658 | const ( |
| 659 | PIDFD_NONBLOCK = 0x80 |
| 660 | ) |
Dustin Spicuzza | 969570c | 2021-09-30 14:11:05 +0000 | [diff] [blame] | 661 | |
| 662 | type SysvIpcPerm struct { |
| 663 | Key int32 |
| 664 | Uid uint32 |
| 665 | Gid uint32 |
| 666 | Cuid uint32 |
| 667 | Cgid uint32 |
| 668 | Mode uint32 |
| 669 | _ [0]uint8 |
| 670 | Seq uint16 |
| 671 | _ uint16 |
| 672 | _ uint32 |
| 673 | _ uint32 |
| 674 | } |
| 675 | type SysvShmDesc struct { |
| 676 | Perm SysvIpcPerm |
| 677 | Segsz uint32 |
| 678 | Atime uint32 |
| 679 | Dtime uint32 |
| 680 | Ctime uint32 |
| 681 | Cpid int32 |
| 682 | Lpid int32 |
| 683 | Nattch uint32 |
| 684 | Atime_high uint16 |
| 685 | Dtime_high uint16 |
| 686 | Ctime_high uint16 |
| 687 | _ uint16 |
| 688 | } |