source: trunk/kernel/syscalls/shared_include/shared_signal.h @ 687

Last change on this file since 687 was 584, checked in by alain, 6 years ago

Introduce sys_place_fork() function.

File size: 4.1 KB
Line 
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 by the
30 *           sys_kill() function  ( [AG] december 2017 )
31 ******************************************************************************************/
32
33#define SIGHUP     1       /*! hangup                                                     */
34#define SIGINT     2       /*! interrupt                                                  */
35#define SIGQUIT    3       /*! quit                                                       */
36#define SIGILL     4       /*! illegal instruction (not reset when caught)                */
37#define SIGTRAP    5       /*! trace trap (not reset when caught)                         */
38#define SIGABRT    6       /*! used by abort, replace SIGIOT in the future                */
39#define SIGEMT     7       /*! EMT instruction                                            */
40#define SIGFPE     8       /*! floating point exception                                   */
41#define SIGKILL    9       /*! kill (cannot be caught or ignored)                         */
42#define SIGBUS     10      /*! bus error                                                  */
43#define SIGSEGV    11      /*! segmentation violation                                     */
44#define SIGSYS     12      /*! bad argument to system call                                */
45#define SIGPIPE    13      /*! write on a pipe with no one to read it                     */
46#define SIGALRM    14      /*! alarm clock                                                */
47#define SIGTERM    15      /*! software termination signal from kill                      */
48#define SIGURG     16      /*! urgent condition on IO channel                             */
49#define SIGSTOP    17      /*! sendable stop signal not from tty                          */
50#define SIGTSTP    18      /*! stop signal from tty                                       */
51#define SIGCONT    19      /*! continue a stopped process                                 */
52#define SIGCHLD    20      /*! to parent on child stop or exit                            */
53#define SIGTTIN    21      /*! to readers pgrp upon background tty read                   */
54#define SIGTTOU    22      /*! like TTIN for output if (tp->t_local&LTOSTOP)              */
55#define SIGIO      23      /*! input/output possible signal                               */
56#define SIGXCPU    24      /*! exceeded CPU time limit                                    */
57#define SIGXFSZ    25      /*! exceeded file size limit                                   */
58#define SIGVTALRM  26      /*! virtual time alarm                                         */
59#define SIGPROF    27      /*! profiling time alarm                                       */
60#define SIGWINCH   28      /*! window changed                                             */
61#define SIGLOST    29      /*! resource lost (eg, record-lock lost)                       */
62#define SIGUSR1    30      /*! user defined signal 1                                      */
63#define SIGUSR2    31      /*! user defined signal 2                                      */
64
65#endif
Note: See TracBrowser for help on using the repository browser.