apps: Replace O_RDOK with O_RDONLY after alias removal

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>
This commit is contained in:
Xiang Xiao 2026-06-25 03:23:52 +08:00 committed by CeDeROM
parent a2b1cc16da
commit 4c560ef0a2
3 changed files with 4 additions and 4 deletions

View file

@ -664,7 +664,7 @@ int main(int argc, FAR char *argv[])
/* Open the /dev/config device */
g_fd = open("/dev/config", O_RDOK);
g_fd = open("/dev/config", O_RDONLY);
if (g_fd == -1)
{
printf("ERROR: Failed to open /dev/config %d\n", -errno);