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

ports: Implement access syscall in mlibc sysdeps #3

Merged
merged 1 commit into from
Jun 9, 2022

Conversation

Kyota-exe
Copy link
Contributor

This PR replaces the stub for the access system call in the zigux mlibc sysdeps with a basic implementation that returns 0 if the file exists. It ignores file permissions, but fully implementing access should be trivial when file permissions are implemented in zigux by simply computing the correct return value based on statbuf.st_mode.

I wasn't able to get zig and jinx working on my system to test if this works (or even compiles), but in theory, this should resolve #2.

@48cf
Copy link
Owner

48cf commented Jun 9, 2022

Yep, I confirmed that it works, thank you! :)

@48cf 48cf merged commit 4c55ac4 into 48cf:master Jun 9, 2022
48cf pushed a commit that referenced this pull request Jul 11, 2024
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.

Getting GCC to run under zigux
2 participants