-
Notifications
You must be signed in to change notification settings - Fork 628
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
Extend os_mmap to support map file from file handle #2763
Conversation
0a83abd
to
42ca701
Compare
1420ec4
to
d5c3f4d
Compare
@wenyongh What's your opinion? Should we add stub function here or promote BTW, if we promote the file operation to porting layer, maybe we can unify the iwasm implementation for all platform. |
540cada
to
c9ed72e
Compare
9f8dc11
to
1665401
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM except a minor issue
9fed66d
to
5543b03
Compare
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
@zoraaver Could you review again? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Add an extra argument `os_file_handle file` for `os_mmap` to support mapping file from a file fd, and remove `os_get_invalid_handle` from `posix_file.c` and `win_file.c`, instead, add it in the `platform_internal.h` files to remove the dependency on libc-wasi. Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
No description provided.