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

wasi-libc should probably not define _POSIX_CPUTIME and _POSIX_THREAD_CPUTIME... #513

Open
whitequark opened this issue Jul 15, 2024 · 0 comments

Comments

@whitequark
Copy link
Contributor

... since it doesn't have CLOCK_PROCESS_CPUTIME_ID or CLOCK_THREAD_CPUTIME_ID.

I was compiling w2c2 to Wasm and discovered that it does not because of these lines: https://github.com/turbolent/w2c2/blob/22a9adeef081714e0d07ea62aa0ec734c6a5f99f/wasi/wasi.c#L2027-L2038

POSIX seems to pretty clearly indicate that the macros in the title indicate the presence of the clocks above, so wasi-libc should probably not define these macros.

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

1 participant