mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-03-27 01:10:20 +08:00
[dfs] fix ioctl getflag/setflag issue.
This commit is contained in:
@@ -189,7 +189,7 @@ int dfs_file_ioctl(struct dfs_fd *fd, int cmd, void *args)
|
||||
int mask = O_NONBLOCK | O_APPEND;
|
||||
|
||||
flags &= mask;
|
||||
fd->flags &= mask;
|
||||
fd->flags &= ~mask;
|
||||
fd->flags |= flags;
|
||||
}
|
||||
return 0;
|
||||
|
||||
@@ -455,7 +455,7 @@ int fcntl(int fildes, int cmd, ...)
|
||||
ret = -1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
return ret;
|
||||
}
|
||||
RTM_EXPORT(fcntl);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user