diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-06-27 06:59:36 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-06-27 06:59:36 +0000 |
commit | 4ae89108d3c71ca5156c13e5597a84f774a67196 (patch) | |
tree | 11226a44daaab79e102c4fbf177c37c36f47af4e /nptl | |
parent | 768a8fcdedbd58048fb85e41535b5fc9e4866a7a (diff) | |
download | glibc-4ae89108d3c71ca5156c13e5597a84f774a67196.tar.gz glibc-4ae89108d3c71ca5156c13e5597a84f774a67196.tar.xz glibc-4ae89108d3c71ca5156c13e5597a84f774a67196.zip |
Move __pthread_unwind definition to the front.
Diffstat (limited to 'nptl')
-rw-r--r-- | nptl/sysdeps/pthread/librt-cancellation.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/nptl/sysdeps/pthread/librt-cancellation.c b/nptl/sysdeps/pthread/librt-cancellation.c index 5f530ed712..b5a118f912 100644 --- a/nptl/sysdeps/pthread/librt-cancellation.c +++ b/nptl/sysdeps/pthread/librt-cancellation.c @@ -26,6 +26,20 @@ #ifdef IS_IN_librt +/* XXX Hack ahead. In librt we currently do not have access to a + function equivalent to __pthread_unwind. Therefore we just raise a + signal. */ +void +attribute_hidden +__pthread_unwind (__pthread_unwind_buf_t *buf) +{ + INTERNAL_SYSCALL_DECL (err); + while (1) + INTERNAL_SYSCALL (tkill, err, 2, THREAD_GETMEM (THREAD_SELF, tid), + SIGCANCEL); +} + + /* The next two functions are similar to pthread_setcanceltype() but more specialized for the use in the cancelable functions like write(). They do not need to check parameters etc. */ @@ -105,18 +119,4 @@ __librt_disable_asynccancel (int oldtype) } -/* XXX Hack ahead. In librt we currently do not have access to a - function equivalent to __pthread_unwind. Therefore we just raise a - signal. */ -void -attribute_hidden -__pthread_unwind (__pthread_unwind_buf_t *buf) -{ - INTERNAL_SYSCALL_DECL (err); - while (1) - INTERNAL_SYSCALL (tkill, err, 2, THREAD_GETMEM (THREAD_SELF, tid), - SIGCANCEL); -} - - #endif |