Skip to content
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

Merged
merged 26 commits into from
Feb 6, 2025

Conversation

Yaxuan-w
Copy link
Member

@Yaxuan-w Yaxuan-w commented Jan 6, 2025

This PR adds support for readlink and readlinkat in lind-wasm to address issues encountered during Python compilation.

Changes:

RawPOSIX:

  • Added support for readlink and readlinkat along with necessary path resolution logic.

glibc:

  • Previously, glibc would call readlinkat from readlink if the latter was not fully implemented. Since both syscalls are now implemented separately, the conditional check has been removed.

Tests:

  • Added test cases for both readlink and readlinkat to ensure proper functionality.
  • Added a script to set up the testing environment, making it easier to run and validate the changes.

Copy link
Contributor

@qianxichen233 qianxichen233 left a 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

@rennergade rennergade requested a review from m-hemmings January 6, 2025 18:52
@rennergade rennergade self-requested a review February 6, 2025 17:40
@Yaxuan-w Yaxuan-w merged commit 75b1080 into main Feb 6, 2025
1 check passed
@Yaxuan-w Yaxuan-w deleted the readlink-impl branch February 6, 2025 22:08
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.

5 participants