Hi all,

just bringing the attention to the mailing list as well. I have submitted a pull request that fixes the behavior of setlogmask function. POSIX standard states passing zero mask as an argument should not modify the current logging mask and just return it. However, our NuttX implementation uses 0 to disable the logging. This is in a violation with POSIX standard and thus with The Inviolable Principles of NuttX (strict POSIX compliance part). It also makes Linux <-> NuttX application porting harder as the behavior is different compared to other POSIX systems.

Feel free to share your thoughts here or in the pull request comments, but I think it shouldn't be a problem to merge the fix. It is, however, a breaking change.

The PR: https://github.com/apache/nuttx/pull/16280

Best regards,

Michal

Reply via email to