Dev/zephyr file socket#4377
Dev/zephyr file socket#4377lum1n0us merged 9 commits intobytecodealliance:dev/zephyr_file_socketfrom atym-io:dev/zephyr_file_socket
Conversation
|
@banana-sun Please conduct a test with this PR, thanks. |
|
@srberard There are so many commits that make reviews difficult. Do you think a rebase (targeting main) for bytecodealliance:dev/zephyr_file_socket would make it easier? |
I did rebase this a few weeks back off main. I can do that again, but I don't think that will reduce the commit list. |
|
I've merged #4406. This PR should be rebased. |
|
FYI: #4406 (review) |
|
I guess 64fa157 needs to be merged. |
|
@lum1n0us I'm working on this today and will get these conflicts resolved. |
readdir works but I think we have a memory leak somewhere
fd 0, 1, and 2 will always be supplied for standard streams. Unlinkat and renameat work exclusively based on supplied paths.
|
All the review items identified so far have been address with one exception. This will require some refactoring. I will get this done shortly and update this branch. |
@srberard Please inform me when the PR is ready for review. |
|
Hi @lum1n0us, |
|
@srberard I prefer the short-term workaround. Instead of using |
Signed-off-by: Stephen Berard <stephen.berard@outlook.com>
Signed-off-by: Stephen Berard <stephen.berard@outlook.com>
Signed-off-by: Stephen Berard <stephen.berard@outlook.com>
|
@lum1n0us I apologize for the delay getting this fix in; I was pulled into another effort. I put in a short term-fix for the outstanding issue. This code now works on POSIX and Zephyr without error. I'll file a separate issue to refactor the Zephyr codebase to align with the POSIX codebase assumptions. The builds are passing now with one exception that I believe is unrelated to these changes. |
b8e8230
into
bytecodealliance:dev/zephyr_file_socket
* Directory support WIP. readdir works but I think we have a memory leak somewhere * Fix: always use standard stream fds. Fix unlinkat and renameat. fd 0, 1, and 2 will always be supplied for standard streams. Unlinkat and renameat work exclusively based on supplied paths. * Fix: use macro for free() * Added a temporary workaround for issue identified in PR#4377 * Fixed reference to file descriptor and cleaned up dead/commented code. Signed-off-by: Stephen Berard <stephen.berard@outlook.com> Co-authored-by: Dan Kouba <dan@atym.io>
* Directory support WIP. readdir works but I think we have a memory leak somewhere * Fix: always use standard stream fds. Fix unlinkat and renameat. fd 0, 1, and 2 will always be supplied for standard streams. Unlinkat and renameat work exclusively based on supplied paths. * Fix: use macro for free() * Added a temporary workaround for issue identified in PR#4377 * Fixed reference to file descriptor and cleaned up dead/commented code. Signed-off-by: Stephen Berard <stephen.berard@outlook.com> Co-authored-by: Dan Kouba <dan@atym.io>
* Directory support WIP. readdir works but I think we have a memory leak somewhere * Fix: always use standard stream fds. Fix unlinkat and renameat. fd 0, 1, and 2 will always be supplied for standard streams. Unlinkat and renameat work exclusively based on supplied paths. * Fix: use macro for free() * Added a temporary workaround for issue identified in PR#4377 * Fixed reference to file descriptor and cleaned up dead/commented code. Signed-off-by: Stephen Berard <stephen.berard@outlook.com> Co-authored-by: Dan Kouba <dan@atym.io>
This is still a work in progress, but committing now to make the code available for others who might want to review, test, or build on it while it's still being developed.
Fixes include the following (Zephyr target):
This branch still needs to be updated to the latest trunk and validation on non-Zephyr platforms.