version 1.47, 2012/07/03 13:56:32
|
version 1.48, 2012/07/04 13:02:50
|
Line 298 sem_init_SysV(sem_t *semaphore, int shar
|
Line 298 sem_init_SysV(sem_t *semaphore, int shar
|
return(-1); |
return(-1); |
} |
} |
|
|
sprintf((*semaphore).path, "%s/RPL-SEMAPHORE-%d-%llX-%d", |
sprintf((*semaphore).path, "%s/RPL-SEMAPHORE-%d-%llX-%llX", |
racine_segment, (int) getpid(), |
racine_segment, (int) getpid(), |
(long long unsigned) pthread_self(), shared); |
(long long unsigned) pthread_self(), |
|
(long long unsigned) semaphore); |
|
|
if ((desc = open((*semaphore).path, O_RDWR | O_CREAT | O_EXCL, |
if ((desc = open((*semaphore).path, O_RDWR | O_CREAT | O_EXCL, |
S_IRUSR | S_IWUSR)) == -1) |
S_IRUSR | S_IWUSR)) == -1) |