diff options
| author | 192.168.1.134 <[email protected]> | 2021-12-09 19:18:24 +0800 |
|---|---|---|
| committer | 192.168.1.134 <[email protected]> | 2021-12-09 19:18:24 +0800 |
| commit | 6378f95f00fd51410d2715da55d728d4a40494de (patch) | |
| tree | bb46a565875d538189e1c1dfc9b1cfddf6862a92 /components/dfs/include | |
| parent | d6b05287bbeaf9369546009e5af445f350b97fe9 (diff) | |
| parent | 462f093cbd7531098de3b7aadb5f8d5f1b99b4a9 (diff) | |
Merge branch 'master' of https://github.com/RT-Thread/rt-thread
Diffstat (limited to 'components/dfs/include')
| -rw-r--r-- | components/dfs/include/dfs.h | 8 | ||||
| -rw-r--r-- | components/dfs/include/dfs_poll.h | 17 | ||||
| -rw-r--r-- | components/dfs/include/dfs_select.h | 17 |
3 files changed, 5 insertions, 37 deletions
diff --git a/components/dfs/include/dfs.h b/components/dfs/include/dfs.h index 38f19aa7e7..678ff0e377 100644 --- a/components/dfs/include/dfs.h +++ b/components/dfs/include/dfs.h @@ -81,16 +81,18 @@ int dfs_init(void); char *dfs_normalize_path(const char *directory, const char *filename); const char *dfs_subdir(const char *directory, const char *filename); +int fd_is_open(const char *pathname); +struct dfs_fdtable *dfs_fdtable_get(void); + void dfs_lock(void); void dfs_unlock(void); +#ifdef DFS_USING_POSIX /* FD APIs */ int fd_new(void); 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); +#endif /* DFS_USING_POSIX */ #ifdef __cplusplus } diff --git a/components/dfs/include/dfs_poll.h b/components/dfs/include/dfs_poll.h deleted file mode 100644 index cba73b04d4..0000000000 --- a/components/dfs/include/dfs_poll.h +++ /dev/null @@ -1,17 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - */ - -#ifndef DFS_POLL_H__ -#define DFS_POLL_H__ - -#include <poll.h> - -#warning "This file will be obsolete in the next version! Please use <poll.h> to instead." - -#endif /* DFS_POLL_H__ */ diff --git a/components/dfs/include/dfs_select.h b/components/dfs/include/dfs_select.h deleted file mode 100644 index 5b7c6428bd..0000000000 --- a/components/dfs/include/dfs_select.h +++ /dev/null @@ -1,17 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - */ - -#ifndef DFS_SELECT_H__ -#define DFS_SELECT_H__ - -#include <sys/select.h> - -#warning "This file will be obsolete in the next version! Please use <sys/select.h> to instead." - -#endif |
