diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2004-03-26 19:24:24 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2004-03-26 19:24:24 +0300 |
commit | 6b0d86c56d6082cdc5c403d063530a1114b9bda1 (patch) | |
tree | 6efecdfe528b770c9fc44c9b4690cdd39f2ac7db /winsup | |
parent | 85427a949aefae40a57ee940ad90488f6e0965c5 (diff) |
* sem.cc (semget): Fix debug string.
(semop): Ditto.
* shm.cc (fixup_shms_after_fork): Ditto.
(shmat): Ditto.
(shmdt): Ditto.
(shmget): Ditto.
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/cygwin/ChangeLog | 9 | ||||
-rw-r--r-- | winsup/cygwin/sem.cc | 4 | ||||
-rw-r--r-- | winsup/cygwin/shm.cc | 10 |
3 files changed, 16 insertions, 7 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 7dcefe0b9..cfd18bb9a 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,12 @@ +2004-03-26 Corinna Vinschen <corinna@vinschen.de> + + * sem.cc (semget): Fix debug string. + (semop): Ditto. + * shm.cc (fixup_shms_after_fork): Ditto. + (shmat): Ditto. + (shmdt): Ditto. + (shmget): Ditto. + 2004-03-26 Christopher Faylor <cgf@redhat.com> * sigproc.cc (wait_sig): Make sure that SIGCHLD is handled regardless diff --git a/winsup/cygwin/sem.cc b/winsup/cygwin/sem.cc index 3dfaf42ad..c623db122 100644 --- a/winsup/cygwin/sem.cc +++ b/winsup/cygwin/sem.cc @@ -136,7 +136,7 @@ semget (key_t key, int nsems, int semflg) client_request_sem request (key, nsems, semflg); if (request.make_request () == -1 || request.retval () == -1) { - syscall_printf ("-1 [%d] = semctl ()", request.error_code ()); + syscall_printf ("-1 [%d] = semget ()", request.error_code ()); set_errno (request.error_code ()); if (request.error_code () == ENOSYS) raise (SIGSYS); @@ -161,7 +161,7 @@ semop (int semid, struct sembuf *sops, size_t nsops) client_request_sem request (semid, sops, nsops); if (request.make_request () == -1 || request.retval () == -1) { - syscall_printf ("-1 [%d] = semctl ()", request.error_code ()); + syscall_printf ("-1 [%d] = semop ()", request.error_code ()); set_errno (request.error_code ()); if (request.error_code () == ENOSYS) raise (SIGSYS); diff --git a/winsup/cygwin/shm.cc b/winsup/cygwin/shm.cc index 92ea20f86..7e7245efa 100644 --- a/winsup/cygwin/shm.cc +++ b/winsup/cygwin/shm.cc @@ -124,7 +124,7 @@ fixup_shms_after_fork () client_request_shm request (&parent); if (request.make_request () == -1 || request.retval () == -1) { - syscall_printf ("-1 [%d] = shmctl ()", request.error_code ()); + syscall_printf ("-1 [%d] = fixup_shms_after_fork ()", request.error_code ()); set_errno (request.error_code ()); return 0; } @@ -200,7 +200,7 @@ shmat (int shmid, const void *shmaddr, int shmflg) client_request_shm request (shmid, ptr, shmflg & ~SHM_RND); if (request.make_request () == -1 || request.ptrval () == NULL) { - syscall_printf ("-1 [%d] = shmctl ()", request.error_code ()); + syscall_printf ("-1 [%d] = shmat ()", request.error_code ()); UnmapViewOfFile (ptr); delete sph_entry; set_errno (request.error_code ()); @@ -286,11 +286,11 @@ extern "C" int shmdt (const void *shmaddr) { #ifdef USE_SERVER - syscall_printf ("shmget (shmaddr = %p)", shmaddr); + syscall_printf ("shmdt (shmaddr = %p)", shmaddr); client_request_shm request (shmaddr); if (request.make_request () == -1 || request.retval () == -1) { - syscall_printf ("-1 [%d] = shmctl ()", request.error_code ()); + syscall_printf ("-1 [%d] = shmdt ()", request.error_code ()); set_errno (request.error_code ()); if (request.error_code () == ENOSYS) raise (SIGSYS); @@ -333,7 +333,7 @@ shmget (key_t key, size_t size, int shmflg) client_request_shm request (key, size, shmflg); if (request.make_request () == -1 || request.retval () == -1) { - syscall_printf ("-1 [%d] = shmctl ()", request.error_code ()); + syscall_printf ("-1 [%d] = shmget ()", request.error_code ()); delete ssh_new_entry; set_errno (request.error_code ()); if (request.error_code () == ENOSYS) |