Skip to content

Merge dev/zephyr_file_socket into main #4347

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

lum1n0us
Copy link
Collaborator

No description provided.

@banana-sun
Copy link

Hi @lum1n0us ,

We have got in touch with Stephen Berard and learned from him that this branch is not the latest one he is using. After mentioning the merge to main, he also expressed his willingness to submit the PR. However, he needs to fix some bugs, so he might submit the latest modifications he has developed this week. I wonder if we could also keep an eye on his latest progress, and I could also carry out development on his branch.

Also, regarding the CI/CD deployment in Zephyr mentioned today. We may not have relevant experience, but we will look for relevant solutions in other teams within the company.

@lum1n0us
Copy link
Collaborator Author

lum1n0us commented Jun 17, 2025

@lum1n0us lum1n0us mentioned this pull request Jun 18, 2025
6 tasks
@lum1n0us lum1n0us added the new feature Determine if this Issue request a new feature or this PR introduces a new feature. label Jul 14, 2025
@lum1n0us lum1n0us marked this pull request as ready for review August 12, 2025 02:07
lucasAbadFr and others added 4 commits August 12, 2025 08:53
)

To address #3311.

This work also implements the WASI support on Zephyr.

Note that some comments haven't been addressed and will be fixed in the
further patches.
Fixed issues in os_renameat and added os_is_* methods for stdin/stdout/stderr.
ps. #3311.

Signed-off-by: Stephen Berard <[email protected]>
…ck_recv_from() (#4391)

`src_addr` will be filled upon return. Before the call, its content
is unpredictable.
* Added os_is_* methods for stdin/stdout/stderr.
Fixed issues in os_renameat
* Zephyr platform fixes for WASI sockets
Addressed numerous of build warnings on Zephyr
* Updated `os_writev` to use `fwrite` for STDOUT/STDERR
* Temporarily reverted change to `writev` to work around an issue.
* Fixes: fstat, fstatat, and unlink
* Add initial support for directories in os_openat. 
Partial implementation — just avoids a hard fault.

Signed-off-by: Stephen Berard <[email protected]>
Co-authored-by: Dan Kouba <[email protected]>
@lum1n0us lum1n0us force-pushed the dev/zephyr_file_socket branch from 3e820aa to 87732f2 Compare August 12, 2025 09:00
* 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 <[email protected]>
Co-authored-by: Dan Kouba <[email protected]>
@lum1n0us lum1n0us force-pushed the dev/zephyr_file_socket branch from 87732f2 to 6cfc08e Compare August 12, 2025 09:05
# Copyright (C) 2024 Grenoble INP - ESISAR. All rights reserved.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

# Python script to convert wasm file to byte array in a .h file
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why don't you use test-tools/binarydump-tool?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature Determine if this Issue request a new feature or this PR introduces a new feature.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants