Move get*id and getgroups definitions to syscalls.list (bug 14138).
[glibc.git] / sysdeps / unix / sysv / linux / s390 / pt-longjmp.c
blob2e489ae19d745bfd9170dd882b2584a095383c35
1 /* Copyright (C) 2014 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
4 The GNU C Library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
9 The GNU C Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Lesser General Public License for more details.
14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>.
18 Versioned copy of nptl/pt-longjmp.c modified for versioning
19 the reverted jmpbuf extension. */
21 #include <shlib-compat.h>
23 #if defined SHARED && SHLIB_COMPAT (libpthread, GLIBC_2_19, GLIBC_2_20)
24 /* we need a unique name in case of symbol versioning. */
25 # define longjmp __v1longjmp
26 #endif /* defined SHARED && SHLIB_COMPAT (libpthread, GLIBC_2_19, GLIBC_2_20)) */
28 #include <nptl/pt-longjmp.c>
30 #if defined SHARED && SHLIB_COMPAT (libpthread, GLIBC_2_19, GLIBC_2_20)
31 /* In glibc release 2.19 new versions of longjmp-functions were introduced,
32 but were reverted before 2.20. Thus both versions are the same function. */
34 # undef longjmp
36 strong_alias (__v1longjmp, __v2longjmp)
37 versioned_symbol (libpthread, __v1longjmp, longjmp, GLIBC_2_0);
38 compat_symbol (libpthread, __v2longjmp, longjmp, GLIBC_2_19);
40 weak_alias (siglongjmp, __v1siglongjmp)
41 weak_alias (siglongjmp, __v2siglongjmp)
42 versioned_symbol (libpthread, __v1siglongjmp, siglongjmp, GLIBC_2_0);
43 compat_symbol (libpthread, __v2siglongjmp, siglongjmp, GLIBC_2_19);
44 #endif /* defined SHARED && SHLIB_COMPAT (libpthread, GLIBC_2_19, GLIBC_2_20)) */