NAME sem_getvalue - get the value of a semaphore CONTENTS Library Synopsis Description Return Values Errors See Also Standards LIBRARY .Lb libc SYNOPSIS .In semaphore.h int sem_getvalue "sem_t * restrict sem" "int * restrict sval" DESCRIPTION The sem_getvalue function sets the variable pointed to by sval to the current value of the semaphore pointed to by sem, as of the time that the call to sem_getvalue is actually run. RETURN VALUES .Rv -std sem_getvalue ERRORS The sem_getvalue function will fail if: