Developer documentation
Version 3.0.3-105-gd3941f44
signals.h
Go to the documentation of this file.
1/* Copyright (c) 2008-2022 the MRtrix3 contributors.
2 *
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
6 *
7 * Covered Software is provided under this License on an "as is"
8 * basis, without warranty of any kind, either expressed, implied, or
9 * statutory, including, without limitation, warranties that the
10 * Covered Software is free of defects, merchantable, fit for a
11 * particular purpose or non-infringing.
12 * See the Mozilla Public License v. 2.0 for more details.
13 *
14 * For more details, see http://www.mrtrix.org/.
15 */
16
17#ifdef SIGALRM
18 __SIGNAL (SIGALRM, "Timer expiration");
19#endif
20#ifdef SIGBUS
21 __SIGNAL (SIGBUS, "Bus error: Accessing invalid address (out of storage space?)");
22#endif
23#ifdef SIGFPE
24 __SIGNAL (SIGFPE, "Floating-point arithmetic exception");
25#endif
26#ifdef SIGHUP
27 __SIGNAL (SIGHUP, "Disconnection of terminal");
28#endif
29#ifdef SIGILL // Note: Not generated under Windows
30 __SIGNAL (SIGILL, "Illegal instruction (corrupt binary command file?)");
31#endif
32#ifdef SIGINT // Note: Not supported for any Win32 application
33 __SIGNAL (SIGINT, "Program manually interrupted by terminal");
34#endif
35#ifdef SIGPIPE
36 __SIGNAL (SIGPIPE, "Nothing on receiving end of pipe");
37#endif
38#ifdef SIGPWR
39 __SIGNAL (SIGPWR, "Power failure restart");
40#endif
41#ifdef SIGQUIT
42 __SIGNAL (SIGQUIT, "Received terminal quit signal");
43#endif
44#ifdef SIGSEGV
45 __SIGNAL (SIGSEGV, "Segmentation fault: Invalid memory access");
46#endif
47#ifdef SIGSYS
48 __SIGNAL (SIGSYS, "Bad system call");
49#endif
50#ifdef SIGTERM // Note: Not generated under Windows
51 __SIGNAL (SIGTERM, "Terminated by kill command");
52#endif
53#ifdef SIGXCPU
54 __SIGNAL (SIGXCPU, "CPU time limit exceeded");
55#endif
56#ifdef SIGXFSZ
57 __SIGNAL (SIGXFSZ, "File size limit exceeded");
58#endif
59