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/stdio: Support 'e'(O_CLOEXEC) in lib_mode2oflags #6357

Merged
merged 5 commits into from
Jun 7, 2022

Conversation

xiaoxiang781216
Copy link
Contributor

@xiaoxiang781216 xiaoxiang781216 commented Jun 2, 2022

Summary

and make the binary(no process) mode as the default

Impact

Can add O_CLOEXEC flags in fopen

Testing

Pass CI

include/sys/eventfd.h Outdated Show resolved Hide resolved
@davids5 davids5 added the breaking change This change requires a mitigation entry in the release notes. label Jun 5, 2022
@xiaoxiang781216
Copy link
Contributor Author

@davids5 this isn't breaking change, both flags still exist. BTW, no code in NuttX handle O_BINARY/O_TEXT flag at all, how it will break your code?

@davids5 davids5 removed the breaking change This change requires a mitigation entry in the release notes. label Jun 5, 2022
POSIX require file system shouldn't enable the \r and \n conversion by default
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
@pkarashchenko pkarashchenko merged commit f1236da into apache:master Jun 7, 2022
@xiaoxiang781216 xiaoxiang781216 deleted the fopen branch June 7, 2022 19:00
anchao added a commit to anchao/nuttx that referenced this pull request Apr 11, 2023
follow the change: apache#6357

Signed-off-by: chao an <anchao@xiaomi.com>
anchao added a commit to anchao/nuttx that referenced this pull request Apr 11, 2023
1. align the operation flags define with fcntl.h

follow the change: apache#6357

2. enable O_BINARY flag to set the default setting to untranslated mode

Since the initial default setting in MSVC is text mode ( _O_TEXT ):
https://learn.microsoft.com/en-us/cpp/c-runtime-library/text-and-binary-mode-file-i-o?view=msvc-170

Signed-off-by: chao an <anchao@xiaomi.com>
anchao added a commit to anchao/nuttx that referenced this pull request Apr 11, 2023
follow the change: apache#6357

Signed-off-by: chao an <anchao@xiaomi.com>
xiaoxiang781216 pushed a commit that referenced this pull request Apr 18, 2023
follow the change: #6357

Signed-off-by: chao an <anchao@xiaomi.com>
anchao added a commit to anchao/nuttx that referenced this pull request Jul 14, 2023
follow the change: apache#6357

Signed-off-by: chao an <anchao@xiaomi.com>
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.

3 participants