conform: add ISO23 data for fenv.h

Message ID mvmv76vs32w.fsf@suse.de (mailing list archive)
State Under Review
Delegated to: Adhemerval Zanella Netto
Headers
Series conform: add ISO23 data for fenv.h |

Checks

Context Check Description
redhat-pt-bot/TryBot-apply_patch success Patch applied to master at the time it was sent
redhat-pt-bot/TryBot-32bit success Build for i686
linaro-tcwg-bot/tcwg_glibc_build--master-aarch64 success Build passed
linaro-tcwg-bot/tcwg_glibc_build--master-arm success Build passed
linaro-tcwg-bot/tcwg_glibc_check--master-arm success Test passed
linaro-tcwg-bot/tcwg_glibc_check--master-aarch64 success Test passed

Commit Message

Andreas Schwab Oct. 21, 2026, 11:30 a.m. UTC
  ---
 conform/data/fenv.h-data | 7 +++++++
 1 file changed, 7 insertions(+)
  

Comments

Joseph Myers Oct. 21, 2026, 7:20 p.m. UTC | #1
This is missing at least FE_DFL_MODE.  You need to check such conform/ 
patches against C23 to make sure they cover all the C23 changes to a 
header, including identifiers that were already reserved.
  

Patch

diff --git a/conform/data/fenv.h-data b/conform/data/fenv.h-data
index b3f674cc09..8acb8cdd07 100644
--- a/conform/data/fenv.h-data
+++ b/conform/data/fenv.h-data
@@ -29,6 +29,13 @@  function int fegetenv (fenv_t*)
 function int feholdexcept (fenv_t*)
 function int fesetenv (const fenv_t*)
 function int feupdateenv (const fenv_t *)
+#if defined ISO23
+type femode_t
+function int fegetmode (femode_t*)
+function int fesetmode (const femode_t*)
+function int fesetexcept (int)
+function int fetestexceptflag (const fexcept_t*, int)
+#endif
 
 #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined ISO23
 allow *_t