ustestsema(3P)
ustestsema - return the value of a semaphore
As shipped in IRIX 6.5.7. Unchanged since IRIX 6.5.
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.