The exact set of supported values is determined by the <errno.h>
and <signal.h> headers, which don't (yet) come from llvm-libc on
Fuchsia. The mappings of SIG* and E* codes to psignal/strsignal
and perror/strerror text used in Fuchsia libc today is the same
as for Linux.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
libc/src/__support/StringUtil/tables/error_table.h | ||
---|---|---|
32 | If the else path is taken here, then LINUX_ERRORS will not be included and will lead to a build error. Do you have any suggestions on how to handle this? Following is an idea that comes to my mind. I prefer to reduce the number of conditionals and use a more explicit structure like this.
tables/ stdc_errors.h posix_errors.h linux_extension_errors.h
tables/ ... linux_platform_errors.h minimal_platform_errors.h
PLATFORM_ERRORS = STDC_ERRORS + POSIX_ERRORS + LINUX_ERRORS;
PLATFORM_ERRORS = STDC_ERRORS;
#if defined(__linux__) || defined(__Fuchsia__) #include "tables/linux_platform_errors.h" #else #include "tables/minimal_platform_errors.h" #endif In effect, there is only one condtional confined to platform_errors.h. |
libc/src/__support/StringUtil/tables/error_table.h | ||
---|---|---|
32 | That sounds fine to me. |
If the else path is taken here, then LINUX_ERRORS will not be included and will lead to a build error. Do you have any suggestions on how to handle this? Following is an idea that comes to my mind.
I prefer to reduce the number of conditionals and use a more explicit structure like this.
In effect, there is only one condtional confined to platform_errors.h.