浏览代码

[dfs] 保留dfs_poll.h dfs_select.h,加warning提示

Jianting (Meco) Man 3 年之前
父节点
当前提交
702b91c3ce
共有 2 个文件被更改,包括 34 次插入0 次删除
  1. 17 0
      components/dfs/include/dfs_poll.h
  2. 17 0
      components/dfs/include/dfs_select.h

+ 17 - 0
components/dfs/include/dfs_poll.h

@@ -0,0 +1,17 @@
+/*
+ * 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__ */

+ 17 - 0
components/dfs/include/dfs_select.h

@@ -0,0 +1,17 @@
+/*
+ * 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