Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
缘_顺
rt-thread
提交
854d8866
R
rt-thread
项目概览
缘_顺
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
854d8866
编写于
5月 02, 2015
作者:
B
Bernard Xiong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[DFS] fix the compiling issue under Keil MDK.
上级
5ca3da9e
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
81 addition
and
3 deletion
+81
-3
components/dfs/filesystems/lwip/dfs_lwip.h
components/dfs/filesystems/lwip/dfs_lwip.h
+2
-0
components/dfs/filesystems/lwip/lwip_sockets.c
components/dfs/filesystems/lwip/lwip_sockets.c
+2
-1
components/dfs/filesystems/lwip/sys/select.h
components/dfs/filesystems/lwip/sys/select.h
+46
-0
components/dfs/filesystems/lwip/sys/socket.h
components/dfs/filesystems/lwip/sys/socket.h
+3
-1
components/dfs/include/dfs_posix.h
components/dfs/include/dfs_posix.h
+10
-0
components/net/lwip-1.4.1/src/lwipopts.h
components/net/lwip-1.4.1/src/lwipopts.h
+18
-1
未找到文件。
components/dfs/filesystems/lwip/dfs_lwip.h
浏览文件 @
854d8866
...
...
@@ -29,6 +29,8 @@
extern
"C"
{
#endif
#include <lwip/sockets.h>
struct
dfs_filesystem
*
dfs_lwip_get_fs
(
void
);
int
dfs_lwip_getsocket
(
int
fd
);
...
...
components/dfs/filesystems/lwip/lwip_sockets.c
浏览文件 @
854d8866
...
...
@@ -24,7 +24,8 @@
#include <dfs.h>
#include <dfs_def.h>
#include <lwip/sockets.h>
#include <dfs_posix.h>
#include <sys/socket.h>
#include "dfs_lwip.h"
...
...
components/dfs/filesystems/lwip/sys/select.h
0 → 100644
浏览文件 @
854d8866
/*
* File : select.h
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2015, RT-Thread Development Team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Change Logs:
* Date Author Notes
* 2015-05-02 Bernard First version
*/
#ifndef SELECT_H__
#define SELECT_H__
#ifdef __cplusplus
extern
"C"
{
#endif
/* select API */
#ifdef RT_USING_LWIP
/* we use lwIP's structure definitions. */
#include <lwip/sockets.h>
int
select
(
int
maxfdp1
,
fd_set
*
readset
,
fd_set
*
writeset
,
fd_set
*
exceptset
,
struct
timeval
*
timeout
);
#endif
#ifdef __cplusplus
}
#endif
#endif
components/dfs/filesystems/lwip/sys/socket.h
浏览文件 @
854d8866
/*
* File :
netdb
.h
* File :
socket
.h
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2015, RT-Thread Development Team
*
...
...
@@ -29,6 +29,8 @@
extern
"C"
{
#endif
#include <lwip/sockets.h>
int
accept
(
int
s
,
struct
sockaddr
*
addr
,
socklen_t
*
addrlen
);
int
bind
(
int
s
,
const
struct
sockaddr
*
name
,
socklen_t
namelen
);
int
shutdown
(
int
s
,
int
how
);
...
...
components/dfs/include/dfs_posix.h
浏览文件 @
854d8866
...
...
@@ -30,6 +30,10 @@
#include <dfs_file.h>
#include <dfs_def.h>
#ifdef __cplusplus
extern
"C"
{
#endif
#ifndef RT_USING_NEWLIB
#define O_RDONLY DFS_O_RDONLY
#define O_WRONLY DFS_O_WRONLY
...
...
@@ -79,6 +83,7 @@
#if defined(__CC_ARM)
#include <stdio.h>
#include <stdlib.h>
#elif defined(_MSC_VER)
#include <stdio.h>
#else
...
...
@@ -109,6 +114,8 @@ int closedir(DIR* d);
#include <sys/stat.h>
#endif
struct
stat
;
/* file api*/
int
open
(
const
char
*
file
,
int
flags
,
int
mode
);
int
close
(
int
d
);
...
...
@@ -126,5 +133,8 @@ int rmdir(const char *path);
int
chdir
(
const
char
*
path
);
char
*
getcwd
(
char
*
buf
,
size_t
size
);
#ifdef __cplusplus
}
#endif
#endif
components/net/lwip-1.4.1/src/lwipopts.h
浏览文件 @
854d8866
...
...
@@ -353,8 +353,25 @@
#define LWIP_RAND rand
#endif
#if
def RT_USING_DFS_LWIP
#if
defined(RT_USING_DFS_LWIP)
#define LWIP_COMPAT_SOCKETS 0
#endif
#if defined(__CC_ARM) || defined(__IAR_SYSTEMS_ICC__)
#if defined(RT_USING_PTHREADS)
#define LWIP_TIMEVAL_PRIVATE 0
#include <posix_types.h>
#else
/* there is no timeval in CC_ARM and IAR */
#define LWIP_TIMEVAL_PRIVATE 1
#endif
/* RT_USING_PTHREADS */
#elif defined (__GNUC__)
#define LWIP_TIMEVAL_PRIVATE 0
#include <sys/time.h>
#endif
#endif
/* __LWIPOPTS_H__ */
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录