As part of porting a (mostly C++) library to a "new" operating system, I'm trying to link the library's semaphore class to the platform's semaphore implementation. The problem is that the library assumes that the semaphore implementation will be a modern POSIX one but the operating system's semaphores are modeled after System V.
My question is primarily if anyone knows of a wrapper of C (or C++) code that will act as an emulation layer around the System V semaphores in a way that will present "modern" POSIX semaphores to the library I'm porting. A caveat is that any used code must be compatible with the BSD license.
1. The library, semaphore example
2. The operating system
3. POSIX Semaphores
4. The operating system's System V semaphore implementation