Skip to content
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

Partial windows filesystem implementation #2657

Conversation

zoraaver
Copy link
Contributor

Implement the necessary os_ filesystem functions to enable successful WASI initialisation on Windows. Some small changes were also required to the sockets implementation to use the new windows_handle type. The remaining functions will be implemented in a future PR.

@zoraaver zoraaver force-pushed the windows-partial-filesystem branch 4 times, most recently from 96e4fa2 to 2087533 Compare October 23, 2023 09:44
@zoraaver
Copy link
Contributor Author

@wenyongh would you be able to take a look at this PR? thanks

@zoraaver zoraaver force-pushed the windows-partial-filesystem branch from 2087533 to 65e314e Compare October 23, 2023 15:31
core/shared/platform/windows/win_clock.c Outdated Show resolved Hide resolved
core/shared/platform/windows/win_file.c Outdated Show resolved Hide resolved
Comment on lines +340 to +335
wchar_t extension[256];
wchar_t filename[256];
Copy link
Contributor

Choose a reason for hiding this comment

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

Buffer size of filename may be a little small?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Got it, thanks.

core/shared/platform/windows/win_file.c Outdated Show resolved Hide resolved
@zoraaver zoraaver force-pushed the windows-partial-filesystem branch from 65e314e to 35e5793 Compare October 24, 2023 12:15
Implement the necessary os_ filesystem functions to enable successful
WASI initialisation on Windows. Some small changes were also required to
the sockets implementation to use the new windows_handle type. The
remaining functions will be implemented in a future PR.
@zoraaver zoraaver force-pushed the windows-partial-filesystem branch from 35e5793 to a719c75 Compare October 24, 2023 14:57
Copy link
Collaborator

@loganek loganek left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@loganek loganek left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@wenyongh wenyongh left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines +340 to +335
wchar_t extension[256];
wchar_t filename[256];
Copy link
Contributor

Choose a reason for hiding this comment

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

Got it, thanks.

@wenyongh wenyongh merged commit 7520807 into bytecodealliance:dev/wasi-libc-windows Oct 25, 2023
@zoraaver zoraaver deleted the windows-partial-filesystem branch October 25, 2023 08:31
victoryang00 pushed a commit to victoryang00/wamr-aot-gc-checkpoint-restore that referenced this pull request May 27, 2024
Implement the necessary os_ filesystem functions to enable successful
WASI initialization on Windows. Some small changes were also required to
the sockets implementation to use the new windows_handle type. The
remaining functions will be implemented in a future PR.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants