| ... | @@ -1599,6 +1599,15 @@ pub const MADV = switch (native_os) { | ... | @@ -1599,6 +1599,15 @@ pub const MADV = switch (native_os) { |
| 1599 | pub const SEQUENTIAL = 0x5; | 1599 | pub const SEQUENTIAL = 0x5; |
| 1600 | pub const RANDOM = 0x6; | 1600 | pub const RANDOM = 0x6; |
| 1601 | }, | 1601 | }, |
| | 1602 | .netbsd, .openbsd => struct { |
| | 1603 | pub const NORMAL = 0; |
| | 1604 | pub const RANDOM = 1; |
| | 1605 | pub const SEQUENTIAL = 2; |
| | 1606 | pub const WILLNEED = 3; |
| | 1607 | pub const DONTNEED = 4; |
| | 1608 | pub const SPACEAVAIL = 5; |
| | 1609 | pub const FREE = 6; |
| | 1610 | }, |
| 1602 | else => void, | 1611 | else => void, |
| 1603 | }; | 1612 | }; |
| 1604 | pub const MCL = switch (native_os) { | 1613 | pub const MCL = switch (native_os) { |
| ... | @@ -1631,7 +1640,17 @@ pub const MSF = switch (native_os) { | ... | @@ -1631,7 +1640,17 @@ pub const MSF = switch (native_os) { |
| 1631 | pub const DEACTIVATE = 0x8; | 1640 | pub const DEACTIVATE = 0x8; |
| 1632 | pub const SYNC = 0x10; | 1641 | pub const SYNC = 0x10; |
| 1633 | }, | 1642 | }, |
| 1634 | .openbsd, .haiku, .dragonfly, .netbsd, .illumos, .freebsd => struct { | 1643 | .freebsd, .dragonfly => struct { |
| | 1644 | pub const SYNC = 0; |
| | 1645 | pub const ASYNC = 1; |
| | 1646 | pub const INVALIDATE = 2; |
| | 1647 | }, |
| | 1648 | .openbsd => struct { |
| | 1649 | pub const ASYNC = 1; |
| | 1650 | pub const SYNC = 2; |
| | 1651 | pub const INVALIDATE = 4; |
| | 1652 | }, |
| | 1653 | .haiku, .netbsd, .illumos => struct { |
| 1635 | pub const ASYNC = 1; | 1654 | pub const ASYNC = 1; |
| 1636 | pub const INVALIDATE = 2; | 1655 | pub const INVALIDATE = 2; |
| 1637 | pub const SYNC = 4; | 1656 | pub const SYNC = 4; |