Gets the value of a specified semaphore. This function is OpenVMS Alpha and Integrity servers only. Format #include <semaphore.h> int sem_getvalue (sem_t *sem, int *sval);