summaryrefslogtreecommitdiff
path: root/components/dfs/include
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2018-02-07 19:49:31 +0800
committerBernard Xiong <[email protected]>2018-02-07 19:55:35 +0800
commit4e41b0573b93468c8cfd3425ed2f13c8ec0574f6 (patch)
tree52b287edfe40410d14d48675caaf1c5c2c043bcd /components/dfs/include
parent64a20c0f154b0c9facfefb8b02ba3584b2a9eeb5 (diff)
[libc] fix the fcntl issue in newlib
Diffstat (limited to 'components/dfs/include')
-rw-r--r--components/dfs/include/dfs_posix.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/components/dfs/include/dfs_posix.h b/components/dfs/include/dfs_posix.h
index 9b2ff25b80..b751f1ed17 100644
--- a/components/dfs/include/dfs_posix.h
+++ b/components/dfs/include/dfs_posix.h
@@ -23,6 +23,7 @@
* 2010-07-18 Bernard add stat and statfs structure definitions.
* 2011-05-16 Yi.qiu Change parameter name of rename, "new" is C++ key word.
* 2017-12-27 Bernard Add fcntl API.
+ * 2018-02-07 Bernard Change the 3rd parameter of open/fcntl/ioctl to '...'
*/
#ifndef __DFS_POSIX_H__
@@ -52,7 +53,7 @@ void rewinddir(DIR *d);
int closedir(DIR* d);
/* 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));
@@ -67,8 +68,8 @@ int unlink(const char *pathname);
int stat(const char *file, struct stat *buf);
int fstat(int fildes, struct stat *buf);
int fsync(int fildes);
-int fcntl(int fildes, int cmd, void *data);
-int ioctl(int fildes, int cmd, void *data);
+int fcntl(int fildes, int cmd, ...);
+int ioctl(int fildes, int cmd, ...);
/* directory api*/
int rmdir(const char *path);