-
Notifications
You must be signed in to change notification settings - Fork 955
src/{syscall, os}: add Fstat, with tests #2457
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
Conversation
8adeccb
to
8bad848
Compare
910feb5
to
3037c0c
Compare
5208ec2
to
ba8ebc8
Compare
This now works around #1906 by leaving Fstat a stub on i386-linux and arm-linux. The workaround is a single commit that should be reverted once tinygo supports go assembly. |
May need a tweak to let wasi tests pass still. I will push a new version tonight. |
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.
LGTM. Can we add archive/zip
to the passing tests yet?
Oh, yeah, when I rebase tonight I will try adding that. |
ba8ebc8
to
c58d73a
Compare
archive/zip is not passing on wasi yet, so I added it to the passing-on-native-tests list. I don't quite understad why it isn't passing on wasi... probably means this pull request isn't fully baked yet. |
Also not passing on windows. Back to the kitchen! |
Started looking into why it's not passing on wasi and fell down the rabbit hole of |
I broke my gaze away from that, too. |
af042bc
to
37d0a2f
Compare
aha, archive/zip failure on windows is expected, it needs ReadAt. Excluding that test on windows. |
This is File.Stat from tinygo-org#2371, plus the windows bits, plus a smoke test more or less from upstream, all pulled together and rebased by dkegel-fastly.
Revert this once syscall.seek is implemented cf. tinygo-org#1906
Except on windows, where it fails because it needs ReadAt, which we don't implement on windows yet.
37d0a2f
to
9165d91
Compare
The This is worth opening its own bug for.
|
Let's land this now, link to the new bug, and deal with that later. |
Filed #2554 |
Ship it! |
OK that was a bit complicated to follow at first, but I understand the reasoning behind how this PR is setup. Merging, counting on you both @dkegel-fastly and @dgryski to help get it sorted out once the "real" solution is available. |
This is the Fstat part of #2371, plus tests and a windows implementation.