On Nov 21, 2022, at 6:09 PM, Rich Felker <dalias@libc.org> wrote:
Regarding your second solution, I think it's more elegant and
efficient and would be preferable if we were doing this from scratch,
but changing SEM_VALUE_MAX is arguably an ABI change we should not
make.
With my distro hat on: this isn’t used by too many programs.
Debian Code Search returned a module of Boost. Otherwise, all apps
correctly use sysconf(_SC_SEM_VALUE_MAX) in my cursory glance.
With my gcompat hat on: yes, please don’t change it.
The current value matches glibc and while it doesn’t seem many things
use it, I would hate to have to debug those kind of corner cases in
binary blob code.
Best,
-A.