home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
ddkx86v1.zip
/
DDKX86
/
H386
/
SIGNAL.H
< prev
next >
Wrap
C/C++ Source or Header
|
1995-04-14
|
3KB
|
70 lines
/*DDK*************************************************************************/
/* */
/* COPYRIGHT (C) Microsoft Corporation, 1989 */
/* COPYRIGHT Copyright (C) 1995 IBM Corporation */
/* */
/* The following IBM OS/2 WARP source code is provided to you solely for */
/* the purpose of assisting you in your development of OS/2 WARP device */
/* drivers. You may use this code in accordance with the IBM License */
/* Agreement provided in the IBM Device Driver Source Kit for OS/2. This */
/* Copyright statement may not be removed. */
/* */
/*****************************************************************************/
/*static char *SCCSID = "@(#)signal.h 6.1 90/11/16";*/
/***
*signal.h - defines signal values and routines
*
*
*Purpose:
* This file defines the signal values and declares the signal functions.
* [ANSI/System V]
*
****/
#ifndef CALLTYPE
#define CALLTYPE _cdecl
#endif /* CALLTYPE */
#ifndef _SIG_ATOMIC_T_DEFINED
typedef int sig_atomic_t;
#define _SIG_ATOMIC_T_DEFINED
#endif
#define NSIG 23 /* maximum signal number + 1 */
/* signal types */
/* SIGINT, SIGFPE, SIGILL, SIGSEGV, and SIGABRT are recognized on DOS 3.x */
#define SIGINT 2 /* interrupt - corresponds to DOS 3.x int 23H */
#define SIGILL 4 /* illegal instruction - invalid function image */
#define SIGFPE 8 /* floating point exception */
#define SIGSEGV 11 /* segment violation */
#define SIGTERM 15 /* Software termination signal from kill */
#define SIGUSR1 16 /* User defined signal 1 */
#define SIGUSR2 17 /* User defined signal 2 */
#define SIGUSR3 20 /* User defined signal 3 */
#define SIGBREAK 21 /* Ctrl-Break sequence */
#define SIGABRT 22 /* abnormal termination triggered by abort call */
/* signal action codes */
/* SIG_DFL and SIG_IGN are recognized on DOS 3.x */
#define SIG_DFL (void (CALLTYPE *)())0 /* default signal action */
#define SIG_IGN (void (CALLTYPE *)())1 /* ignore */
#define SIG_SGE (void (CALLTYPE *)())3 /* signal gets error */
#define SIG_ACK (void (CALLTYPE *)())4 /* error if handler not setup */
/* signal error value (returned by signal call on error) */
#define SIG_ERR (void (CALLTYPE *)())-1 /* signal error value */
/* function prototypes */
void (CALLTYPE * CALLTYPE signal(int, void (CALLTYPE *)()))();
int CALLTYPE raise(int);