mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
include/fcntl.h: remove O_RDOK/O_WROK aliases
O_RDOK and O_WROK are non-standard aliases for O_RDONLY and O_WRONLY respectively. Having two names for the same flag creates confusion, especially when aligning the flag values with Linux. Remove the aliases and replace all uses with the standard O_RDONLY/O_WRONLY. No functional change — O_RDOK was defined as O_RDONLY and O_WROK as O_WRONLY, so the replacement is a pure text substitution. Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
1924a96064
commit
6161c73639
39 changed files with 73 additions and 75 deletions
|
|
@ -122,7 +122,7 @@ static int nxterm_open(FAR struct file *filep)
|
|||
/* Verify that the driver is opened for write-only access */
|
||||
|
||||
#ifndef CONFIG_NXTERM_NXKBDIN
|
||||
if ((filep->f_oflags & O_RDOK) != 0)
|
||||
if ((filep->f_oflags & O_RDONLY) != 0)
|
||||
{
|
||||
gerr("ERROR: Attempted open with read access\n");
|
||||
return -EACCES;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue