Skip to content

Add Munmap binding#4

Open
FeliceMente wants to merge 1 commit into
rux-lang:devfrom
FeliceMente:macos-munmap
Open

Add Munmap binding#4
FeliceMente wants to merge 1 commit into
rux-lang:devfrom
FeliceMente:macos-munmap

Conversation

@FeliceMente

@FeliceMente FeliceMente commented Jun 10, 2026

Copy link
Copy Markdown

Declares Munmap(addr, length) -> int64 in module MacOS, backed by the new munmap thunk in rux-lang/Rux#132 (mirrors the Linux Munmap signature). Extends the smoke example with an mmap/munmap roundtrip step.

Enables a real Std::Memory::Free on macOS (companion Std PR). Depends on rux-lang/Rux#132.

Also gives the heap-flags 0 arg in the smoke example a 0u32 suffix (HeapAlloc/HeapFree take flags: uint32) so the example builds under the stricter overload resolution on current Rux dev (see rux-lang/Std#43); two of those sites pre-date this PR.

@FeliceMente

Copy link
Copy Markdown
Author

I updated the PR, reflecting the changes proposed in rux-lang/Std#45

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant