int sem_destroy( sem_t *sem );
The sem_destroy function is used to destroy an unnamed semaphore refered to by "sem". sem_destroy can only be used on a semaphore that was created using sem_init.
If the functions completes successfully, it shall return a value of zero. Otherwise, it shall return a value of -1 and set "errno" to specify the error that occurred.
Multiprocessing is currently not supported in this implementation.
Copyright © 1988-2000 OAR Corporation