summaryrefslogtreecommitdiff
path: root/components/dfs/include
diff options
context:
space:
mode:
authorBernardXiong <[email protected]>2017-12-31 14:46:24 +0800
committerBernardXiong <[email protected]>2017-12-31 14:46:24 +0800
commit5a95d356264ab1ef20729aa45887ad641114a9ae (patch)
treebe1f9cf39ff4160ba2b7d539a8017f26535bfa60 /components/dfs/include
parent8246da645d4569ca8d29c6b54efefaf4c313b343 (diff)
[DFS] Add fcntl API (same with ioctl in RT-Thread).
Diffstat (limited to 'components/dfs/include')
-rw-r--r--components/dfs/include/dfs_posix.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/dfs/include/dfs_posix.h b/components/dfs/include/dfs_posix.h
index b0fe2041ab..9b2ff25b80 100644
--- a/components/dfs/include/dfs_posix.h
+++ b/components/dfs/include/dfs_posix.h
@@ -22,6 +22,7 @@
* 2009-05-27 Yi.qiu The first version.
* 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.
*/
#ifndef __DFS_POSIX_H__
@@ -66,6 +67,7 @@ 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);
/* directory api*/