[libc-commits] [libc] [llvm] [libc] Say that sys/sem.h leaves union semun to the program (PR #241691)

Pavel Labath via libc-commits libc-commits at lists.llvm.org
Thu Nov 12 01:58:02 PST 2026


labath wrote:

Is there a (modern) libc implementation that actually declares a `union semun`. AFAICT, _SEM_SEMUN_UNDEFINED doesn't come from any standard, and it dates back to 1998 glibc that defined it for backwards compatibility. I'm wondering if we shouldn't fix the programs instead (delete the conditional and always define the structure). Bionic doesn't seem to define this, so it should be possible to build a sizable chunk of software without it.

https://github.com/llvm/llvm-project/pull/241691


More information about the libc-commits mailing list