verify fenv header includes

This commit is contained in:
auronandace
2026-06-08 07:43:11 +01:00
parent e4617b4ba3
commit 44e2301dbc
2 changed files with 12 additions and 4 deletions
+9 -1
View File
@@ -1,4 +1,12 @@
sys_includes = ["stdint.h"]
# POSIX header spec: https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/fenv.h.html
#
# There are no spec quotations relating to includes
#
# TODO figure out what type to use for `fenv_t` and `fexcept_t`
# currently using `c_ulonglong` as it doesn't bring in
# stdint.h (which would be considered namespace pollution)
#
# NOTE this header is not currently exported as we are using openlibm
include_guard = "_RELIBC_FENV_H"
language = "C"
style = "Tag"
+3 -3
View File
@@ -2,7 +2,7 @@
//!
//! See <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/fenv.h.html>.
use crate::platform::types::c_int;
use crate::platform::types::{c_int, c_ulonglong};
/// See <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/fenv.h.html>.
pub const FE_ALL_EXCEPT: c_int = 0;
@@ -10,12 +10,12 @@ pub const FE_ALL_EXCEPT: c_int = 0;
pub const FE_TONEAREST: c_int = 0;
/// See <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/fenv.h.html>.
pub type fexcept_t = u64;
pub type fexcept_t = c_ulonglong;
/// See <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/fenv.h.html>.
#[repr(C)]
pub struct fenv_t {
pub cw: u64,
pub cw: c_ulonglong,
}
/// See <https://pubs.opengroup.org/onlinepubs/9799919799/functions/feclearexcept.html>.