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

missing headers: netdb.h, pwd.h #112

Closed
jendrikw opened this issue Apr 2, 2020 · 3 comments
Closed

missing headers: netdb.h, pwd.h #112

jendrikw opened this issue Apr 2, 2020 · 3 comments

Comments

@jendrikw
Copy link

jendrikw commented Apr 2, 2020

No description provided.

@jendrikw jendrikw changed the title missing netdb.h missing headers: netdb.h, pwd.h Apr 2, 2020
@jendrikw
Copy link
Author

jendrikw commented Apr 2, 2020

Duplicate of WebAssembly/wasi-libc#47 and WebAssembly/wasi-libc#18.

@jendrikw jendrikw closed this as completed Apr 2, 2020
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`.
@zlonqi
Copy link

zlonqi commented Jan 7, 2022

Duplicate of WebAssembly/wasi-libc#47 and WebAssembly/wasi-libc#18.

Hi, I also found missing netdb.h in wasi-sdk. Could I trouble you to give some advices? Thank you very much.

@sunfishcode
Copy link
Member

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants