[PATCH v3 0/7] Refactor syslog implementation
Adhemerval Zanella
adhemerval.zanella@linaro.org
Fri Mar 18 16:52:07 GMT 2022
The main driver of this change is to move away of using 32-bit
timestamps. Based on discussion where systemd should support
RFC5424 [1], it decided to move away from implementing on glibc [2]
and just replace the use of localtime by gmtime. It is a deviation
from RFC3164, but it improves some corner cases [3].
[1] https://github.com/systemd/systemd/issues/19251
[2] https://sourceware.org/pipermail/libc-alpha/2022-February/136595.html
[3] https://sourceware.org/pipermail/libc-alpha/2021-March/123583.html
Adhemerval Zanella (7):
support: Add xmkfifo
misc: Add syslog test
misc: syslog: Fix indentation and style
misc: syslog: Simplify implementation
misc: syslog: Use fixed-sized buffer
misc: syslog: Move SYSLOG_NAME to USE_MISC (BZ #16355)
misc: Use gmtime instead of localtime
misc/Makefile | 2 +
misc/sys/syslog.h | 4 +-
misc/syslog.c | 488 +++++++++++++++++++++++-----------------------
misc/tst-syslog.c | 477 ++++++++++++++++++++++++++++++++++++++++++++
support/Makefile | 1 +
support/xmkfifo.c | 29 +++
support/xunistd.h | 1 +
7 files changed, 756 insertions(+), 246 deletions(-)
create mode 100644 misc/tst-syslog.c
create mode 100644 support/xmkfifo.c
--
2.32.0
More information about the Libc-alpha
mailing list