| ... | @@ -1885,16 +1885,7 @@ pub const POLL = switch (native_os) { | ... | @@ -1885,16 +1885,7 @@ pub const POLL = switch (native_os) { |
| 1885 | /// Basic memory protection flags | 1885 | /// Basic memory protection flags |
| 1886 | pub const PROT = switch (native_os) { | 1886 | pub const PROT = switch (native_os) { |
| 1887 | .linux => linux.PROT, | 1887 | .linux => linux.PROT, |
| 1888 | // https://github.com/emscripten-core/emscripten/blob/08e2de1031913e4ba7963b1c56f35f036a7d4d56/system/lib/libc/musl/include/sys/mman.h#L57-L62 | 1888 | .emscripten => emscripten.PROT, |
| 1889 | // lib/libc/include/wasm-wasi-musl/sys/mman.h | | |
| 1890 | .emscripten, .wasi => struct { | | |
| 1891 | pub const NONE = 0; | | |
| 1892 | pub const READ = 1; | | |
| 1893 | pub const WRITE = 2; | | |
| 1894 | pub const EXEC = 4; | | |
| 1895 | pub const GROWSDOWN = 0x01000000; | | |
| 1896 | pub const GROWSUP = 0x02000000; | | |
| 1897 | }, | | |
| 1898 | // https://github.com/SerenityOS/serenity/blob/6d59d4d3d9e76e39112842ec487840828f1c9bfe/Kernel/API/POSIX/sys/mman.h#L28-L31 | 1889 | // https://github.com/SerenityOS/serenity/blob/6d59d4d3d9e76e39112842ec487840828f1c9bfe/Kernel/API/POSIX/sys/mman.h#L28-L31 |
| 1899 | .openbsd, .haiku, .dragonfly, .netbsd, .illumos, .freebsd, .windows, .serenity => struct { | 1890 | .openbsd, .haiku, .dragonfly, .netbsd, .illumos, .freebsd, .windows, .serenity => struct { |
| 1900 | /// page can not be accessed | 1891 | /// page can not be accessed |
| ... | @@ -8649,9 +8640,7 @@ pub const O = switch (native_os) { | ... | @@ -8649,9 +8640,7 @@ pub const O = switch (native_os) { |
| 8649 | | 8640 | |
| 8650 | pub const MAP = switch (native_os) { | 8641 | pub const MAP = switch (native_os) { |
| 8651 | .linux => linux.MAP, | 8642 | .linux => linux.MAP, |
| 8652 | // https://github.com/emscripten-core/emscripten/blob/08e2de1031913e4ba7963b1c56f35f036a7d4d56/system/lib/libc/musl/include/sys/mman.h#L21-L39 | 8643 | .emscripten => packed struct(u32) { |
| 8653 | // lib/libc/include/wasm-wasi-musl/sys/mman.h | | |
| 8654 | .emscripten, .wasi => packed struct(u32) { | | |
| 8655 | TYPE: enum(u4) { | 8644 | TYPE: enum(u4) { |
| 8656 | SHARED = 0x01, | 8645 | SHARED = 0x01, |
| 8657 | PRIVATE = 0x02, | 8646 | PRIVATE = 0x02, |