vsema(D3X)

vsema - perform a "V" or signal semaphore operation

As shipped in IRIX 6.5.30. Unchanged since IRIX 6.5.

NAME
     vsema - perform a "V" or signal semaphore operation

SYNOPSIS
     #include "sys/types.h"
     #include "sys/sema.h"

     vsema(sema_t *semap);

DESCRIPTION
     vsema performs a "V" semaphore operation on the semaphore pointed to by
     semap. The value associated with the semaphore is incremented by 1. If
     the semaphore value is then less than or equal to 0, a sleeping process
     is awakened.

     vsema expects a pointer to the semaphore as its argument. To allocate or
     initialize semaphores, use initnsema(D3X).

   Return Values
     vsema returns 0 if no sleeping process was awakened; otherwise, it
     returns 1.

   See Also
     initnsema(D3X), psema(D3X), cvsema(D3X), SLEEP_UNLOCK(D3)