-
Notifications
You must be signed in to change notification settings - Fork 177
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
missing headers: netdb.h, pwd.h #112
Comments
Duplicate of WebAssembly/wasi-libc#47 and WebAssembly/wasi-libc#18. |
kildom
pushed a commit
to kildom/clang-wasi-port
that referenced
this issue
Jul 14, 2021
…ebAssembly#112) * Link `populate_args` only if we actually need command-line arguments. This avoids linking in the argv/argc initialization code, and the __wasi_args_sizes_get and __wasi_args_get imports, in programs that don't use command-line arguments. The way this works is, if the user writes `int main(int argc, char *argv[])`, the argument initialization code is loaded, and if they write `int main(void)`, it's not loaded. This promotes the `__original_main` mechanism into an effective contract between the compiler and libc, which wasn't its original purpose, however it seems to fit this purpose quite well. * Document that `__original_main` may be the user's zero-arg `main`.
Hi, I also found missing netdb.h in wasi-sdk. Could I trouble you to give some advices? Thank you very much. |
WASI does not yet support the functionality needed to implement netdb.h. Before wasi-sdk can support it, we'll need WASI proposals to support it. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.
The text was updated successfully, but these errors were encountered: