USTESTSEMA(3P)                                                  USTESTSEMA(3P)


NAME
     ustestsema - return the value of a semaphore

C SYNOPSIS
     #include <ulocks.h>

     int ustestsema (usema_t *sema);

DESCRIPTION
     ustestsema returns the current value of the semaphore specified by sema.
     This should be viewed as a snapshot only, useful for debugging.

SEE ALSO
     usinitsema(3P), usnewsema(3P), uspsema(3P), uscpsema(3P), usvsema(3P).

DIAGNOSTICS
     The current count of the semaphore is returned.


                                                                        Page 1