mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
68 lines
2.6 KiB
C
68 lines
2.6 KiB
C
/*
|
|
* Copyright (c) 2011, 2012, 2013, 2014 Jonas 'Sortie' Termansen.
|
|
*
|
|
* Permission to use, copy, modify, and distribute this software for any
|
|
* purpose with or without fee is hereby granted, provided that the above
|
|
* copyright notice and this permission notice appear in all copies.
|
|
*
|
|
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
*
|
|
* sortix/signal.h
|
|
* Defines the numeric values for the various supported signals.
|
|
*/
|
|
|
|
#ifndef SORTIX_INCLUDE_SIGNAL_H
|
|
#define SORTIX_INCLUDE_SIGNAL_H
|
|
|
|
#include <sys/cdefs.h>
|
|
|
|
#define SIGHUP 1 /* Hangup */
|
|
#define SIGINT 2 /* Interrupt */
|
|
#define SIGQUIT 3 /* Quit */
|
|
#define SIGILL 4 /* Invalid instruction */
|
|
#define SIGTRAP 5 /* Trace/breakpoint trap */
|
|
#define SIGABRT 6 /* Aborted */
|
|
#define SIGBUS 7 /* Bus Error */
|
|
#define SIGFPE 8 /* Floating point exception */
|
|
#define SIGKILL 9 /* Killed */
|
|
#define SIGUSR1 10 /* User defined signal 1 */
|
|
#define SIGSEGV 11 /* Segmentation fault */
|
|
#define SIGUSR2 12 /* User defined signal 2 */
|
|
#define SIGPIPE 13 /* Broken pipe */
|
|
#define SIGALRM 14 /* Alarm clock */
|
|
#define SIGTERM 15 /* Terminated */
|
|
#define SIGSYS 16 /* Bad system call */
|
|
#define SIGCHLD 17 /* Child exited */
|
|
#define SIGCONT 18 /* Continued */
|
|
#define SIGSTOP 19 /* Stopped (signal) */
|
|
#define SIGTSTP 20 /* Stopped */
|
|
#define SIGTTIN 21 /* Stopped (tty input) */
|
|
#define SIGTTOU 22 /* Stopped (tty output) */
|
|
#define SIGURG 23 /* Urgent I/O condition */
|
|
#define SIGXCPU 24 /* CPU time limit exceeded */
|
|
#define SIGXFSZ 25 /* File size limit exceeded */
|
|
#define SIGVTALRM 26 /* Virtual timer expired */
|
|
#define SIGPWR 27 /* Power Fail/Restart */
|
|
#define SIGWINCH 28 /* Window changed */
|
|
#define SIGRTMIN 64 /* First user-available real-time signal. */
|
|
#define SIGRTMAX 127 /* Last user-available real-time signal. */
|
|
|
|
#define __SIG_NUM_DECLARED 31
|
|
#define __SIG_MAX_NUM 128
|
|
|
|
#if defined(__is_sortix_kernel)
|
|
#define SIG_NUM_DECLARED __SIG_NUM_DECLARED
|
|
#define SIG_MAX_NUM __SIG_MAX_NUM
|
|
#endif
|
|
|
|
#define SIG_ERR ((void (*)(int)) -1)
|
|
#define SIG_DFL ((void (*)(int)) 0)
|
|
#define SIG_IGN ((void (*)(int)) 1)
|
|
|
|
#endif
|