nuttx/libs
Michal Lenc eeb4a0de83 setlogmask: fix setlogmask behavior according to POSIX standard
POSIX states "If the maskpri argument is 0, the current log mask is
not modified." The current implementation in NuttX doesn't
respect this and thus is in a clear violation with a strict POSIX
compliance rule in The Inviolable Principles of NuttX.

This commit therefore changes the behavior to the expected one. Passing
argument 0 doesn't change the current log mask, but just returns the
old one. Completely disabling logging at runtime is thus not possible,
but you may set the highest priority LOG_EMERG only to disable most of
the messages. Default can still be set to no logging with
CONFIG_SYSLOG_DEFAULT_MASK configuration option.

Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2025-05-02 16:29:08 +02:00
..
libbuiltin macro/align: Use ALIGN_UP and ALIGN_DOWN uniformly 2025-01-12 16:48:35 +08:00
libc setlogmask: fix setlogmask behavior according to POSIX standard 2025-05-02 16:29:08 +02:00
libdsp libs/libdsp: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
libm libm/newlib: Add arch-specific source code first to CSRCS 2024-12-04 02:10:41 +08:00
libnx libs/libnx: do not generate resource if CONFIG_NX is not enabled 2025-02-20 08:45:05 +01:00
libxx [nxstyle] fix Relative files path 2025-02-21 15:36:05 +01:00
CMakeLists.txt libs: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00