1 | /* |
---|
2 | * shared_signal.h - Shared signal mnemonics used by the kill() syscall. |
---|
3 | * |
---|
4 | * Author Alain Greiner (2016,2017,2018) |
---|
5 | * |
---|
6 | * Copyright (c) UPMC Sorbonne Universites |
---|
7 | * |
---|
8 | * This file is part of ALMOS-MKH. |
---|
9 | * |
---|
10 | * ALMOS-MKH is free software; you can redistribute it and/or modify it |
---|
11 | * under the terms of the GNU General Public License as published by |
---|
12 | * the Free Software Foundation; version 2.0 of the License. |
---|
13 | * |
---|
14 | * ALMOS-MKH is distributed in the hope that it will be useful, but |
---|
15 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
17 | * General Public License for more details. |
---|
18 | * |
---|
19 | * You should have received a copy of the GNU General Public License |
---|
20 | * along with ALMOS-MKH; if not, write to the Free Software Foundation, |
---|
21 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
---|
22 | */ |
---|
23 | |
---|
24 | #ifndef _SHARED_SIGNAL_H_ |
---|
25 | #define _SHARED_SIGNAL_H_ |
---|
26 | |
---|
27 | /******************************************************************************************* |
---|
28 | * This defines the signal type mnemonics for the kill() syscall. |
---|
29 | * WARNING : Only the three SIGKILL / SIGSTOP / SIGCONT are supported (december 2017) |
---|
30 | ******************************************************************************************/ |
---|
31 | |
---|
32 | #define SIGHUP 1 /*! hangup */ |
---|
33 | #define SIGINT 2 /*! interrupt */ |
---|
34 | #define SIGQUIT 3 /*! quit */ |
---|
35 | #define SIGILL 4 /*! illegal instruction (not reset when caught) */ |
---|
36 | #define SIGTRAP 5 /*! trace trap (not reset when caught) */ |
---|
37 | #define SIGABRT 6 /*! used by abort, replace SIGIOT in the future */ |
---|
38 | #define SIGEMT 7 /*! EMT instruction */ |
---|
39 | #define SIGFPE 8 /*! floating point exception */ |
---|
40 | #define SIGKILL 9 /*! kill (cannot be caught or ignored) */ |
---|
41 | #define SIGBUS 10 /*! bus error */ |
---|
42 | #define SIGSEGV 11 /*! segmentation violation */ |
---|
43 | #define SIGSYS 12 /*! bad argument to system call */ |
---|
44 | #define SIGPIPE 13 /*! write on a pipe with no one to read it */ |
---|
45 | #define SIGALRM 14 /*! alarm clock */ |
---|
46 | #define SIGTERM 15 /*! software termination signal from kill */ |
---|
47 | #define SIGURG 16 /*! urgent condition on IO channel */ |
---|
48 | #define SIGSTOP 17 /*! sendable stop signal not from tty */ |
---|
49 | #define SIGTSTP 18 /*! stop signal from tty */ |
---|
50 | #define SIGCONT 19 /*! continue a stopped process */ |
---|
51 | #define SIGCHLD 20 /*! to parent on child stop or exit */ |
---|
52 | #define SIGTTIN 21 /*! to readers pgrp upon background tty read */ |
---|
53 | #define SIGTTOU 22 /*! like TTIN for output if (tp->t_local<OSTOP) */ |
---|
54 | #define SIGIO 23 /*! input/output possible signal */ |
---|
55 | #define SIGXCPU 24 /*! exceeded CPU time limit */ |
---|
56 | #define SIGXFSZ 25 /*! exceeded file size limit */ |
---|
57 | #define SIGVTALRM 26 /*! virtual time alarm */ |
---|
58 | #define SIGPROF 27 /*! profiling time alarm */ |
---|
59 | #define SIGWINCH 28 /*! window changed */ |
---|
60 | #define SIGLOST 29 /*! resource lost (eg, record-lock lost) */ |
---|
61 | #define SIGUSR1 30 /*! user defined signal 1 */ |
---|
62 | #define SIGUSR2 31 /*! user defined signal 2 */ |
---|
63 | |
---|
64 | #endif |
---|