Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
RT-Thread
rt-thread
提交
c05d9dfe
R
rt-thread
项目概览
RT-Thread
/
rt-thread
大约 1 年 前同步成功
通知
776
Star
8911
Fork
4735
代码
文件
提交
分支
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,发现更多精彩内容 >>
未验证
提交
c05d9dfe
编写于
12月 19, 2019
作者:
B
Bernard Xiong
提交者:
GitHub
12月 19, 2019
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #3276 from BernardXiong/fix_signal_minilibc
[Kernel] Fix the signal compiling issue when using minilibc
上级
a87c2ef9
b5e4aa58
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
25 addition
and
10 deletion
+25
-10
components/libc/compilers/minilibc/signal.h
components/libc/compilers/minilibc/signal.h
+20
-0
include/libc/libc_signal.h
include/libc/libc_signal.h
+5
-10
未找到文件。
components/libc/compilers/minilibc/signal.h
0 → 100644
浏览文件 @
c05d9dfe
/*
* Copyright (c) 2006-2018, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2017-09-12 Bernard The first version
*/
#ifndef SIGNAL_H__
#define SIGNAL_H__
#include <libc/libc_signal.h>
#define SIG_DFL ((_sig_func_ptr)0)
/* Default action */
#define SIG_IGN ((_sig_func_ptr)1)
/* Ignore action */
#define SIG_ERR ((_sig_func_ptr)-1)
/* Error return */
#endif
include/libc/libc_signal.h
浏览文件 @
c05d9dfe
...
...
@@ -63,13 +63,14 @@ typedef struct siginfo siginfo_t;
#define SI_MESGQ 0x05
/* Signal generated by arrival of a
message on an empty message queue. */
#ifdef RT_USING_NEWLIB
#include <sys/signal.h>
#if !defined(RT_USING_NEWLIB)
typedef
void
(
*
_sig_func_ptr
)(
int
);
typedef
unsigned
long
sigset_t
;
#endif
#if defined(__CC_ARM) || defined(__CLANG_ARM)
#include <signal.h>
typedef
unsigned
long
sigset_t
;
#if defined(__CC_ARM) || defined(__CLANG_ARM)
#define SIGHUP 1
/* #define SIGINT 2 */
...
...
@@ -105,8 +106,6 @@ typedef unsigned long sigset_t;
#define SIG_BLOCK 1
/* set of signals to block */
#define SIG_UNBLOCK 2
/* set of signals to, well, unblock */
typedef
void
(
*
_sig_func_ptr
)(
int
);
struct
sigaction
{
_sig_func_ptr
sa_handler
;
...
...
@@ -124,8 +123,6 @@ int sigprocmask (int how, const sigset_t *set, sigset_t *oset);
int
sigaction
(
int
signum
,
const
struct
sigaction
*
act
,
struct
sigaction
*
oldact
);
#elif defined(__IAR_SYSTEMS_ICC__)
#include <signal.h>
typedef
unsigned
long
sigset_t
;
#define SIGHUP 1
#define SIGINT 2
...
...
@@ -161,8 +158,6 @@ typedef unsigned long sigset_t;
#define SIG_BLOCK 1
/* set of signals to block */
#define SIG_UNBLOCK 2
/* set of signals to, well, unblock */
typedef
void
(
*
_sig_func_ptr
)(
int
);
struct
sigaction
{
_sig_func_ptr
sa_handler
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录