From afd5d3a1e32abdd4c2657abb771f9f61f55e458f Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Sat, 9 Sep 2023 14:41:23 +0200 Subject: [PATCH] Added some __isoc23_XXX wrapped function as synonym to libc (for #943) --- src/wrapped/generated/functions_list.txt | 2 ++ src/wrapped/generated/wrappedlibctypes.h | 2 ++ src/wrapped/wrappedlibc_private.h | 3 +++ 3 files changed, 7 insertions(+) diff --git a/src/wrapped/generated/functions_list.txt b/src/wrapped/generated/functions_list.txt index bde33193..85603c2f 100644 --- a/src/wrapped/generated/functions_list.txt +++ b/src/wrapped/generated/functions_list.txt @@ -3853,6 +3853,8 @@ wrappedlibc: - execve - iFppV: - __asprintf + - __isoc23_fscanf + - __isoc23_sscanf - __isoc99_fscanf - __isoc99_sscanf - __isoc99_swscanf diff --git a/src/wrapped/generated/wrappedlibctypes.h b/src/wrapped/generated/wrappedlibctypes.h index e7a08c3e..5f5b8e1b 100644 --- a/src/wrapped/generated/wrappedlibctypes.h +++ b/src/wrapped/generated/wrappedlibctypes.h @@ -195,6 +195,8 @@ typedef int32_t (*iFppipppp_t)(void*, void*, int32_t, void*, void*, void*, void* GO(__vsscanf, iFppp_t) \ GO(execve, iFppp_t) \ GO(__asprintf, iFppV_t) \ + GO(__isoc23_fscanf, iFppV_t) \ + GO(__isoc23_sscanf, iFppV_t) \ GO(__isoc99_fscanf, iFppV_t) \ GO(__isoc99_sscanf, iFppV_t) \ GO(__isoc99_swscanf, iFppV_t) \ diff --git a/src/wrapped/wrappedlibc_private.h b/src/wrapped/wrappedlibc_private.h index efd5705b..1b5e6ef0 100644 --- a/src/wrapped/wrappedlibc_private.h +++ b/src/wrapped/wrappedlibc_private.h @@ -925,6 +925,9 @@ GO(__isnanf, iFf) GOW(isnanf, iFf) GO(__isnanl, iFD) GOW(isnanl, iFD) +GO2(__isoc23_fscanf, iFEppV, my___isoc99_fscanf) +GO2(__isoc23_sscanf, iFEppV, my___isoc99_sscanf) +GO2(__isoc23_strtol, lFppi, strtol) GOM(__isoc99_fscanf, iFEppV) //GO(__isoc99_fwscanf, iFppV) GOM(__isoc99_scanf, iFEpV)