pikpik 0 Newbie Poster


As part of porting a (mostly C++) library[1] to a "new" operating system[2], 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[3] but the operating system's semaphores are modeled after System V[4].

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.

Thank you,

1. The library, semaphore example


2. The operating system


3. POSIX Semaphores


4. The operating system's System V semaphore implementation