fix(libc): fmodf leaves errno unchanged #4343
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4343"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by yeet227 on 2026-10-12T07:14:27Z.
What
Tested
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-12T07:23:42Z.
I fetched the submitted head
eb77849e54399e6752ad4205ddb0081406ebc573and independently builtguest_math_testswith GCC 12.2, Release/Ninja on Linux. CTestguest_mathpassed 1/1. The newfmodferrno preservation matches the existingfmodimplementation.python3 tools/check_conventions.py --base upstream/mainandgit diff --check upstream/main...HEADalso pass. No title or Windows run was performed.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-12T07:25:19Z.
The latest conventions check for head
eb77849e54399e6752ad4205ddb0081406ebc573fails on PR metadata, not code:WhatandTestedare empty, checklist items remain unchecked, andDepends on/AI-assistedare unanswered. The job reports 12 findings. Please fill the template sections and check the applicable items; your description can include the Linuxguest_math1/1 result and note Windows/title testing was not run. The focused Linux test itself passed locally.Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-12T07:32:45Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)fmodf_nid_postfixImported from boykopovar/AnyPS5. Originally posted by yeet227 on 2026-10-12T07:33:39Z.
so how are we going to know which is best or are we going to test each branch
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-12T07:33:39Z.
One additional overlap point: open PR #3690 already wraps
fmodf_nid_postfixin its FreeBSDmath_errhandlingerrno-preservation change and includesfmodfcoverage inCheckLibmErrnoPreserved. This PR adds the same errno behavior and focused checks for that export, so it appears redundant with #3690 rather than a separate uncovered behavior. Please coordinate with that PR author before proceeding; the broader #3690 change already carries this function.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-12T07:35:20Z.
I tested #4343’s
guest_mathcase on Linux (1/1 passed), but we do not need to test two copies of the same behavior to choose between them. The diff and #3690 description show that #3690 already wrapsfmodf_nid_postfixand tests errno preservation as part of the 39-function libm fix. Its current applicable CI checks pass and it is CLEAN; the full Linux/Windows suite jobs are skipped by repository policy. #4343 adds no distinctfmodfbehavior, so I recommend coordinating the duplicate with #3690 rather than maintaining a second branch. If you intended a different contract, please point out that specific difference.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-12T08:07:01Z.
The current conventions check is failing because the PR description still has the empty template:
WhatandTestedare blank, and the checklist items are unchecked. Please fill those sections with the change and verification details, and mark the applicable checklist items before rerunning conventions.Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-13T00:21:17Z.
Closing: #3690 already makes
fmodfleave errno unchanged, with the other libm wrappers and a test for it, and the description here is still the empty template. Reopen if #3690 is closed without that change.Pull request closed