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: Make perror work without CONFIG_FILE_STREAM #4829

Merged
merged 1 commit into from
Nov 18, 2021

Conversation

xiaoxiang781216
Copy link
Contributor

Summary

Impact

Minor

Testing

Pass CI

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Copy link
Contributor

@davids5 davids5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@xiaoxiang781216 What was the motivation for this change?

@xiaoxiang781216
Copy link
Contributor Author

Let, the stdio(implicitly accept stdin/stdout/stderr) API work even the general stdio(fopen, fclose) API doesn't exist. This is the practice already used for printf:
https://github.com/apache/incubator-nuttx/blob/master/libs/libc/stdio/lib_printf.c#L43-L47
and relate to make nsh work even without FILE related API:
#4819
apache/nuttx-apps#892

@xiaoxiang781216
Copy link
Contributor Author

@davids5 do you have any more concern?

@xiaoxiang781216
Copy link
Contributor Author

@davids5 could you merge this PR?

@davids5 davids5 merged commit bd2327c into apache:master Nov 18, 2021
@xiaoxiang781216 xiaoxiang781216 deleted the stdio3 branch November 18, 2021 15:09
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

Successfully merging this pull request may close these issues.

2 participants