signal.h

来自「VRTX 商用嵌入式实时操作系统」· C头文件 代码 · 共 62 行

H
62
字号
/***************************************************************************
*
*		Copyright (c) 1993 READY SYSTEMS CORPORATION.
*
*	All rights reserved. READY SYSTEMS' source code is an unpublished
*	work and the use of a copyright notice does not imply otherwise.
*	This source code contains confidential, trade secret material of
*	READY SYSTEMS. Any attempt or participation in deciphering, decoding,
*	reverse engineering or in any way altering the source code is
*	strictly prohibited, unless the prior written consent of
*	READY SYSTEMS is obtained.
*
*
*	Module Name:		%M%
*
*	Identification:		%Z% %I% %M%
*
*	Date:			%G%  %U%
*
****************************************************************************
*/

#ifndef	_SIGNAL_H
#define	_SIGNAL_H

#include <ansiprot.h>

#ifdef __cplusplus
extern "C" {
#endif

typedef unsigned char sig_atomic_t;

#define	SIG_DFL	(void (*)(_ANSIPROT1(int)))0
#define	SIG_ERR	(void (*)(_ANSIPROT1(int)))-1
#define	SIG_IGN	(void (*)(_ANSIPROT1(int)))1
#define SIGABRT 6
#define SIGINT  2
#define SIGILL  4
#define SIGFPE  8
#define SIGSEGV 11
#define SIGTERM 15
#define SIGPIPE 0x0D
#define SIGURG  0x10
#define SIGIO   0x17

#ifndef SNX
extern void (*signal(_ANSIPROT2(int, void (*)(_ANSIPROT1(int)))))();
extern int kill(_ANSIPROT2(int, int));	/* should be pid_t */
#else
#define SIGPOLL	0x20
#define sigmask(m)      (1 << ((m)-1))
#endif

extern int raise(_ANSIPROT1(int sig));

#ifdef __cplusplus
}
#endif

#endif	/* !_SIGNAL_H */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?