semget()
Usage:
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/sem.h>
#include <sys/stat.h>
int semget( key_t key, int nsems, int semflg );
Creates a semaphore set and initializes each element to zero
Example:
int semID = semget( IPC_PRIVATE, 1,
S_IRUSR | S_IWUSR );
Like shared memory, icps and ipcrm can list and remove semaphores