glibc/sysdeps/mach/hurd/i386
Joseph Myers dee2bea048 C2x scanf binary constant handling
C2x adds binary integer constants starting with 0b or 0B, and supports
those constants for the %i scanf format (in addition to the %b format,
which isn't yet implemented for scanf in glibc).  Implement that scanf
support for glibc.

As with the strtol support, this is incompatible with previous C
standard versions, in that such an input string starting with 0b or 0B
was previously required to be parsed as 0 (with the rest of the input
potentially matching subsequent parts of the scanf format string).
Thus this patch adds 12 new __isoc23_* functions per long double
format (12, 24 or 36 depending on how many long double formats the
glibc configuration supports), with appropriate header redirection
support (generally very closely following that for the __isoc99_*
scanf functions - note that __GLIBC_USE (DEPRECATED_SCANF) takes
precedence over __GLIBC_USE (C2X_STRTOL), so the case of GNU
extensions to C89 continues to get old-style GNU %a and does not get
this new feature).  The function names would remain as __isoc23_* even
if C2x ends up published in 2024 rather than 2023.

When scanf %b support is added, I think it will be appropriate for all
versions of scanf to follow C2x rules for inputs to the %b format
(given that there are no compatibility concerns for a new format).

Tested for x86_64 (full glibc testsuite).  The first version was also
tested for powerpc (32-bit) and powerpc64le (stdio-common/ and wcsmbs/
tests), and with build-many-glibcs.py.
2023-03-02 19:10:37 +00:00
..
bits Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
htl [hurd] Fix i686 build breakage caused by 4fedebc911 2023-02-17 11:21:28 +01:00
i686/multiarch Hurd: Add rtld-strncpy-c.c 2021-01-19 04:32:44 -08:00
____longjmp_chk.S Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
__longjmp.S Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
c++-types.data hurd: Add c++-types expected result 2016-03-20 22:16:34 +01:00
exc2signal.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
getcontext.S Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
Implies hurd: Add hurd thread library 2018-04-02 01:44:14 +02:00
intr-msg.h hurd: Remove the ecx kludge 2023-03-02 00:32:55 +01:00
ld.abilist Fix glibc 2.34 ABI omission (missing GLIBC_2.34 in dynamic loader) 2022-01-27 18:52:05 +01:00
libanl.abilist Ignore absolute symbols in ABI tests. 2018-05-04 15:46:32 +00:00
libBrokenLocale.abilist Ignore absolute symbols in ABI tests. 2018-05-04 15:46:32 +00:00
libc_malloc_debug.abilist Move malloc_{g,s}et_state to libc_malloc_debug 2021-07-22 18:38:10 +05:30
libc.abilist C2x scanf binary constant handling 2023-03-02 19:10:37 +00:00
libcrypt.abilist Ignore absolute symbols in ABI tests. 2018-05-04 15:46:32 +00:00
libdl.abilist dlfcn: Move dlopen into libc 2021-06-03 08:26:04 +02:00
libm.abilist math: Remove the error handling wrapper from hypot and hypotf 2021-12-13 10:08:46 -03:00
libnsl.abilist Ignore absolute symbols in ABI tests. 2018-05-04 15:46:32 +00:00
libpthread.abilist htl: Initialize later 2020-11-11 20:41:25 +00:00
libresolv.abilist resolv: Move res_query functions into libc 2021-07-19 07:56:57 +02:00
librt.abilist rt: Move shm_unlink into libc 2021-06-21 08:25:15 +02:00
libutil.abilist login: Move libutil into libc 2021-06-30 08:43:37 +02:00
localplt.data elf: Rework exception handling in the dynamic loader [BZ #25486] 2022-11-03 09:39:31 +01:00
longjmp-ts.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
makecontext.S Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
Makefile hurd: Move some i386 bits to x86 2023-02-02 00:27:26 +01:00
setcontext.S Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
sigcontextinfo.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
signal-defines.sym Fix struct sigaltstack namespace (bug 21517). 2017-06-05 10:17:46 +00:00
sigreturn.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
static-start.S Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
swapcontext.S Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tls.h hurd: Move thread state manipulation into _hurd_tls_new () 2023-02-20 00:32:35 +01:00
tlsdesc.sym hurd: Add tlsdesc.sym 2018-01-30 00:52:48 +01:00
trampoline.c hurd: Remove the ecx kludge 2023-03-02 00:32:55 +01:00
ucontext_i.sym hurd: Add getcontext, makecontext, setcontext, swapcontext 2019-12-29 16:54:08 +01:00
Versions Add missing symbols to Version files 2021-06-02 07:32:19 +02:00
vm_param.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00