Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party FreeBSD
提交
371a9129
T
Third Party FreeBSD
项目概览
OpenHarmony
/
Third Party FreeBSD
接近 2 年 前同步成功
通知
3
Star
18
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party FreeBSD
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
371a9129
编写于
5月 05, 2022
作者:
O
openharmony_ci
提交者:
Gitee
5月 05, 2022
浏览文件
操作
浏览文件
下载
差异文件
!54 fix: add support for newlib
Merge pull request !54 from Harylee/qemu
上级
583f1679
de73d8ac
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
11 addition
and
3 deletion
+11
-3
sys/compat/linuxkpi/common/src/tzdst.c
sys/compat/linuxkpi/common/src/tzdst.c
+1
-1
sys/kern/kern_timeout.c
sys/kern/kern_timeout.c
+2
-2
sys/sys/cdefs.h
sys/sys/cdefs.h
+5
-0
sys/sys/malloc.h
sys/sys/malloc.h
+3
-0
未找到文件。
sys/compat/linuxkpi/common/src/tzdst.c
浏览文件 @
371a9129
...
@@ -56,7 +56,7 @@ STATIC VOID BufferInsert(CHAR *buf, size_t bufLen, size_t positions, CHAR data)
...
@@ -56,7 +56,7 @@ STATIC VOID BufferInsert(CHAR *buf, size_t bufLen, size_t positions, CHAR data)
return
;
return
;
}
}
if
(
memmove_s
(
&
buf
[
positions
+
1
],
bufLen
-
positions
-
1
,
&
buf
[
positions
],
bufLen
-
positions
-
1
)
!=
EOK
)
{
if
(
memmove_s
(
&
buf
[
positions
+
1
],
bufLen
-
positions
-
1
,
&
buf
[
positions
],
bufLen
-
positions
-
1
)
!=
EOK
)
{
dprintf
(
"%s falied
\n
"
,
__FUNCTION__
);
PRINTK
(
"%s falied
\n
"
,
__FUNCTION__
);
return
;
return
;
}
}
...
...
sys/kern/kern_timeout.c
浏览文件 @
371a9129
...
@@ -77,7 +77,7 @@ callout_reset(struct callout *c, int to_ticks, void (*func)(void *), void *arg)
...
@@ -77,7 +77,7 @@ callout_reset(struct callout *c, int to_ticks, void (*func)(void *), void *arg)
if
(
c
!=
NULL
)
{
if
(
c
!=
NULL
)
{
callout_stop
(
c
);
callout_stop
(
c
);
LOS_SpinLockSave
(
&
c
->
lock
,
&
int_save
);
LOS_SpinLockSave
(
&
c
->
lock
,
(
unsigned
int
*
)
&
int_save
);
c
->
callout_data
.
func
=
(
timer_func
)
func
;
c
->
callout_data
.
func
=
(
timer_func
)
func
;
c
->
callout_data
.
arg
=
arg
;
c
->
callout_data
.
arg
=
arg
;
...
@@ -103,7 +103,7 @@ callout_stop(struct callout *c)
...
@@ -103,7 +103,7 @@ callout_stop(struct callout *c)
{
{
uint32_t
int_save
;
uint32_t
int_save
;
if
(
c
!=
NULL
)
{
if
(
c
!=
NULL
)
{
LOS_SpinLockSave
(
&
c
->
lock
,
&
int_save
);
LOS_SpinLockSave
(
&
c
->
lock
,
(
unsigned
int
*
)
&
int_save
);
(
void
)
LOS_SwtmrDelete
(
c
->
timer_id
);
(
void
)
LOS_SwtmrDelete
(
c
->
timer_id
);
LOS_SpinUnlockRestore
(
&
c
->
lock
,
int_save
);
LOS_SpinUnlockRestore
(
&
c
->
lock
,
int_save
);
}
}
...
...
sys/sys/cdefs.h
浏览文件 @
371a9129
...
@@ -883,4 +883,9 @@
...
@@ -883,4 +883,9 @@
#define __guarded_by(x) __lock_annotate(guarded_by(x))
#define __guarded_by(x) __lock_annotate(guarded_by(x))
#define __pt_guarded_by(x) __lock_annotate(pt_guarded_by(x))
#define __pt_guarded_by(x) __lock_annotate(pt_guarded_by(x))
#ifdef LOSCFG_LIBC_NEWLIB
#undef _SYS_CDEFS_H_
#include_next <sys/cdefs.h>
#endif
#endif
/* !_SYS_CDEFS_H_ */
#endif
/* !_SYS_CDEFS_H_ */
sys/sys/malloc.h
浏览文件 @
371a9129
...
@@ -39,6 +39,9 @@
...
@@ -39,6 +39,9 @@
#include <sys/types.h>
#include <sys/types.h>
#include <los_memory.h>
#include <los_memory.h>
#ifdef LOSCFG_LIBC_NEWLIB
#include <malloc.h>
#endif
#define M_NOWAIT 0x0001
/* do not block */
#define M_NOWAIT 0x0001
/* do not block */
#define M_WAITOK 0x0002
/* ok to block */
#define M_WAITOK 0x0002
/* ok to block */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录