sem_unlink

NAME

sem_unlink - remove a named semaphore

SYNOPSIS

#include <semaphore.h>
 I int sem_unlink(const char * name );

DESCRIPTION

R sem_unlink () removes the named semaphore referred to by R sem . The semaphore name is removed immediately. The semaphore is destroyed once all other processes that have the semaphore open close it.

RETURN VALUE

On success R sem_unlink () returns 0; on error, -1 is returned, with errno set to indicate the error.

ERRORS

EACCES
The caller does not have permission to unlink this semaphore.
ENAMETOOLONG
R name was too long.
ENOENT
There is no semaphore with the given R name .

CONFORMING TO

POSIX.1-2001.

SEE ALSO