Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ sema_rel(2) — A/UX 3.0.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

sema_acq(2)

semget(2)

shmat(2)

shmget(2)




sema_rel(2) sema_rel(2)
NAME sema_rel - releases a semaphore previously acquired SYNOPSIS #include <sys/time.h> #include <sys/sema.h> int sema_rel(sem) semaphore *sem; DESCRIPTION sema_rel releases a semaphore previously acquired by sema_acq. If another process is waiting for the semaphore, its execution is resumed so that it can attempt to acquire the semaphore. STATUS MESSAGES AND VALUES The sema_rel system call returns 0 on success, 1 if the semaphore was already released, or -1 if an error occurred. Upon an error, errno may be set to EFAULT to indicate that the sem parameter points to an invalid location. SEE ALSO sema_acq(2), semget(2), shmat(2), shmget(2) March 1993 1

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