Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow developer to select desired implementation of stdin, etc. #1900

Open
gneverov opened this issue Sep 4, 2024 · 0 comments
Open

allow developer to select desired implementation of stdin, etc. #1900

gneverov opened this issue Sep 4, 2024 · 0 comments
Milestone

Comments

@gneverov
Copy link

gneverov commented Sep 4, 2024

picolibc_interface.c currently defines strong symbols for stdin, stdout, and stderr that use the implementation from pico_stdio. There is no way for the developer to override this behavior.

Use cases

  • if picolibc was compiled with POSIX_IO, then picolibc already defines weak versions of stdin, etc.. Probably the developer intends to use this implementation, but it is silently overridden by the pico-sdk's implementation, which uses strong symbols.
  • the developer might define their own symbols for stdin, etc. and doesn't want them overridden or in conflict with what pico-sdk defines.
@kilograham kilograham added this to the 2.2.0 milestone Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants