| ... | ... | @@ -1395,6 +1395,51 @@ pub const CPU = switch (native_os) { |
| 1395 | 1395 | }, |
| 1396 | 1396 | else => void, |
| 1397 | 1397 | }; |
| 1398 | pub const HW = switch (native_os) { |
| 1399 | .freebsd => struct { |
| 1400 | pub const MACHINE = 1; |
| 1401 | pub const MODEL = 2; |
| 1402 | pub const NCPU = 3; |
| 1403 | pub const BYTEORDER = 4; |
| 1404 | pub const PHYSMEM = 5; |
| 1405 | pub const USERMEM = 6; |
| 1406 | pub const PAGESIZE = 7; |
| 1407 | pub const DISKNAMES = 8; |
| 1408 | pub const DISKSTATS = 9; |
| 1409 | pub const FLOATINGPT = 10; |
| 1410 | pub const MACHINE_ARCH = 11; |
| 1411 | pub const REALMEM = 12; |
| 1412 | }, |
| 1413 | .openbsd => struct { |
| 1414 | pub const MACHINE = 1; |
| 1415 | pub const MODEL = 2; |
| 1416 | pub const NCPU = 3; |
| 1417 | pub const BYTEORDER = 4; |
| 1418 | pub const PHYSMEM = 5; |
| 1419 | pub const USERMEM = 6; |
| 1420 | pub const PAGESIZE = 7; |
| 1421 | pub const DISKNAMES = 8; |
| 1422 | pub const DISKSTATS = 9; |
| 1423 | pub const DISKCOUNT = 10; |
| 1424 | pub const SENSORS = 11; |
| 1425 | pub const CPUSPEED = 12; |
| 1426 | pub const SETPERF = 13; |
| 1427 | pub const VENDOR = 14; |
| 1428 | pub const PRODUCT = 15; |
| 1429 | pub const VERSION = 16; |
| 1430 | pub const SERIALNO = 17; |
| 1431 | pub const UUID = 18; |
| 1432 | pub const PHYSMEM64 = 19; |
| 1433 | pub const USERMEM64 = 20; |
| 1434 | pub const NCPUFOUND = 21; |
| 1435 | pub const ALLOWPOWERDOWN = 22; |
| 1436 | pub const PERFPOLICY = 23; |
| 1437 | pub const SMT = 24; |
| 1438 | pub const NCPUONLINE = 25; |
| 1439 | pub const POWER = 26; |
| 1440 | }, |
| 1441 | else => void, |
| 1442 | }; |
| 1398 | 1443 | pub const KERN = switch (native_os) { |
| 1399 | 1444 | .freebsd => struct { |
| 1400 | 1445 | /// struct: process entries |
| ... | ... | @@ -11333,7 +11378,6 @@ pub const writev_pos = haiku.writev_pos; |
| 11333 | 11378 | |
| 11334 | 11379 | pub const AUTH = openbsd.AUTH; |
| 11335 | 11380 | pub const BI = openbsd.BI; |
| 11336 | | pub const HW = openbsd.HW; |
| 11337 | 11381 | pub const PTHREAD_STACK_MIN = openbsd.PTHREAD_STACK_MIN; |
| 11338 | 11382 | pub const TCFLUSH = openbsd.TCFLUSH; |
| 11339 | 11383 | pub const TCIO = openbsd.TCIO; |