int sem_unlink( const char *name );
The sem_unlink() function shall remove the semaphore name by the string name. If a process is currently accessing the name semaphore, the sem_unlink command has no effect. If one or more processes have the semaphore open when the sem_unlink function is called, the destruction of semaphores shall be postponed until all reference to semaphore are destroyed by calls to sem_close, _exit(), or exec. After all references have been destroyed, it returns immediately.
If the termination is successful, the function shall return 0. Otherwise, a -1 is returned and the errno is set.
Copyright © 1988-2004 OAR Corporation