SEM_OPEN(3) BSD Library Functions Manual SEM_OPEN(3)NAME
sem_open, sem_close, sem_unlink — named semaphore operations
LIBRARY
POSIX Threads Library (libpthread, -lpthread)
SYNOPSIS
#include <semaphore.h>
sem_t *
sem_open(const char *name, int oflag, ...);
int
sem_close(sem_t *sem);
int
sem_unlink(const char *name);
DESCRIPTION
The sem_open(), sem_close(), and sem_unlink() functions are not supported
by this implementation.
RETURN VALUESsem_open() returns SEM_FAILED and sets errno to indicate an error.
sem_close() and sem_unlink() return -1 and set errno to indicate an
error.
ERRORSsem_open(), sem_close(), and sem_unlink() will fail:
[ENOSYS] Function not supported by this implementation.
STANDARDSsem_open(), sem_close(), and sem_unlink() conform to ISO/IEC 9945-1:1996
(“POSIX.1”).
BSD April 15, 2009 BSD