Category : C++ Source Code
Archive   : VCCRT2.ZIP
Filename : SIGNAL.H

 
Output of file : SIGNAL.H contained in archive : VCCRT2.ZIP
/***
*signal.h - defines signal values and routines
*
* Copyright (c) 1985-1992, Microsoft Corporation. All rights reserved.
*
*Purpose:
* This file defines the signal values and declares the signal functions.
* [ANSI/System V]
*
****/

#ifndef _INC_SIGNAL

#ifdef __cplusplus
extern "C" {
#endif

#if (_MSC_VER <= 600)
#define __cdecl _cdecl
#define __far _far
#endif

#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 */

#ifndef _WINDOWS
#define SIGINT 2 /* Ctrl-C sequence */
#define SIGILL 4 /* illegal instruction - invalid function image */
#endif
#define SIGFPE 8 /* floating point exception */
#ifndef _WINDOWS
#define SIGSEGV 11 /* segment violation */
#define SIGTERM 15 /* Software termination signal from kill */
#define SIGABRT 22 /* abnormal termination triggered by abort call */
#endif


/* signal action codes */

/* default signal action */
#define SIG_DFL (void (__cdecl *)(int))0

/* ignore */
#define SIG_IGN (void (__cdecl *)(int))1

/* signal error value (returned by signal call on error) */
#define SIG_ERR (void (__cdecl *)(int))-1


/* function prototypes */

void (__cdecl * __cdecl signal(int,
void (__cdecl *)(int)))(int);
#ifndef _MT
int __cdecl raise(int);
#endif

#ifdef __cplusplus
}
#endif

#define _INC_SIGNAL
#endif /* _INC_SIGNAL */


  3 Responses to “Category : C++ Source Code
Archive   : VCCRT2.ZIP
Filename : SIGNAL.H

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/