Repository navigation
unix: remove custome file.c code and use extmod's VFS-POSIX version instead - #5769
Merged
Merged
Conversation
Contributor
|
This is good. For Windows you'll have to explcicitly add vfs_posix_file.c in both Makefile and sources.props. Or maybe these files should just default to use extmod/*.c but I assume there's a reason they don't. I can look into that if you want? Edit: too fast, py.mk also doesn't use extmod/*.o so the Windows ports should also explicitly add the files they need. |
Member
Author
|
Thanks for the review and suggestion. I think I have the Windows and MSVC builds worked out now. |
Also support MP_STREAM_GET_FILENO ioctl. The stdio flush change was done previously for the unix port in 3e0b46b. These changes make this POSIX file implementation equivalent to the unix file implementation.
The implementation in extmod/vfs_posix_file.c is now equivalent to that in ports/unix/file.c, so remove the latter and use the former instead.
dpgeorge
force-pushed
the
unix-use-vfs-posix-file
branch
from
March 18, 2020 10:02
b54f835 to
2cdf1d2
Compare
Contributor
|
Yes should be good. Tests still pass and they cover this pretty well I think. |
Member
Author
Yes, there are |
tannewt
pushed a commit
to tannewt/circuitpython
that referenced
this pull request
Dec 29, 2021
…n-main Translations update from Hosted Weblate
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Even if the unix port doesn't use the VFS subsystem it can still use the VFS POSIX file code because it's equivalent to the custom code in
ports/unix/file.c.