提交 94abfe07 编写于 作者: J JerryH

feature: Support kernel signal.

close #14R72Q
Signed-off-by: NJerryH <huangjieliang@huawei.com>
Change-Id: I4ab8dc36df1057ded89680995970397a7d876a8e
上级 496e030a
...@@ -496,7 +496,7 @@ typedef struct __locale_struct * locale_t; ...@@ -496,7 +496,7 @@ typedef struct __locale_struct * locale_t;
#if defined(__NEED_sigset_t) && !defined(__DEFINED_sigset_t) #if defined(__NEED_sigset_t) && !defined(__DEFINED_sigset_t)
typedef struct __sigset_t { unsigned long __bits[128/sizeof(long)]; } sigset_t; typedef unsigned long sigset_t;
#define __DEFINED_sigset_t #define __DEFINED_sigset_t
#endif #endif
......
#ifndef _SIGNAL_H #ifndef _SIGNAL_H
#define _SIGNAL_H #define _SIGNAL_H
#ifdef __ICCARM__ /* for iar */
#include_next <signal.h>
#ifdef __cplusplus
extern "C" {
#endif
#define __NEED_pthread_attr_t
#define __NEED_time_t
#include <bits/alltypes.h>
union sigval {
int sival_int;
void *sival_ptr;
};
struct sigevent {
union sigval sigev_value;
int sigev_signo;
int sigev_notify;
void (*sigev_notify_function)(union sigval);
pthread_attr_t *sigev_notify_attributes;
char __pad[56-3*sizeof(long)];
};
#define SIGEV_SIGNAL 0
#define SIGEV_NONE 1
#define SIGEV_THREAD 2
#ifdef __cplusplus
}
#endif
#else
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
...@@ -320,5 +283,4 @@ __REDIR(sigtimedwait, __sigtimedwait_time64); ...@@ -320,5 +283,4 @@ __REDIR(sigtimedwait, __sigtimedwait_time64);
} }
#endif #endif
#endif /* __ICCARM__ */
#endif #endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册