home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
cset21v1.zip
/
IBMCPP
/
INCLUDE
/
SIGNAL.H
< prev
next >
Wrap
Text File
|
1993-09-17
|
3KB
|
71 lines
#pragma info( none )
#ifndef __CHKHDR__
#pragma info( none )
#endif
#pragma info( restore )
#ifndef __signal_h
#define __signal_h
#ifdef __cplusplus
extern "C" {
#endif
/********************************************************************/
/* <signal.h> header file */
/* */
/* Licensed Materials - Property of IBM */
/* */
/* IBM C/C++ Tools Version 2.01 */
/* Copyright (C) International Business Machines Corp., 1991,1993 */
/* All rights reserved */
/* */
/* US Government Users Restricted Rights - */
/* Use, duplication, or disclosure restricted */
/* by GSA ADP Schedule Contract with IBM Corp. */
/* */
/********************************************************************/
#ifndef __sig_atomic_t
typedef int sig_atomic_t;
#define __sig_atomic_t
#endif
/* signal types */
#define SIGILL 1 /* illegal instruction - invalid function image */
#define SIGSEGV 2 /* invalid access to memory */
#define SIGFPE 3 /* floating point exception */
#define SIGTERM 4 /* OS/2 SIGTERM (killprocess) signal */
#define SIGABRT 5 /* abort() signal */
#define SIGINT 6 /* OS/2 SIGINTR signal */
#define SIGUSR1 7 /* user exception in range 0xa0000000 - 0xbfffffff */
#define SIGUSR2 8 /* user exception in range 0xc0000000 - 0xdfffffff */
#define SIGUSR3 9 /* user exception in range 0xe0000000 - 0xffffffff */
#define SIGBREAK 10 /* OS/2 Ctrl-Break sequence */
typedef void (*_SigFunc)(int);
/* signal action codes */
#define SIG_DFL ((_SigFunc)0) /* default signal action */
#define SIG_IGN ((_SigFunc)1) /* ignore */
/* signal error value (returned by signal call on error) */
#define SIG_ERR ((_SigFunc)-1) /* signal error value */
/* function prototypes */
_SigFunc _Optlink signal( int, _SigFunc );
int _Optlink raise( int );
#ifdef __cplusplus
}
#endif
#endif
#pragma info( none )
#ifndef __CHKHDR__
#pragma info( restore )
#endif
#pragma info( restore )