]> sourceware.org Git - glibc.git/commitdiff
Move __pthread_unwind definition to the front.
authorUlrich Drepper <drepper@redhat.com>
Fri, 27 Jun 2003 06:59:36 +0000 (06:59 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 27 Jun 2003 06:59:36 +0000 (06:59 +0000)
nptl/sysdeps/pthread/librt-cancellation.c

index 5f530ed712b4ba49465b96407090931b13b694c2..b5a118f91201bcbead1fd65c864e2ae58b541e09 100644 (file)
 
 #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
This page took 0.044397 seconds and 5 git commands to generate.