Skip to content

Commit 24167a8

Browse files
committed
Rename __isoc23_*scanf to __isoc99_*scanf.
1 parent 918c681 commit 24167a8

File tree

3 files changed

+26
-13
lines changed

3 files changed

+26
-13
lines changed

docs/Limitations.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ As a concession to ease to implementation, polyfill-glibc needs to be able to ma
2323
|`epoll_pwait2`|See [asynchronous cancellation](Asynchronous_cancellation.md).|
2424
|`fcntl64`|See [asynchronous cancellation](Asynchronous_cancellation.md).|
2525
|`getrandom`|See [asynchronous cancellation](Asynchronous_cancellation.md).|
26+
|`__isoc23_fscanf`, `__isoc23_fwscanf`, `__isoc23_scanf`, `__isoc23_sscanf`, `__isoc23_swscanf`, `__isoc23_vfscanf`, `__isoc23_vfwscanf`, `__isoc23_vscanf`, `__isoc23_vsscanf`, `__isoc23_vswscanf`, `__isoc23_vwscanf`, `__isoc23_wscanf`|These functions are polyfilled to their C99 equivalent. The sole consequence of this is that the `%i` format will no longer recognise binary numbers starting with `0b` or `0B`.|
2627
|`open_by_handle_at`|See [asynchronous cancellation](Asynchronous_cancellation.md).|
2728
|`pidfd_spawn`, `pidfd_spawnp`|Some glibc versions of these functions contain a bug that leaks an fd in some failure scenarios (see [BZ#31695](https://sourceware.org/bugzilla/show_bug.cgi?id=31695)). The polyfill implementation does not have this bug.|
2829
|`posix_spawn_file_actions_addchdir_np`|If the polyfill implementation is used, then `posix_spawn_file_actions_destroy` will also be replaced with a polyfill implementation, even if the `--target-glibc` version would not otherwise require this.|

src/aarch64/renames.txt

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1046,7 +1046,19 @@ process_madvise@GLIBC_2.36 polyfill::process_madvise
10461046
process_mrelease@GLIBC_2.36 polyfill::process_mrelease
10471047

10481048
// GLIBC_2.38
1049-
// TODO
1049+
__isoc23_fscanf@GLIBC_2.38 __isoc99_fscanf@GLIBC_2.17
1050+
__isoc23_fwscanf@GLIBC_2.38 __isoc99_fwscanf@GLIBC_2.17
1051+
__isoc23_scanf@GLIBC_2.38 __isoc99_scanf@GLIBC_2.17
1052+
__isoc23_sscanf@GLIBC_2.38 __isoc99_sscanf@GLIBC_2.17
1053+
__isoc23_swscanf@GLIBC_2.38 __isoc99_swscanf@GLIBC_2.17
1054+
__isoc23_vfscanf@GLIBC_2.38 __isoc99_vfscanf@GLIBC_2.17
1055+
__isoc23_vfwscanf@GLIBC_2.38 __isoc99_vfwscanf@GLIBC_2.17
1056+
__isoc23_vscanf@GLIBC_2.38 __isoc99_vscanf@GLIBC_2.17
1057+
__isoc23_vsscanf@GLIBC_2.38 __isoc99_vsscanf@GLIBC_2.17
1058+
__isoc23_vswscanf@GLIBC_2.38 __isoc99_vswscanf@GLIBC_2.17
1059+
__isoc23_vwscanf@GLIBC_2.38 __isoc99_vwscanf@GLIBC_2.17
1060+
__isoc23_wscanf@GLIBC_2.38 __isoc99_wscanf@GLIBC_2.17
1061+
// TODO etc
10501062
// libm
10511063
fmod@GLIBC_2.38 fmod
10521064
fmodf@GLIBC_2.38 fmodf

src/x86_64/renames.txt

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1382,10 +1382,10 @@ process_madvise@GLIBC_2.36 polyfill::process_madvise
13821382
process_mrelease@GLIBC_2.36 polyfill::process_mrelease
13831383

13841384
// GLIBC_2.38
1385-
// TODO __isoc23_fscanf@GLIBC_2.38
1386-
// TODO __isoc23_fwscanf@GLIBC_2.38
1387-
// TODO __isoc23_scanf@GLIBC_2.38
1388-
// TODO __isoc23_sscanf@GLIBC_2.38
1385+
__isoc23_fscanf@GLIBC_2.38 __isoc99_fscanf@GLIBC_2.7
1386+
__isoc23_fwscanf@GLIBC_2.38 __isoc99_fwscanf@GLIBC_2.7
1387+
__isoc23_scanf@GLIBC_2.38 __isoc99_scanf@GLIBC_2.7
1388+
__isoc23_sscanf@GLIBC_2.38 __isoc99_sscanf@GLIBC_2.7
13891389
__isoc23_strtoimax@GLIBC_2.38 polyfill::__isoc23_strtol
13901390
__isoc23_strtol@GLIBC_2.38 polyfill::__isoc23_strtol
13911391
__isoc23_strtol_l@GLIBC_2.38 polyfill::__isoc23_strtol_l
@@ -1396,13 +1396,13 @@ __isoc23_strtoul_l@GLIBC_2.38 polyfill::__isoc23_strtoul_l
13961396
__isoc23_strtoull@GLIBC_2.38 polyfill::__isoc23_strtoul
13971397
__isoc23_strtoull_l@GLIBC_2.38 polyfill::__isoc23_strtoul_l
13981398
__isoc23_strtoumax@GLIBC_2.38 polyfill::__isoc23_strtoul
1399-
// TODO __isoc23_swscanf@GLIBC_2.38
1400-
// TODO __isoc23_vfscanf@GLIBC_2.38
1401-
// TODO __isoc23_vfwscanf@GLIBC_2.38
1402-
// TODO __isoc23_vscanf@GLIBC_2.38
1403-
// TODO __isoc23_vsscanf@GLIBC_2.38
1404-
// TODO __isoc23_vswscanf@GLIBC_2.38
1405-
// TODO __isoc23_vwscanf@GLIBC_2.38
1399+
__isoc23_swscanf@GLIBC_2.38 __isoc99_swscanf@GLIBC_2.7
1400+
__isoc23_vfscanf@GLIBC_2.38 __isoc99_vfscanf@GLIBC_2.7
1401+
__isoc23_vfwscanf@GLIBC_2.38 __isoc99_vfwscanf@GLIBC_2.7
1402+
__isoc23_vscanf@GLIBC_2.38 __isoc99_vscanf@GLIBC_2.7
1403+
__isoc23_vsscanf@GLIBC_2.38 __isoc99_vsscanf@GLIBC_2.7
1404+
__isoc23_vswscanf@GLIBC_2.38 __isoc99_vswscanf@GLIBC_2.7
1405+
__isoc23_vwscanf@GLIBC_2.38 __isoc99_vwscanf@GLIBC_2.7
14061406
__isoc23_wcstoimax@GLIBC_2.38 polyfill::__isoc23_wcstol
14071407
__isoc23_wcstol@GLIBC_2.38 polyfill::__isoc23_wcstol
14081408
// TODO __isoc23_wcstol_l@GLIBC_2.38
@@ -1413,7 +1413,7 @@ __isoc23_wcstoul@GLIBC_2.38 polyfill::__isoc23_wcstoul
14131413
__isoc23_wcstoull@GLIBC_2.38 polyfill::__isoc23_wcstoul
14141414
// TODO __isoc23_wcstoull_l@GLIBC_2.38
14151415
__isoc23_wcstoumax@GLIBC_2.38 polyfill::__isoc23_wcstoul
1416-
// TODO __isoc23_wscanf@GLIBC_2.38
1416+
__isoc23_wscanf@GLIBC_2.38 __isoc99_wscanf@GLIBC_2.7
14171417
// TODO strlcat@GLIBC_2.38
14181418
// TODO __strlcat_chk@GLIBC_2.38
14191419
// TODO strlcpy@GLIBC_2.38

0 commit comments

Comments
 (0)