sem_alloc
if ((error = sem_alloc(value, semid, SEM_MAGIC, sem)) != 0) {
if ((error = sem_alloc(value, semid, SEM_MAGIC_NAMED, sem)) != 0)