4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-02-28 01:57:05 +08:00

Merge pull request #1891 from qgyhd1234/dfs

[dfs] fix ioctl getflag/setflag issue.
This commit is contained in:
Bernard Xiong 2018-10-14 10:21:54 +08:00 committed by GitHub
commit cc883ad29a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -189,7 +189,7 @@ int dfs_file_ioctl(struct dfs_fd *fd, int cmd, void *args)
int mask = O_NONBLOCK | O_APPEND; int mask = O_NONBLOCK | O_APPEND;
flags &= mask; flags &= mask;
fd->flags &= mask; fd->flags &= ~mask;
fd->flags |= flags; fd->flags |= flags;
} }
return 0; return 0;

View File

@ -455,7 +455,7 @@ int fcntl(int fildes, int cmd, ...)
ret = -1; ret = -1;
} }
return 0; return ret;
} }
RTM_EXPORT(fcntl); RTM_EXPORT(fcntl);