Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Kernel Liteos M
提交
a09d38a9
K
Kernel Liteos M
项目概览
OpenHarmony
/
Kernel Liteos M
大约 1 年 前同步成功
通知
20
Star
28
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel Liteos M
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
a09d38a9
编写于
4月 16, 2021
作者:
O
openharmony_ci
提交者:
Gitee
4月 16, 2021
浏览文件
操作
浏览文件
下载
差异文件
!70 lwip适配内核posix接口
Merge pull request !70 from 刘建东/master
上级
e000ba39
92c4e63a
变更
12
显示空白变更内容
内联
并排
Showing
12 changed file
with
10 addition
and
18 deletion
+10
-18
components/net/lwip-2.1/porting/include/arch/cc.h
components/net/lwip-2.1/porting/include/arch/cc.h
+1
-1
components/net/lwip-2.1/porting/include/lwip/netdb.h
components/net/lwip-2.1/porting/include/lwip/netdb.h
+0
-4
components/net/test/lwip_test.h
components/net/test/lwip_test.h
+0
-1
components/net/test/net_socket_test_002.c
components/net/test/net_socket_test_002.c
+0
-1
components/net/test/net_socket_test_003.c
components/net/test/net_socket_test_003.c
+0
-1
components/net/test/net_socket_test_007.c
components/net/test/net_socket_test_007.c
+0
-1
components/net/test/net_socket_test_008.c
components/net/test/net_socket_test_008.c
+0
-2
components/net/test/net_socket_test_009.c
components/net/test/net_socket_test_009.c
+0
-2
components/net/test/net_socket_test_010.c
components/net/test/net_socket_test_010.c
+0
-2
components/net/test/net_socket_test_012.c
components/net/test/net_socket_test_012.c
+0
-1
components/net/test/net_socket_test_013.c
components/net/test/net_socket_test_013.c
+0
-2
kal/posix/musl_src/network/h_errno.c
kal/posix/musl_src/network/h_errno.c
+9
-0
未找到文件。
components/net/lwip-2.1/porting/include/arch/cc.h
浏览文件 @
a09d38a9
...
...
@@ -44,7 +44,6 @@
#include <stdio.h>
#include <stdlib.h>
#include "securec.h"
#include "log.h"
#include "memory_pool.h"
#ifdef htons
...
...
@@ -62,6 +61,7 @@
#define LWIP_DNS_API_DEFINE_ERRORS 0
#define LWIP_DNS_API_DEFINE_FLAGS 0
#define LWIP_DNS_API_DECLARE_STRUCTS 0
#define LWIP_DNS_API_DECLARE_H_ERRNO 0
#ifndef __SIZEOF_POINTER__
#define __SIZEOF_POINTER__ 4 // 32 bit system
...
...
components/net/lwip-2.1/porting/include/lwip/netdb.h
浏览文件 @
a09d38a9
...
...
@@ -35,8 +35,4 @@
#include <netdb.h>
#include_next <lwip/netdb.h>
#ifdef h_errno
#undef h_errno
#endif
#endif
/* _LWIP_PORTING_NETDB_H_ */
components/net/test/lwip_test.h
浏览文件 @
a09d38a9
...
...
@@ -36,7 +36,6 @@
#include "lwip/sockets.h"
#include <sys/socket.h>
#include <arpa/inet.h>
#include "log.h"
#include "securec.h"
#ifdef __cplusplus
...
...
components/net/test/net_socket_test_002.c
浏览文件 @
a09d38a9
...
...
@@ -38,7 +38,6 @@
#define TEST_CASE 120
static
char
g_buf
[
BUF_SIZE
+
1
]
=
{
0
};
extern
sys_thread_t
sys_thread_new
(
const
char
*
name
,
lwip_thread_fn
thread
,
void
*
arg
,
int
stackSize
,
int
prio
);
void
UdpTestTask
(
void
*
p
)
{
...
...
components/net/test/net_socket_test_003.c
浏览文件 @
a09d38a9
...
...
@@ -39,7 +39,6 @@
#define TEST_CASE 130
static
char
g_buf
[
BUF_SIZE
+
1
]
=
{
0
};
extern
sys_thread_t
sys_thread_new
(
const
char
*
name
,
lwip_thread_fn
thread
,
void
*
arg
,
int
stackSize
,
int
prio
);
static
int
SampleTcpServer
()
{
...
...
components/net/test/net_socket_test_007.c
浏览文件 @
a09d38a9
...
...
@@ -40,7 +40,6 @@ static char g_buf_temp[BUF_SIZE + 1] = { 0 };
#define SEND_UDP_COUNT 10000 // send count
#define TEST_CASE 170
extern
sys_thread_t
sys_thread_new
(
const
char
*
name
,
lwip_thread_fn
thread
,
void
*
arg
,
int
stackSize
,
int
prio
);
static
void
UdpTestMoreTask
(
void
*
p
)
{
(
void
)
p
;
...
...
components/net/test/net_socket_test_008.c
浏览文件 @
a09d38a9
...
...
@@ -41,8 +41,6 @@
static
char
g_serverSendBuf
[
BUF_SIZE
+
1
]
=
{
0
};
static
char
g_clientRecvBuf
[
BUF_SIZE
+
1
]
=
{
0
};
extern
sys_thread_t
sys_thread_new
(
const
char
*
name
,
lwip_thread_fn
thread
,
void
*
arg
,
int
stackSize
,
int
prio
);
static
void
InitMsgBuf
()
{
int
i
;
...
...
components/net/test/net_socket_test_009.c
浏览文件 @
a09d38a9
...
...
@@ -43,8 +43,6 @@
static
char
g_buf
[
BUF_SIZE
+
1
]
=
{
0
};
extern
sys_thread_t
sys_thread_new
(
const
char
*
name
,
lwip_thread_fn
thread
,
void
*
arg
,
int
stackSize
,
int
prio
);
static
int
SampleTcpServer
()
{
#if LWIP_SOCKET_SELECT
...
...
components/net/test/net_socket_test_010.c
浏览文件 @
a09d38a9
...
...
@@ -43,8 +43,6 @@
#define TIME_OUT (1000 * 10) // timeout 10s
static
char
g_buf
[
BUF_SIZE
+
1
]
=
{
0
};
extern
sys_thread_t
sys_thread_new
(
const
char
*
name
,
lwip_thread_fn
thread
,
void
*
arg
,
int
stackSize
,
int
prio
);
static
int
SampleTcpServer
()
{
#if LWIP_SOCKET_POLL
...
...
components/net/test/net_socket_test_012.c
浏览文件 @
a09d38a9
...
...
@@ -45,7 +45,6 @@ static int g_portClient = STACK_PORT_TCP_DUP_START;
static
char
g_bufServer
[
BUF_SIZE
+
1
]
=
{
0
};
static
char
g_bufClient
[
BUF_SIZE
+
1
]
=
{
0
};
extern
sys_thread_t
sys_thread_new
(
const
char
*
name
,
lwip_thread_fn
thread
,
void
*
arg
,
int
stackSize
,
int
prio
);
static
int
SampleTcpServer
()
{
...
...
components/net/test/net_socket_test_013.c
浏览文件 @
a09d38a9
...
...
@@ -38,8 +38,6 @@
#define STACK_PORT_TCP_LONG 2231
#define TCP_LONG_BUF_SIZE (2 * 1024)
extern
sys_thread_t
sys_thread_new
(
const
char
*
name
,
lwip_thread_fn
thread
,
void
*
arg
,
int
stackSize
,
int
prio
);
static
int
SampleTcpServer
()
{
int
sfd
,
lsfd
;
...
...
kal/posix/musl_src/network/h_errno.c
0 → 100644
浏览文件 @
a09d38a9
#include <netdb.h>
#undef h_errno
int
h_errno
;
int
*
__h_errno_location
(
void
)
{
return
&
h_errno
;
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录