Refer to C23 in place of C2X in glibc
[glibc.git] / nptl / libpthread-compat.c
blob1978beaac0867e2b4791f64b2d02abf2f4665360
1 /* Placeholder definitions to pull in removed symbol versions.
2 Copyright (C) 2019-2024 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
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.
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.
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/>. */
19 #include <sys/cdefs.h>
20 #include <shlib-compat.h>
22 #ifdef SHARED
23 void
24 attribute_compat_text_section
25 __attribute_used__
26 __libpthread_version_placeholder_1 (void)
29 #endif
31 #if SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_34)
32 compat_symbol (libpthread, __libpthread_version_placeholder_1,
33 __libpthread_version_placeholder, GLIBC_2_0);
34 #endif
36 #if (SHLIB_COMPAT (libpthread, GLIBC_2_1, GLIBC_2_2))
37 compat_symbol (libpthread, __libpthread_version_placeholder_1,
38 __libpthread_version_placeholder, GLIBC_2_1);
39 #endif
41 #if (SHLIB_COMPAT (libpthread, GLIBC_2_1_1, GLIBC_2_1_2))
42 compat_symbol (libpthread, __libpthread_version_placeholder_1,
43 __libpthread_version_placeholder, GLIBC_2_1_1);
44 #endif
45 #if (SHLIB_COMPAT (libpthread, GLIBC_2_1_2, GLIBC_2_2))
46 compat_symbol (libpthread, __libpthread_version_placeholder_1,
47 __libpthread_version_placeholder, GLIBC_2_1_2);
48 #endif
50 #if SHLIB_COMPAT (libpthread, GLIBC_2_2, GLIBC_2_3) \
51 && ABI_libpthread_GLIBC_2_2 != ABI_libpthread_GLIBC_2_0
52 compat_symbol (libpthread, __libpthread_version_placeholder_1,
53 __libpthread_version_placeholder, GLIBC_2_2);
54 #endif
56 #if (SHLIB_COMPAT (libpthread, GLIBC_2_2_3, GLIBC_2_2_4))
57 compat_symbol (libpthread, __libpthread_version_placeholder_1,
58 __libpthread_version_placeholder, GLIBC_2_2_3);
59 #endif
61 #if (SHLIB_COMPAT (libpthread, GLIBC_2_2_6, GLIBC_2_3))
62 compat_symbol (libpthread, __libpthread_version_placeholder_1,
63 __libpthread_version_placeholder, GLIBC_2_2_6);
64 #endif
66 #if (SHLIB_COMPAT (libpthread, GLIBC_2_3_2, GLIBC_2_3_4))
67 compat_symbol (libpthread, __libpthread_version_placeholder_1,
68 __libpthread_version_placeholder, GLIBC_2_3_2);
69 #endif
71 #if (SHLIB_COMPAT (libpthread, GLIBC_2_3_3, GLIBC_2_3_4))
72 compat_symbol (libpthread, __libpthread_version_placeholder_1,
73 __libpthread_version_placeholder, GLIBC_2_3_3);
74 #endif
76 #if (SHLIB_COMPAT (libpthread, GLIBC_2_3_4, GLIBC_2_4))
77 compat_symbol (libpthread, __libpthread_version_placeholder_1,
78 __libpthread_version_placeholder, GLIBC_2_3_4);
79 #endif
81 #if (SHLIB_COMPAT (libpthread, GLIBC_2_4, GLIBC_2_5))
82 compat_symbol (libpthread, __libpthread_version_placeholder_1,
83 __libpthread_version_placeholder, GLIBC_2_4);
84 #endif
86 #if SHLIB_COMPAT (libpthread, GLIBC_2_11, GLIBC_2_12)
87 compat_symbol (libpthread, __libpthread_version_placeholder_1,
88 __libpthread_version_placeholder, GLIBC_2_11);
89 #endif
91 #if SHLIB_COMPAT (libpthread, GLIBC_2_12, GLIBC_2_13)
92 compat_symbol (libpthread, __libpthread_version_placeholder_1,
93 __libpthread_version_placeholder, GLIBC_2_12);
94 #endif
96 #if SHLIB_COMPAT (libpthread, GLIBC_2_18, GLIBC_2_19)
97 compat_symbol (libpthread, __libpthread_version_placeholder_1,
98 __libpthread_version_placeholder, GLIBC_2_18);
99 #endif
101 #if (SHLIB_COMPAT (libpthread, GLIBC_2_28, GLIBC_2_29))
102 compat_symbol (libpthread, __libpthread_version_placeholder_1,
103 __libpthread_version_placeholder, GLIBC_2_28);
104 #endif
106 #if (SHLIB_COMPAT (libpthread, GLIBC_2_30, GLIBC_2_31))
107 compat_symbol (libpthread, __libpthread_version_placeholder_1,
108 __libpthread_version_placeholder, GLIBC_2_30);
109 #endif
111 #if (SHLIB_COMPAT (libpthread, GLIBC_2_31, GLIBC_2_32))
112 compat_symbol (libpthread, __libpthread_version_placeholder_1,
113 __libpthread_version_placeholder, GLIBC_2_31);
114 #endif