[dfs] Change the mode parameter of open to '...'

In the POSIX standard, the prototype of the open function is:
int open(const char *path, int oflag, ... );
This commit is contained in:
Bernard Xiong 2018-02-25 15:09:12 +08:00
parent 1a158e7e8a
commit 32bd3b312f
2 changed files with 14 additions and 14 deletions

View File

@ -119,7 +119,7 @@ int closedir(DIR* d);
struct stat;
/* file api*/
int open(const char *file, int flags, int mode);
int open(const char *file, int flags, ...);
int close(int d);
#ifdef RT_USING_NEWLIB
_READ_WRITE_RETURN_TYPE _EXFUN(read, (int __fd, void *__buf, size_t __nbyte));

View File

@ -41,7 +41,7 @@
*
* @return the non-negative integer on successful open, others for failed.
*/
int open(const char *file, int flags, int mode)
int open(const char *file, int flags, ...)
{
int fd, result;
struct dfs_fd *d;