未验证 提交 32c6bb13 编写于 作者: O openharmony_ci 提交者: Gitee

!219 支持signal

Merge pull request !219 from JerryH/signal
......@@ -496,7 +496,7 @@ typedef struct __locale_struct * locale_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
#endif
......
#ifndef _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
extern "C" {
#endif
......@@ -320,5 +283,4 @@ __REDIR(sigtimedwait, __sigtimedwait_time64);
}
#endif
#endif /* __ICCARM__ */
#endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册