feat: add syslog macros LOG_MASK/LOG_UPTO#4238
feat: add syslog macros LOG_MASK/LOG_UPTO#4238SteveLauC wants to merge 1 commit intorust-lang:mainfrom
Conversation
|
CI failure seems unrelated, it is due to a failed network call |
|
Ok, now, the CI errors are really related to my patch, the wasi CIs failed because there is no |
That is probably pretty reasonable. Does it work if |
|
@rustbot author for the above |
|
@SteveLauC I'm taking a look through older-ish PRs, any chance you could do that small change so we can merge this? |
|
@SteveLauC another gentle ping, I think this should be pretty easy to get over the line. |
|
☔ The latest upstream changes (possibly #5011) made this pull request unmergeable. Please resolve the merge conflicts. |
Description
Adds syslog C macros to all UNIX targets
They are re-implemented as Rust functions, and tests are added to ensure our Rust implementations have the same behavior as the C macro.
Sources
Link to the musl impl: https://github.com/bminor/musl/blob/61399d4bd02ae1ec03068445aa7ffe9174466bfd/include/syslog.h#L23-L24
Checklist
libc-test/semverhave been updated*LASTor*MAXareincluded (see #3131)
cd libc-test && cargo test --target mytarget);especially relevant for platforms that may not be checked in CI