STLdoc
STLdocumentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
signal.h
Go to the documentation of this file.
1 //
2 // stdio.h
3 //
4 // Copyright (c) Microsoft Corporation. All rights reserved.
5 //
6 // The C Standard Library <signal.h> header.
7 //
8 #pragma once
9 #define _INC_SIGNAL
10 
11 #include <corecrt.h>
12 
14 
15 
16 
17 typedef int sig_atomic_t;
18 
20 
21 #define NSIG 23 // maximum signal number + 1
22 
23 // Signal types
24 #define SIGINT 2 // interrupt
25 #define SIGILL 4 // illegal instruction - invalid function image
26 #define SIGFPE 8 // floating point exception
27 #define SIGSEGV 11 // segment violation
28 #define SIGTERM 15 // Software termination signal from kill
29 #define SIGBREAK 21 // Ctrl-Break sequence
30 #define SIGABRT 22 // abnormal termination triggered by abort call
31 
32 #define SIGABRT_COMPAT 6 // SIGABRT compatible with other platforms, same as SIGABRT
33 
34 // Signal action codes
35 #define SIG_DFL ((_crt_signal_t)0) // default signal action
36 #define SIG_IGN ((_crt_signal_t)1) // ignore signal
37 #define SIG_GET ((_crt_signal_t)2) // return current value
38 #define SIG_SGE ((_crt_signal_t)3) // signal gets error
39 #define SIG_ACK ((_crt_signal_t)4) // acknowledge
40 
41 #ifdef _CORECRT_BUILD
42  // Internal use only! Not valid as an argument to signal().
43  #define SIG_DIE ((_crt_signal_t)5) // terminate process
44 #endif
45 
46 // Signal error value (returned by signal call on error)
47 #define SIG_ERR ((_crt_signal_t)-1) // signal error value
48 
49 
50 
51 // Pointer to exception information pointers structure
52 _ACRTIMP void** __cdecl __pxcptinfoptrs(void);
53 #define _pxcptinfoptrs (*__pxcptinfoptrs())
54 
55 // Function prototypes
56 #ifndef _M_CEE_PURE
57  _ACRTIMP _crt_signal_t __cdecl signal(_In_ int _Signal, _In_opt_ _crt_signal_t _Function);
58 #endif
59 
60 _ACRTIMP int __cdecl raise(_In_ int _Signal);
61 
62 
63 
#define _ACRTIMP
Definition: corecrt.h:27
#define _CRT_BEGIN_C_HEADER
Definition: vcruntime.h:73
#define __CRTDECL
Definition: vcruntime.h:156
_ACRTIMP void **__cdecl __pxcptinfoptrs(void)
_ACRTIMP _crt_signal_t __cdecl signal(_In_ int _Signal, _In_opt_ _crt_signal_t _Function)
#define _In_
Definition: sal.h:305
#define _In_opt_
Definition: sal.h:306
_CRT_BEGIN_C_HEADER typedef int sig_atomic_t
Definition: signal.h:17
_CRT_BEGIN_C_HEADER typedef void(__CRTDECL *terminate_handler)()
char int *typedef int(__CRTDECL *_CRT_REPORT_HOOKW)(int
Definition: crtdbg.h:45
#define _CRT_END_C_HEADER
Definition: vcruntime.h:76
void(__CRTDECL * _crt_signal_t)(int)
Definition: signal.h:19