Ok, got the source files copied into my linux box and currently working on a class called locker, a data type that handles semaphores. Destructor deletes semaphore. Has lock and unlock and getlockcount feature. Also has a way of storing the owner of a semaphore. That's about it for the semaphore data type called locker.
Next step is map it to linux's semaphore facility.
One thing I noticed in this file is a class called gate. Still hunting for the header files 'bout semaphores. I might go over the linux source files and see how semaphores are implemented. Ok, located the header, it's semaphore.h. Next is locate the implementation.