]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/l4re-core/uclibc/lib/contrib/uclibc/libpthread/linuxthreads/sysdeps/pthread/ptlongjmp.c
Update
[l4.git] / l4 / pkg / l4re-core / uclibc / lib / contrib / uclibc / libpthread / linuxthreads / sysdeps / pthread / ptlongjmp.c
1 /* Linuxthreads - a simple clone()-based implementation of Posix        */
2 /* threads for Linux.                                                   */
3 /* Copyright (C) 1998 Xavier Leroy (Xavier.Leroy@inria.fr)              */
4 /*                                                                      */
5 /* This program is free software; you can redistribute it and/or        */
6 /* modify it under the terms of the GNU Library General Public License  */
7 /* as published by the Free Software Foundation; either version 2       */
8 /* of the License, or (at your option) any later version.               */
9 /*                                                                      */
10 /* This program is distributed in the hope that it will be useful,      */
11 /* but WITHOUT ANY WARRANTY; without even the implied warranty of       */
12 /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the        */
13 /* GNU Library General Public License for more details.                 */
14
15 /* Redefine siglongjmp and longjmp so that they interact correctly
16    with cleanup handlers */
17
18 #include <setjmp.h>
19 #include "pthread.h"
20 #include "internals.h"
21
22 #ifdef SHARED
23 void siglongjmp (sigjmp_buf env, int val)
24 {
25   __libc_siglongjmp (env, val);
26 }
27
28 void longjmp (jmp_buf env, int val)
29 {
30   __libc_longjmp (env, val);
31 }
32 #endif