From bca65f30a90857287dc1371ddbc8d5f165691c7f Mon Sep 17 00:00:00 2001 From: Bernard Xiong Date: Sun, 10 Jun 2018 17:57:34 +0800 Subject: [lwP] Add light weight process component. --- components/dfs/include/dfs.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'components/dfs/include') 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 -- cgit v1.3.1