Hello team, Recently I've been looking into signal implementation and particularly into strsignal() API. As a result I've drafted https://github.com/apache/nuttx/pull/8867 that intends to optimize the implementation, but during CI I found out that some configurations have different signal numbers defined to the same values. So my question is about how strsignal() should behave in such case? My initial approach was to use switch/case to select string corresponding to the signal number value, but if the values are duplicated (triplicated, etc.) then switch/case simply generate compilation error.
I need some advice on how to implement/refine this properly. Best regards, Petro