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

libc: implement scanf() #66949

Open
ycsin opened this issue Dec 24, 2023 · 4 comments
Open

libc: implement scanf() #66949

ycsin opened this issue Dec 24, 2023 · 4 comments
Assignees
Labels
area: C Library C Standard Library Enhancement Changes/Updates/Additions to existing features Good first issue Good for a first time contributor to take

Comments

@ycsin
Copy link
Member

ycsin commented Dec 24, 2023

This was originally added as a ticket under POSIX, but scanf() is not a POSIX function. It is from C89.

https://en.cppreference.com/w/c/io/scanf

The expectation from the POSIX API is that this function is implemented as part of whatever C library is in use.

@ycsin ycsin added Feature Request A request for a new feature Good first issue Good for a first time contributor to take area: POSIX POSIX API Library labels Dec 24, 2023
@nashif nashif added Enhancement Changes/Updates/Additions to existing features and removed Feature Request A request for a new feature labels Jan 19, 2024
@cfriedt cfriedt added area: C Library C Standard Library and removed area: POSIX POSIX API Library labels Jun 11, 2024
@cfriedt cfriedt removed their assignment Jun 11, 2024
@cfriedt cfriedt changed the title posix: implement scanf() libc: implement scanf() Jun 11, 2024
@CiaranRoche1
Copy link

Hi, just wondering if there has been any progress made on any of these libc functions, or am I all good to try to implement some of these myself?

@cfriedt
Copy link
Member

cfriedt commented Sep 30, 2024

Hi, just wondering if there has been any progress made on any of these libc functions, or am I all good to try to implement some of these myself?

@CiaranRoche1 - I think the minimal libc might need an implementation.

Ideally, we would have an abstraction that could be used by both libc and POSIX as part of ZVFS. There are likely some hooks for picolibc and newlib that are involved. Minimal libc might need a bit more.

@ycsin - was there some progress on unlocked file I/o?

@CiaranRoche1
Copy link

@cfriedt - This sounds interesting! Right now I am looking for something to tackle as my first issue, so I might take a crack at implementing a new function in libc.

However, I would love to be involved in any progress you want to make on making an abstraction for libc and POSIX. Keep me posted!

@cfriedt
Copy link
Member

cfriedt commented Sep 30, 2024

@CiaranRoche1 - alternatively, for your first issue, it might be good to find an easy bug to tackle at the url below. Unfortunately, the good first issue label is not used very consistently in Zephyr

https://github.com/zephyrproject-rtos/zephyr/issues?q=is%3Aopen+is%3Aissue+label%3Abug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: C Library C Standard Library Enhancement Changes/Updates/Additions to existing features Good first issue Good for a first time contributor to take
Projects
None yet
Development

No branches or pull requests

5 participants