Skip to content

Replace O_RDOK with O_RDONLY after alias removal#3566

Merged
cederom merged 1 commit into
apache:masterfrom
xiaoxiang781216:upstream-oflags
Jun 28, 2026
Merged

Replace O_RDOK with O_RDONLY after alias removal#3566
cederom merged 1 commit into
apache:masterfrom
xiaoxiang781216:upstream-oflags

Conversation

@xiaoxiang781216

Copy link
Copy Markdown
Contributor

Summary

The non-standard O_RDOK/O_WROK aliases are being removed from NuttX's include/fcntl.h (separate nuttx PR). They were simply aliases for O_RDONLY/O_WRONLY. This change replaces all remaining O_RDOK usage in the apps repository with the standard O_RDONLY.

Affected files:

  • examples/configdata/configdata_main.c
  • nshlib/nsh_script.c
  • platform/mikroe-stm32f4/mikroe_configdata.c

Impact

No functional change. O_RDOK was defined as O_RDONLY, so this is a pure text substitution that keeps the same behavior while using the standard POSIX flag name. Safe to merge independently — O_RDONLY is and remains defined in upstream nuttx.

Testing

  • tools/checkpatch.sh -f passes on all three changed files.
  • Builds cleanly against apache/nuttx master.

The O_RDOK/O_WROK aliases have been removed from fcntl.h.  Replace
all remaining O_RDOK usage with O_RDONLY in the apps repository.

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

@cederom cederom left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you @xiaoxiang781216 :-)

@cederom cederom merged commit 4c560ef into apache:master Jun 28, 2026
41 checks passed
@xiaoxiang781216 xiaoxiang781216 deleted the upstream-oflags branch June 29, 2026 01:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants