version 1.32, 2011/09/19 17:33:17
|
version 1.33, 2011/09/20 07:16:40
|
Line 250 sem_init_SysV(sem_t *semaphore, int shar
|
Line 250 sem_init_SysV(sem_t *semaphore, int shar
|
sprintf((*semaphore).path, "%s/RPL-SIGSEMAPHORE-%d", racine_segment, |
sprintf((*semaphore).path, "%s/RPL-SIGSEMAPHORE-%d", racine_segment, |
(int) getpid()); |
(int) getpid()); |
|
|
if ((desc = open((*semaphore).path, 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) |
{ |
{ |
free((*semaphore).path); |
free((*semaphore).path); |
Line 793 sem_t
|
Line 793 sem_t
|
va_end(liste); |
va_end(liste); |
|
|
# ifndef OS2 // IPCS_SYSV |
# ifndef OS2 // IPCS_SYSV |
if ((desc = open(nom_absolu, O_CREAT | O_EXCL | S_IRUSR | S_IWUSR)) |
if ((desc = open(nom_absolu, O_CREAT | O_EXCL | O_RDWR, |
== -1) |
S_IRUSR | S_IWUSR)) == -1) |
{ |
{ |
free(semaphore); |
free(semaphore); |
free(nom_absolu); |
free(nom_absolu); |