Skip to content

Commit 011212c

Browse files
committed
Update GLibc CRT feature specs
1 parent ad2c936 commit 011212c

File tree

2 files changed

+250
-3
lines changed

2 files changed

+250
-3
lines changed

kos/include/i386-kos/crt-features/crt-glc.h

Lines changed: 246 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@
6565
* 23600: /lib/libc-2.36.so
6666
* 23700: /lib/libc-2.37.so
6767
* 23800: /lib/libc-2.38.so
68+
* 23900: /lib/libc-2.39.so
69+
* 24000: /lib/libc-2.40.so
70+
* 24100: /lib/libc-2.41.so
71+
* 24200: /lib/libc-2.42.so
6872
*/
6973
#ifndef __GNU_LIBRARY__
7074
#define __GNU_LIBRARY__ 6
@@ -74,7 +78,7 @@
7478
#endif /* __GNU_LIBRARY__ < 6 */
7579
#ifndef __GLIBC__
7680
#define __GLIBC__ 2
77-
#define __GLIBC_MINOR__ 38
81+
#define __GLIBC_MINOR__ 42
7882
#define __GLIBC_PATCH__ 0
7983
#else /* !__GLIBC__ */
8084
#ifndef __GLIBC_MINOR__
@@ -2040,6 +2044,9 @@
20402044
#if __GLIBC_VERSION__ >= 23300 && __GLIBC_VERSION__ <= 23600
20412045
#define __CRT_HAVE___libc_scratch_buffer_dupfree
20422046
#endif /* __GLIBC_VERSION__ >= 23300 && __GLIBC_VERSION__ <= 23600 */
2047+
#if __GLIBC_VERSION__ >= 23400 && __GLIBC_VERSION__ <= 24000
2048+
#define __CRT_HAVE___nptl_change_stack_perm
2049+
#endif /* __GLIBC_VERSION__ >= 23400 && __GLIBC_VERSION__ <= 24000 */
20432050
#if defined(_REENTRANT) && __GLIBC_VERSION__ >= 20302 && __GLIBC_VERSION__ <= 23300
20442051
#define __CRT_HAVE___pthread_initialize_minimal
20452052
#endif /* _REENTRANT && __GLIBC_VERSION__ >= 20302 && __GLIBC_VERSION__ <= 23300 */
@@ -2843,6 +2850,9 @@
28432850
#if __GLIBC_VERSION__ <= 20004 || (__GLIBC_VERSION__ >= 21290 && __GLIBC_VERSION__ <= 21800) || __GLIBC_VERSION__ >= 22000
28442851
#define __CRT_HAVE___getrlimit
28452852
#endif /* __GLIBC_VERSION__ <= 20004 || (__GLIBC_VERSION__ >= 21290 && __GLIBC_VERSION__ <= 21800) || __GLIBC_VERSION__ >= 22000 */
2853+
#if __GLIBC_VERSION__ <= 20004 || (__GLIBC_VERSION__ >= 22600 && __GLIBC_VERSION__ <= 23800)
2854+
#define __CRT_HAVE___snprintf
2855+
#endif /* __GLIBC_VERSION__ <= 20004 || (__GLIBC_VERSION__ >= 22600 && __GLIBC_VERSION__ <= 23800) */
28462856
#if __GLIBC_VERSION__ <= 20004 || __GLIBC_VERSION__ == 20205
28472857
#define __CRT_HAVE__dl_pagesize
28482858
#endif /* __GLIBC_VERSION__ <= 20004 || __GLIBC_VERSION__ == 20205 */
@@ -2880,7 +2890,6 @@
28802890
#define __CRT_HAVE___mmap
28812891
#define __CRT_HAVE___mprotect
28822892
#define __CRT_HAVE___munmap
2883-
#define __CRT_HAVE___snprintf
28842893
#endif /* __GLIBC_VERSION__ <= 20004 || __GLIBC_VERSION__ >= 22600 */
28852894
#if __GLIBC_VERSION__ <= 20103
28862895
#define __CRT_HAVE___collate_element_hash
@@ -5048,7 +5057,6 @@
50485057
#define __CRT_HAVE___libutil_version_placeholder
50495058
#define __CRT_HAVE___lll_lock_wait_private
50505059
#define __CRT_HAVE___lll_lock_wake_private
5051-
#define __CRT_HAVE___nptl_change_stack_perm
50525060
#define __CRT_HAVE___nptl_create_event
50535061
#define __CRT_HAVE___nptl_death_event
50545062
#define __CRT_HAVE___nptl_initial_report_events
@@ -5413,6 +5421,241 @@
54135421
#define __CRT_HAVE_wcslcat
54145422
#define __CRT_HAVE_wcslcpy
54155423
#endif /* __GLIBC_VERSION__ >= 23800 */
5424+
#if __GLIBC_VERSION__ >= 23900
5425+
#define __CRT_HAVE___tunable_is_initialized
5426+
#define __CRT_HAVE_pidfd_getpid
5427+
#define __CRT_HAVE_pidfd_spawn
5428+
#define __CRT_HAVE_pidfd_spawnp
5429+
#define __CRT_HAVE_posix_spawnattr_getcgroup_np
5430+
#define __CRT_HAVE_posix_spawnattr_setcgroup_np
5431+
#define __CRT_HAVE_stdc_bit_ceil_uc
5432+
#define __CRT_HAVE_stdc_bit_ceil_ui
5433+
#define __CRT_HAVE_stdc_bit_ceil_ul
5434+
#define __CRT_HAVE_stdc_bit_ceil_ull
5435+
#define __CRT_HAVE_stdc_bit_ceil_us
5436+
#define __CRT_HAVE_stdc_bit_floor_uc
5437+
#define __CRT_HAVE_stdc_bit_floor_ui
5438+
#define __CRT_HAVE_stdc_bit_floor_ul
5439+
#define __CRT_HAVE_stdc_bit_floor_ull
5440+
#define __CRT_HAVE_stdc_bit_floor_us
5441+
#define __CRT_HAVE_stdc_bit_width_uc
5442+
#define __CRT_HAVE_stdc_bit_width_ui
5443+
#define __CRT_HAVE_stdc_bit_width_ul
5444+
#define __CRT_HAVE_stdc_bit_width_ull
5445+
#define __CRT_HAVE_stdc_bit_width_us
5446+
#define __CRT_HAVE_stdc_count_ones_uc
5447+
#define __CRT_HAVE_stdc_count_ones_ui
5448+
#define __CRT_HAVE_stdc_count_ones_ul
5449+
#define __CRT_HAVE_stdc_count_ones_ull
5450+
#define __CRT_HAVE_stdc_count_ones_us
5451+
#define __CRT_HAVE_stdc_count_zeros_uc
5452+
#define __CRT_HAVE_stdc_count_zeros_ui
5453+
#define __CRT_HAVE_stdc_count_zeros_ul
5454+
#define __CRT_HAVE_stdc_count_zeros_ull
5455+
#define __CRT_HAVE_stdc_count_zeros_us
5456+
#define __CRT_HAVE_stdc_first_leading_one_uc
5457+
#define __CRT_HAVE_stdc_first_leading_one_ui
5458+
#define __CRT_HAVE_stdc_first_leading_one_ul
5459+
#define __CRT_HAVE_stdc_first_leading_one_ull
5460+
#define __CRT_HAVE_stdc_first_leading_one_us
5461+
#define __CRT_HAVE_stdc_first_leading_zero_uc
5462+
#define __CRT_HAVE_stdc_first_leading_zero_ui
5463+
#define __CRT_HAVE_stdc_first_leading_zero_ul
5464+
#define __CRT_HAVE_stdc_first_leading_zero_ull
5465+
#define __CRT_HAVE_stdc_first_leading_zero_us
5466+
#define __CRT_HAVE_stdc_first_trailing_one_uc
5467+
#define __CRT_HAVE_stdc_first_trailing_one_ui
5468+
#define __CRT_HAVE_stdc_first_trailing_one_ul
5469+
#define __CRT_HAVE_stdc_first_trailing_one_ull
5470+
#define __CRT_HAVE_stdc_first_trailing_one_us
5471+
#define __CRT_HAVE_stdc_first_trailing_zero_uc
5472+
#define __CRT_HAVE_stdc_first_trailing_zero_ui
5473+
#define __CRT_HAVE_stdc_first_trailing_zero_ul
5474+
#define __CRT_HAVE_stdc_first_trailing_zero_ull
5475+
#define __CRT_HAVE_stdc_first_trailing_zero_us
5476+
#define __CRT_HAVE_stdc_has_single_bit_uc
5477+
#define __CRT_HAVE_stdc_has_single_bit_ui
5478+
#define __CRT_HAVE_stdc_has_single_bit_ul
5479+
#define __CRT_HAVE_stdc_has_single_bit_ull
5480+
#define __CRT_HAVE_stdc_has_single_bit_us
5481+
#define __CRT_HAVE_stdc_leading_ones_uc
5482+
#define __CRT_HAVE_stdc_leading_ones_ui
5483+
#define __CRT_HAVE_stdc_leading_ones_ul
5484+
#define __CRT_HAVE_stdc_leading_ones_ull
5485+
#define __CRT_HAVE_stdc_leading_ones_us
5486+
#define __CRT_HAVE_stdc_leading_zeros_uc
5487+
#define __CRT_HAVE_stdc_leading_zeros_ui
5488+
#define __CRT_HAVE_stdc_leading_zeros_ul
5489+
#define __CRT_HAVE_stdc_leading_zeros_ull
5490+
#define __CRT_HAVE_stdc_leading_zeros_us
5491+
#define __CRT_HAVE_stdc_trailing_ones_uc
5492+
#define __CRT_HAVE_stdc_trailing_ones_ui
5493+
#define __CRT_HAVE_stdc_trailing_ones_ul
5494+
#define __CRT_HAVE_stdc_trailing_ones_ull
5495+
#define __CRT_HAVE_stdc_trailing_ones_us
5496+
#define __CRT_HAVE_stdc_trailing_zeros_uc
5497+
#define __CRT_HAVE_stdc_trailing_zeros_ui
5498+
#define __CRT_HAVE_stdc_trailing_zeros_ul
5499+
#define __CRT_HAVE_stdc_trailing_zeros_ull
5500+
#define __CRT_HAVE_stdc_trailing_zeros_us
5501+
#endif /* __GLIBC_VERSION__ >= 23900 */
5502+
#if __GLIBC_VERSION__ >= 24000
5503+
#define __CRT_HAVE_exp10m1
5504+
#define __CRT_HAVE_exp10m1f
5505+
#define __CRT_HAVE_exp10m1f128
5506+
#define __CRT_HAVE_exp10m1f32
5507+
#define __CRT_HAVE_exp10m1f32x
5508+
#define __CRT_HAVE_exp10m1f64
5509+
#define __CRT_HAVE_exp10m1f64x
5510+
#define __CRT_HAVE_exp10m1l
5511+
#define __CRT_HAVE_exp2m1
5512+
#define __CRT_HAVE_exp2m1f
5513+
#define __CRT_HAVE_exp2m1f128
5514+
#define __CRT_HAVE_exp2m1f32
5515+
#define __CRT_HAVE_exp2m1f32x
5516+
#define __CRT_HAVE_exp2m1f64
5517+
#define __CRT_HAVE_exp2m1f64x
5518+
#define __CRT_HAVE_exp2m1l
5519+
#define __CRT_HAVE_log10p1
5520+
#define __CRT_HAVE_log10p1f
5521+
#define __CRT_HAVE_log10p1f128
5522+
#define __CRT_HAVE_log10p1f32
5523+
#define __CRT_HAVE_log10p1f32x
5524+
#define __CRT_HAVE_log10p1f64
5525+
#define __CRT_HAVE_log10p1f64x
5526+
#define __CRT_HAVE_log10p1l
5527+
#define __CRT_HAVE_log2p1
5528+
#define __CRT_HAVE_log2p1f
5529+
#define __CRT_HAVE_log2p1f128
5530+
#define __CRT_HAVE_log2p1f32
5531+
#define __CRT_HAVE_log2p1f32x
5532+
#define __CRT_HAVE_log2p1f64
5533+
#define __CRT_HAVE_log2p1f64x
5534+
#define __CRT_HAVE_log2p1l
5535+
#define __CRT_HAVE_logp1
5536+
#define __CRT_HAVE_logp1f
5537+
#define __CRT_HAVE_logp1f128
5538+
#define __CRT_HAVE_logp1f32
5539+
#define __CRT_HAVE_logp1f32x
5540+
#define __CRT_HAVE_logp1f64
5541+
#define __CRT_HAVE_logp1f64x
5542+
#define __CRT_HAVE_logp1l
5543+
#endif /* __GLIBC_VERSION__ >= 24000 */
5544+
#if __GLIBC_VERSION__ >= 24100
5545+
#define __CRT_HAVE_acospi
5546+
#define __CRT_HAVE_acospif
5547+
#define __CRT_HAVE_acospif128
5548+
#define __CRT_HAVE_acospif32
5549+
#define __CRT_HAVE_acospif32x
5550+
#define __CRT_HAVE_acospif64
5551+
#define __CRT_HAVE_acospif64x
5552+
#define __CRT_HAVE_acospil
5553+
#define __CRT_HAVE_asinpi
5554+
#define __CRT_HAVE_asinpif
5555+
#define __CRT_HAVE_asinpif128
5556+
#define __CRT_HAVE_asinpif32
5557+
#define __CRT_HAVE_asinpif32x
5558+
#define __CRT_HAVE_asinpif64
5559+
#define __CRT_HAVE_asinpif64x
5560+
#define __CRT_HAVE_asinpil
5561+
#define __CRT_HAVE_atan2pi
5562+
#define __CRT_HAVE_atan2pif
5563+
#define __CRT_HAVE_atan2pif128
5564+
#define __CRT_HAVE_atan2pif32
5565+
#define __CRT_HAVE_atan2pif32x
5566+
#define __CRT_HAVE_atan2pif64
5567+
#define __CRT_HAVE_atan2pif64x
5568+
#define __CRT_HAVE_atan2pil
5569+
#define __CRT_HAVE_atanpi
5570+
#define __CRT_HAVE_atanpif
5571+
#define __CRT_HAVE_atanpif128
5572+
#define __CRT_HAVE_atanpif32
5573+
#define __CRT_HAVE_atanpif32x
5574+
#define __CRT_HAVE_atanpif64
5575+
#define __CRT_HAVE_atanpif64x
5576+
#define __CRT_HAVE_atanpil
5577+
#define __CRT_HAVE_cospi
5578+
#define __CRT_HAVE_cospif
5579+
#define __CRT_HAVE_cospif128
5580+
#define __CRT_HAVE_cospif32
5581+
#define __CRT_HAVE_cospif32x
5582+
#define __CRT_HAVE_cospif64
5583+
#define __CRT_HAVE_cospif64x
5584+
#define __CRT_HAVE_cospil
5585+
#define __CRT_HAVE_sched_getattr
5586+
#define __CRT_HAVE_sched_setattr
5587+
#define __CRT_HAVE_sinpi
5588+
#define __CRT_HAVE_sinpif
5589+
#define __CRT_HAVE_sinpif128
5590+
#define __CRT_HAVE_sinpif32
5591+
#define __CRT_HAVE_sinpif32x
5592+
#define __CRT_HAVE_sinpif64
5593+
#define __CRT_HAVE_sinpif64x
5594+
#define __CRT_HAVE_sinpil
5595+
#define __CRT_HAVE_tanpi
5596+
#define __CRT_HAVE_tanpif
5597+
#define __CRT_HAVE_tanpif128
5598+
#define __CRT_HAVE_tanpif32
5599+
#define __CRT_HAVE_tanpif32x
5600+
#define __CRT_HAVE_tanpif64
5601+
#define __CRT_HAVE_tanpif64x
5602+
#define __CRT_HAVE_tanpil
5603+
#endif /* __GLIBC_VERSION__ >= 24100 */
5604+
#if __GLIBC_VERSION__ >= 24200
5605+
#define __CRT_HAVE___close_nocancel_nostatus
5606+
#define __CRT_HAVE___inet_ntop_chk
5607+
#define __CRT_HAVE___inet_pton_chk
5608+
#define __CRT_HAVE_cfgetibaud
5609+
#define __CRT_HAVE_cfgetobaud
5610+
#define __CRT_HAVE_cfsetbaud
5611+
#define __CRT_HAVE_cfsetibaud
5612+
#define __CRT_HAVE_cfsetobaud
5613+
#define __CRT_HAVE_compoundn
5614+
#define __CRT_HAVE_compoundnf
5615+
#define __CRT_HAVE_compoundnf128
5616+
#define __CRT_HAVE_compoundnf32
5617+
#define __CRT_HAVE_compoundnf32x
5618+
#define __CRT_HAVE_compoundnf64
5619+
#define __CRT_HAVE_compoundnf64x
5620+
#define __CRT_HAVE_compoundnl
5621+
#define __CRT_HAVE_pown
5622+
#define __CRT_HAVE_pownf
5623+
#define __CRT_HAVE_pownf128
5624+
#define __CRT_HAVE_pownf32
5625+
#define __CRT_HAVE_pownf32x
5626+
#define __CRT_HAVE_pownf64
5627+
#define __CRT_HAVE_pownf64x
5628+
#define __CRT_HAVE_pownl
5629+
#define __CRT_HAVE_powr
5630+
#define __CRT_HAVE_powrf
5631+
#define __CRT_HAVE_powrf128
5632+
#define __CRT_HAVE_powrf32
5633+
#define __CRT_HAVE_powrf32x
5634+
#define __CRT_HAVE_powrf64
5635+
#define __CRT_HAVE_powrf64x
5636+
#define __CRT_HAVE_powrl
5637+
#define __CRT_HAVE_pthread_gettid_np
5638+
#define __CRT_HAVE_rootn
5639+
#define __CRT_HAVE_rootnf
5640+
#define __CRT_HAVE_rootnf128
5641+
#define __CRT_HAVE_rootnf32
5642+
#define __CRT_HAVE_rootnf32x
5643+
#define __CRT_HAVE_rootnf64
5644+
#define __CRT_HAVE_rootnf64x
5645+
#define __CRT_HAVE_rootnl
5646+
#define __CRT_HAVE_rsqrt
5647+
#define __CRT_HAVE_rsqrtf
5648+
#define __CRT_HAVE_rsqrtf128
5649+
#define __CRT_HAVE_rsqrtf32
5650+
#define __CRT_HAVE_rsqrtf32x
5651+
#define __CRT_HAVE_rsqrtf64
5652+
#define __CRT_HAVE_rsqrtf64x
5653+
#define __CRT_HAVE_rsqrtl
5654+
#define __CRT_HAVE_uabs
5655+
#define __CRT_HAVE_uimaxabs
5656+
#define __CRT_HAVE_ulabs
5657+
#define __CRT_HAVE_ullabs
5658+
#endif /* __GLIBC_VERSION__ >= 24200 */
54165659
#ifdef __x86_64__
54175660
#define __CRT_HAVE___arch_prctl
54185661
#define __CRT_HAVE_arch_prctl

kos/include/i386-kos/crt-features/makeglibc.dee

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ global final VERSIONS: {string...} = {
9898
"2.36",
9999
"2.37",
100100
"2.38",
101+
"2.39",
102+
"2.40",
103+
"2.41",
104+
"2.42",
101105
};
102106

103107
function getVersionCodeFromName(versionName: string): int {

0 commit comments

Comments
 (0)