bsemfree(2)
NAME
bsemfree − release a binary semaphore
SYNOPSIS
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/bsem.h>
int bsemfree (bsemid)
int bsemid;
DESCRIPTION
Bsemid is a binary semaphore identifier obtained from a bsemget call. bsemfree releases the binary semaphore identified by bsemid.
RETURN VALUE
Upon successful completion a value of 0 is returned. Otherwise, a value of −1 is returned and errno is set to indicate the error.
ERRORS
bsemfree will fail if one or more of the following are true:
[EINVAL] Bsemid is not a valid binary semaphore identifier.
SEE ALSO
bsemget(2), bsemwait(2), bsemwakeup(2)
CX/UX Programmer’s Reference Manual