:man| Alphabetical   Categories   About us 
 
SEM_DESTROY (3) | C library functions | Unix Manual Pages | :man

NAME

sem_destroy - destroy an unnamed semaphore

CONTENTS

Library
Synopsis
Description
Return Values
Errors
See Also
Standards

LIBRARY


.Lb libc

SYNOPSIS


.In semaphore.h int sem_destroy "sem_t *sem"

DESCRIPTION

The sem_destroy function destroys the unnamed semaphore pointed to by sem. After a successful call to sem_destroy, sem is unusable until re-initialized by another call to sem_init(3).

RETURN VALUES


.Rv -std sem_destroy

ERRORS

The sem_destroy function will fail if:
[EINVAL]
The sem argument points to an invalid semaphore.
[EBUSY]
There are currently threads blocked on the semaphore that sem points to.

SEE ALSO

sem_init(3), sem(4)

STANDARDS


Share this page

     Follow us

Facebook Twitter Google+ LinkedIn


 
Created by Blin Media, 2008-2013