feat(libc): implement atoll #1591

Closed
MarcZX10 wants to merge 2 commits from upstream-pr/1591 into main
MarcZX10 commented 2026-10-08 13:56:40 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-08T13:56:40Z.


What

Implement atoll with the standard base-10 conversion semantics and add a dedicated guest test for whitespace, signs, trailing characters, invalid input, and 64-bit limits.

Tested

Linux, GCC 12.2.0: guest_atoll passed; conventions check and git diff --check passed.

Checklist

  • Based on current main; no open PR implements atoll
  • One topic per PR; the test is isolated from the open GuestStrings.cpp changes in #1490
  • No comments or investigation files added
  • Generic standard-library behavior
  • Depends on: none
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4787891772 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1591). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-08T13:56:40Z. --- ### What Implement `atoll` with the standard base-10 conversion semantics and add a dedicated guest test for whitespace, signs, trailing characters, invalid input, and 64-bit limits. ### Tested Linux, GCC 12.2.0: `guest_atoll` passed; conventions check and `git diff --check` passed. ### Checklist - [x] Based on current `main`; no open PR implements `atoll` - [x] One topic per PR; the test is isolated from the open `GuestStrings.cpp` changes in #1490 - [x] No comments or investigation files added - [x] Generic standard-library behavior - [x] Depends on: none - [x] AI-assisted: yes
MarcZX10 commented 2026-10-08 14:07:04 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-08T14:07:04Z.


I moved the atoll assertions into a dedicated GuestAtoll.cpp / guest_atoll test so this PR no longer edits the GuestStrings.cpp lines reported by the overlap notice for #1490. The current diff is isolated from that test PR.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6061662214 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1591#issuecomment-6061662214). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-08T14:07:04Z. --- I moved the `atoll` assertions into a dedicated `GuestAtoll.cpp` / `guest_atoll` test so this PR no longer edits the `GuestStrings.cpp` lines reported by the overlap notice for #1490. The current diff is isolated from that test PR.
MarcZX10 commented 2026-10-08 19:27:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-08T19:27:52Z.


Closing for now based on the maintainer’s current evidence bar on the adjacent import-audit PRs: #1578 lists this export, but no title is shown calling it on current main. Reopen when a title stops here during a real run, with the log line.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6067453637 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1591#issuecomment-6067453637). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-08T19:27:52Z. --- Closing for now based on the maintainer’s current evidence bar on the adjacent import-audit PRs: #1578 lists this export, but no title is shown calling it on current main. Reopen when a title stops here during a real run, with the log line.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!1591
No description provided.