-
Notifications
You must be signed in to change notification settings - Fork 12k
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
[libc] move pthread macros to a dedicated header #88997
Comments
Hi! This issue may be a good introductory issue for people new to working on LLVM. If you would like to work on this issue, your first steps are:
If you have any further questions about this issue, don't hesitate to ask via a comment in the thread below. |
@llvm/issue-subscribers-good-first-issue Author: Nick Desaulniers (nickdesaulniers)
Forked from https://github.com//pull/88987#discussion_r1567968097
The macros defined in libc/include/pthread.h.def should be moved to a corresponding libc/include/llvm-libc-macros/pthreads-macros.h (unless these values are linux specific, in which case perhaps they should go in a newly created libc/include/llvm-libc-macros/linux/pthreads-macros.h). |
@llvm/issue-subscribers-libc Author: Nick Desaulniers (nickdesaulniers)
Forked from https://github.com//pull/88987#discussion_r1567968097
The macros defined in libc/include/pthread.h.def should be moved to a corresponding libc/include/llvm-libc-macros/pthreads-macros.h (unless these values are linux specific, in which case perhaps they should go in a newly created libc/include/llvm-libc-macros/linux/pthreads-macros.h). |
Hi, if no one is working on this already I'd be glad to do it. |
You can do it @fabricerenard12 ! So a convention we have throughout most of the codebase is that:
This allows us to simply include include/llvm-libc-macros/stdbit-macros.h to test just the macros separate from the rest of the header. So in this case, the macros defined in libc/include/pthread.h.def should be moved to a new header libc/include/llvm-libc-macros/pthreads-macros.h. Don't forget to update:
|
- use namespaced identifiers - add corresponding headers for namespaced declarations - replace time.h and errno.h with finer grain includes - update cmake Fixes: llvm#88987 Fixes: llvm#89261 Link: llvm#88997 Link: llvm#89262
- use namespaced identifiers - add corresponding headers for namespaced declarations - replace time.h and errno.h with finer grain includes - update cmake Fixes: llvm#88987 Fixes: llvm#89261 Link: llvm#88997 Link: llvm#89262
@fabricerenard12 are you still working on this? |
Forked from #88987 (comment)
The macros defined in libc/include/pthread.h.def should be moved to a corresponding libc/include/llvm-libc-macros/pthreads-macros.h (unless these values are linux specific, in which case perhaps they should go in a newly created libc/include/llvm-libc-macros/linux/pthreads-macros.h).
The text was updated successfully, but these errors were encountered: