extinguish opened a new pull request, #17862: URL: https://github.com/apache/nuttx/pull/17862
## Summary Update the fsetpos() function to comply with the POSIX standard by changing its pos parameter type from fpos_t * to const fpos_t *. This modification is applied both in the header declaration (include/stdio.h) and the implementation (libs/libc/stdio/lib_fsetpos.c). ## Impact 1. Aligns NuttX’s fsetpos() API with the POSIX specification, which requires the position argument to be const-qualified. 2. Improves API safety by explicitly indicating that fsetpos() does not modify the fpos_t object passed by the caller. 3. Maintains full source‑level backward compatibility—existing code continues to compile without changes due to implicit pointer‑to‑const conversion. ## Testing Verified that all existing uses of fsetpos() compile cleanly with the updated signature. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
