public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Remove __THROW from LinuxThreads cancellation points
@ 2003-12-26 21:47 Jakub Jelinek
  2003-12-27  6:09 ` Ulrich Drepper
  0 siblings, 1 reply; 2+ messages in thread
From: Jakub Jelinek @ 2003-12-26 21:47 UTC (permalink / raw)
  To: Ulrich Drepper; +Cc: Glibc hackers

Hi!

Without this C++ programs built against LinuxThreads headers, but run
against NPTL will not get cancellation right.

2003-12-26  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/pthread/pthread.h (pthread_setcancelstate,
	pthread_setcanceltype, pthread_cancel, pthread_testcancel): Remove
	__THROW.
	* semaphore.h (sem_wait, sem_timedwait): Likewise.

--- libc/linuxthreads/semaphore.h.jj	2001-06-14 00:56:43.000000000 +0200
+++ libc/linuxthreads/semaphore.h	2003-12-26 22:38:47.000000000 +0100
@@ -64,13 +64,12 @@ extern int sem_close (sem_t *__sem) __TH
 extern int sem_unlink (__const char *__name) __THROW;
 
 /* Wait for SEM being posted.  */
-extern int sem_wait (sem_t *__sem) __THROW;
+extern int sem_wait (sem_t *__sem);
 
 #ifdef __USE_XOPEN2K
 /* Similar to `sem_wait' but wait only until ABSTIME.  */
 extern int sem_timedwait (sem_t *__restrict __sem,
-			  __const struct timespec *__restrict __abstime)
-     __THROW;
+			  __const struct timespec *__restrict __abstime);
 #endif
 
 /* Test whether SEM is posted.  */
--- libc/linuxthreads/sysdeps/pthread/pthread.h.jj	2003-09-22 17:35:40.000000000 +0200
+++ libc/linuxthreads/sysdeps/pthread/pthread.h	2003-12-26 22:38:08.000000000 +0100
@@ -582,19 +582,19 @@ extern int pthread_once (pthread_once_t 
 
 /* Set cancelability state of current thread to STATE, returning old
    state in *OLDSTATE if OLDSTATE is not NULL.  */
-extern int pthread_setcancelstate (int __state, int *__oldstate) __THROW;
+extern int pthread_setcancelstate (int __state, int *__oldstate);
 
 /* Set cancellation state of current thread to TYPE, returning the old
    type in *OLDTYPE if OLDTYPE is not NULL.  */
-extern int pthread_setcanceltype (int __type, int *__oldtype) __THROW;
+extern int pthread_setcanceltype (int __type, int *__oldtype);
 
 /* Cancel THREAD immediately or at the next possibility.  */
-extern int pthread_cancel (pthread_t __cancelthread) __THROW;
+extern int pthread_cancel (pthread_t __cancelthread);
 
 /* Test for pending cancellation for the current thread and terminate
    the thread as per pthread_exit(PTHREAD_CANCELED) if it has been
    cancelled.  */
-extern void pthread_testcancel (void) __THROW;
+extern void pthread_testcancel (void);
 
 
 /* Install a cleanup handler: ROUTINE will be called with arguments ARG

	Jakub

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Remove __THROW from LinuxThreads cancellation points
  2003-12-26 21:47 [PATCH] Remove __THROW from LinuxThreads cancellation points Jakub Jelinek
@ 2003-12-27  6:09 ` Ulrich Drepper
  0 siblings, 0 replies; 2+ messages in thread
From: Ulrich Drepper @ 2003-12-27  6:09 UTC (permalink / raw)
  To: Jakub Jelinek; +Cc: Glibc hackers

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jakub Jelinek wrote:

> Without this C++ programs built against LinuxThreads headers, but run
> against NPTL will not get cancellation right.

Applied.  Thanks,

- -- 
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/7SGK2ijCOnn/RHQRAptBAJ0QjOmnqIeLIjQIuSwhThUdfAqfuwCeMAzk
vDZNL/3w/HPL2D/lP2+0tVU=
=j9tW
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-12-27  6:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-26 21:47 [PATCH] Remove __THROW from LinuxThreads cancellation points Jakub Jelinek
2003-12-27  6:09 ` Ulrich Drepper

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).