stdio: fix fgets(), add gets()#473
Conversation
There was a problem hiding this comment.
Code Review
This pull request removes the gets stub from posix/stubs.c and provides a functional implementation in stdio/file.c. The implementation introduces a static helper _fgets to share logic between fgets_unlocked and the new gets function, which now correctly handles locking on stdin. I have no feedback to provide as there were no review comments to evaluate.
Unit Test Results10 550 tests +7 9 892 ✅ +11 54m 11s ⏱️ +19s For more details on these failures, see this check. Results for commit 1a2af56. ± Comparison against base commit 1383f55. This pull request removes 82 and adds 89 tests. Note that renamed tests count towards both.♻️ This comment has been updated with latest results. |
8c3af92 to
fb9fffb
Compare
nalajcie
left a comment
There was a problem hiding this comment.
Adding multiple people before even the test were run (and failed)? Please be more mindful to the potential reviewers,
fb9fffb to
d95659e
Compare
d95659e to
578643c
Compare
578643c to
1a2af56
Compare
Fixes: phoenix-rtos/phoenix-rtos-project#1489
Description
Motivation and Context
Types of changes
How Has This Been Tested?
ia32-generic-qemuChecklist:
Special treatment