Skip to content

ports: Implement access syscall in mlibc sysdeps#3

Merged
48cf merged 1 commit into
48cf:masterfrom
Kyota-exe:master
Jun 9, 2022
Merged

ports: Implement access syscall in mlibc sysdeps#3
48cf merged 1 commit into
48cf:masterfrom
Kyota-exe:master

Conversation

@Kyota-exe

Copy link
Copy Markdown
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

48cf commented Jun 9, 2022

Copy link
Copy Markdown
Owner

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