summaryrefslogtreecommitdiff
path: root/components/dfs/include
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2018-06-10 17:57:34 +0800
committerBernard Xiong <[email protected]>2018-06-10 17:57:34 +0800
commitbca65f30a90857287dc1371ddbc8d5f165691c7f (patch)
tree73f7c113f17883996ddb2009bbb8726b9f6c5f0a /components/dfs/include
parent682da9b249c8019c078b277742a6b36deb2af7b2 (diff)
[lwP] Add light weight process component.
Diffstat (limited to 'components/dfs/include')
-rw-r--r--components/dfs/include/dfs.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/components/dfs/include/dfs.h b/components/dfs/include/dfs.h
index 91ef42ab56..f17458bd69 100644
--- a/components/dfs/include/dfs.h
+++ b/components/dfs/include/dfs.h
@@ -95,6 +95,12 @@ struct dirent
char d_name[DFS_PATH_MAX]; /* The null-terminated file name */
};
+struct dfs_fdtable
+{
+ uint32_t maxfd;
+ struct dfs_fd **fds;
+};
+
/* Initialization of dfs */
int dfs_init(void);
@@ -110,6 +116,8 @@ struct dfs_fd *fd_get(int fd);
void fd_put(struct dfs_fd *fd);
int fd_is_open(const char *pathname);
+struct dfs_fdtable* dfs_fdtable_get(void);
+
#ifdef __cplusplus
}
#endif