Changeset View
Changeset View
Standalone View
Standalone View
b/src/npth.c
Context not available. | |||||
sem_init. */ | sem_init. */ | ||||
errno = 0; | errno = 0; | ||||
#ifndef HAVE_BROKEN_SEM_INIT | |||||
/* The semaphore is not shared and binary. */ | /* The semaphore is not shared and binary. */ | ||||
res = sem_init (sceptre, 0, 1); | res = sem_init (sceptre, 0, 1); | ||||
if (res < 0) | if (res < 0) | ||||
Context not available. | |||||
#endif | #endif | ||||
} | } | ||||
} | } | ||||
#else | |||||
if (try_sem_open (&sceptre)) | |||||
return errno; | |||||
#endif | |||||
LEAVE(); | LEAVE(); | ||||
return 0; | return 0; | ||||
Context not available. |