]> git.ipfire.org Git - thirdparty/glibc.git/blob - nptl/libpthread-compat.c
nptl: Move pthread_create, thrd_create into libc
[thirdparty/glibc.git] / nptl / libpthread-compat.c
1 /* Placeholder definitions to pull in removed symbol versions.
2 Copyright (C) 2019-2021 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
4
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 The GNU C Library 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 GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <https://www.gnu.org/licenses/>. */
18
19 #include <sys/cdefs.h>
20 #include <shlib-compat.h>
21
22 #ifdef SHARED
23 void
24 attribute_compat_text_section
25 __attribute_used__
26 __libpthread_version_placeholder_1 (void)
27 {
28 }
29 #endif
30
31 #if (SHLIB_COMPAT (libpthread, GLIBC_2_1, GLIBC_2_2))
32 compat_symbol (libpthread, __libpthread_version_placeholder_1,
33 __libpthread_version_placeholder, GLIBC_2_1);
34 #endif
35
36 #if (SHLIB_COMPAT (libpthread, GLIBC_2_1_1, GLIBC_2_1_2))
37 compat_symbol (libpthread, __libpthread_version_placeholder_1,
38 __libpthread_version_placeholder, GLIBC_2_1_1);
39 #endif
40 #if (SHLIB_COMPAT (libpthread, GLIBC_2_1_2, GLIBC_2_2))
41 compat_symbol (libpthread, __libpthread_version_placeholder_1,
42 __libpthread_version_placeholder, GLIBC_2_1_2);
43 #endif
44
45 #if SHLIB_COMPAT (libpthread, GLIBC_2_2, GLIBC_2_2_3) \
46 && ABI_libpthread_GLIBC_2_2 != ABI_libpthread_GLIBC_2_0
47 compat_symbol (libpthread, __libpthread_version_placeholder_1,
48 __libpthread_version_placeholder, GLIBC_2_2);
49 #endif
50
51 #if (SHLIB_COMPAT (libpthread, GLIBC_2_2_3, GLIBC_2_2_4))
52 compat_symbol (libpthread, __libpthread_version_placeholder_1,
53 __libpthread_version_placeholder, GLIBC_2_2_3);
54 #endif
55
56 #if (SHLIB_COMPAT (libpthread, GLIBC_2_2_6, GLIBC_2_3))
57 compat_symbol (libpthread, __libpthread_version_placeholder_1,
58 __libpthread_version_placeholder, GLIBC_2_2_6);
59 #endif
60
61 #if (SHLIB_COMPAT (libpthread, GLIBC_2_3_2, GLIBC_2_3_4))
62 compat_symbol (libpthread, __libpthread_version_placeholder_1,
63 __libpthread_version_placeholder, GLIBC_2_3_2);
64 #endif
65
66 #if (SHLIB_COMPAT (libpthread, GLIBC_2_3_3, GLIBC_2_3_4))
67 compat_symbol (libpthread, __libpthread_version_placeholder_1,
68 __libpthread_version_placeholder, GLIBC_2_3_3);
69 #endif
70
71 #if (SHLIB_COMPAT (libpthread, GLIBC_2_3_4, GLIBC_2_4))
72 compat_symbol (libpthread, __libpthread_version_placeholder_1,
73 __libpthread_version_placeholder, GLIBC_2_3_4);
74 #endif
75
76 #if (SHLIB_COMPAT (libpthread, GLIBC_2_4, GLIBC_2_5))
77 compat_symbol (libpthread, __libpthread_version_placeholder_1,
78 __libpthread_version_placeholder, GLIBC_2_4);
79 #endif
80
81 #if SHLIB_COMPAT (libpthread, GLIBC_2_11, GLIBC_2_12)
82 compat_symbol (libpthread, __libpthread_version_placeholder_1,
83 __libpthread_version_placeholder, GLIBC_2_11);
84 #endif
85
86 #if SHLIB_COMPAT (libpthread, GLIBC_2_12, GLIBC_2_13)
87 compat_symbol (libpthread, __libpthread_version_placeholder_1,
88 __libpthread_version_placeholder, GLIBC_2_12);
89 #endif
90
91 #if SHLIB_COMPAT (libpthread, GLIBC_2_18, GLIBC_2_19) \
92 && ABI_libpthread_GLIBC_2_18 != ABI_libpthread_GLIBC_2_0
93 compat_symbol (libpthread, __libpthread_version_placeholder_1,
94 __libpthread_version_placeholder, GLIBC_2_18);
95 #endif
96
97 #if (SHLIB_COMPAT (libpthread, GLIBC_2_28, GLIBC_2_29))
98 compat_symbol (libpthread, __libpthread_version_placeholder_1,
99 __libpthread_version_placeholder, GLIBC_2_28);
100 #endif
101
102 #if (SHLIB_COMPAT (libpthread, GLIBC_2_30, GLIBC_2_31))
103 compat_symbol (libpthread, __libpthread_version_placeholder_1,
104 __libpthread_version_placeholder, GLIBC_2_30);
105 #endif
106
107 #if (SHLIB_COMPAT (libpthread, GLIBC_2_31, GLIBC_2_32))
108 compat_symbol (libpthread, __libpthread_version_placeholder_1,
109 __libpthread_version_placeholder, GLIBC_2_31);
110 #endif