Skip to content

Dev/zephyr file socket #4377

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: dev/zephyr_file_socket
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2854,13 +2854,10 @@ wasmtime_ssp_sock_recv_from(wasm_exec_env_t exec_env, struct fd_table *curfds,
}

// If the source address is not NULL, the caller is requesting the source
// address to be returned if the protocol supports it. As such, we convert
// the format of the structure pass in prior to the call to the OS
// implementation. If the value is NULL, the POSIX standard states that
// the address is not returned.
// address to be returned if the protocol supports it. If the value is NULL,
// the POSIX standard states that the address is not returned.
if (src_addr != NULL) {
sockaddr_ptr = &sockaddr;
wasi_addr_to_bh_sockaddr(src_addr, &sockaddr);
}

/* Consume bh_sockaddr_t instead of __wasi_addr_t */
Expand Down
1 change: 1 addition & 0 deletions core/shared/platform/zephyr/platform_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ typedef struct zephyr_fs_desc {
};
bool is_dir;
bool used;
uint32_t dir_index; // DSK: supprt for rewind and seek
} zephyr_fs_desc;

// definition of zephyr_handle
Expand Down
Loading
Loading