-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
readlink and readlinkat implementation on RawPOSIX / Wasmtime / glibc #76
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have a few doubts but overall looks good to me. Also a reminder to @ChinmayShringi , once this PR is merged, we need to also add address checking for the two new syscalls we have here in current memory PR or a seperate PR, depends on whether this PR or the memory PR merges first
This PR adds support for readlink and readlinkat in lind-wasm to address issues encountered during Python compilation.
Changes:
RawPOSIX:
readlink
andreadlinkat
along with necessary path resolution logic.glibc:
readlinkat
fromreadlink
if the latter was not fully implemented. Since both syscalls are now implemented separately, the conditional check has been removed.Tests:
readlink
andreadlinka
t to ensure proper functionality.