Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ bsemfree(2) — CX/UX 6.20

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

bsemget(2)

bsemwait(2)

bsemwakeup(2)

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

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026