Files
RedBear-OS/local/recipes/dev/libclc/source/libc/include/fenv.yaml
T
vasilito cb424d7448 build: static patch-sanity linter (shift-left the malformed-patch class)
verify-patch-sanity.py validates every active recipe .patch has internally-
consistent hunk line counts — catching the 'malformed patch at line N' failure
at commit/CI/preflight time instead of hours into a cook. This cycle hit that
class three times (qtwaylandscanner, sddm, xwayland), each only discovered when
cookbook tried to apply the patch.

Running it across the repo found 29 latent malformed patches (validated against
GNU patch: e.g. relibc/P3-sysv-ipc reproduces 'malformed patch at line 22').
They were harmless only because they sit in vendored recipes (baked, not re-
applied) — but would fail on any version-bump re-derivation. --fix recounts the
hunk headers (body untouched) and repaired all 29.

Wired into build-preflight.sh (Phase 1.0D) and redbear-ci.yml, with a unit test
(test-patch-sanity.sh). Skips archived/legacy trees and unvalidatable formats
(empty placeholders, bare-@@ git hunks).
2026-08-01 05:13:02 +03:00

130 lines
2.5 KiB
YAML

header: fenv.h
standards:
- stdc
macros:
- macro_name: FE_ALL_EXCEPT
macro_header: fenv-macros.h
- macro_name: FE_DIVBYZERO
macro_header: fenv-macros.h
- macro_name: FE_INEXACT
macro_header: fenv-macros.h
- macro_name: FE_INVALID
macro_header: fenv-macros.h
- macro_name: FE_OVERFLOW
macro_header: fenv-macros.h
- macro_name: FE_UNDERFLOW
macro_header: fenv-macros.h
- macro_name: FE_DOWNWARD
macro_header: fenv-macros.h
- macro_name: FE_TONEAREST
macro_header: fenv-macros.h
- macro_name: FE_TOWARDZERO
macro_header: fenv-macros.h
- macro_name: FE_UPWARD
macro_header: fenv-macros.h
- macro_name: FE_DFL_ENV
macro_header: fenv-macros.h
types:
- type_name: fenv_t
- type_name: fexcept_t
functions:
- name: feclearexcept
standards:
- stdc
return_type: int
arguments:
- type: int
- name: fedisableexcept
standards:
- gnu
return_type: int
arguments:
- type: int
guard: null
- name: feenableexcept
standards:
- gnu
return_type: int
arguments:
- type: int
attributes: []
- name: fegetenv
standards:
- stdc
return_type: int
arguments:
- type: fenv_t *
- name: fegetexcept
standards:
- gnu
return_type: int
arguments: []
- name: fegetexceptflag
standards:
- stdc
return_type: int
arguments:
- type: fexcept_t *
- type: int
- name: fegetround
standards:
- stdc
return_type: int
arguments: []
- name: feholdexcept
standards:
- stdc
return_type: int
arguments:
- type: fenv_t *
- name: feraiseexcept
standards:
- stdc
return_type: int
arguments:
- type: int
- name: fesetenv
standards:
- stdc
return_type: int
arguments:
- type: const fenv_t *
- name: fesetexcept
standards:
- stdc
return_type: int
arguments:
- type: int
- name: fesetexceptflag
standards:
- stdc
return_type: int
arguments:
- type: const fexcept_t *
- type: int
- name: fesetround
standards:
- stdc
return_type: int
arguments:
- type: int
- name: fetestexcept
standards:
- stdc
return_type: int
arguments:
- type: int
- name: fetestexceptflag
standards:
- stdc
return_type: int
arguments:
- type: const fexcept_t *
- type: int
- name: feupdateenv
standards:
- stdc
return_type: int
arguments:
- type: const fenv_t *