1 /* 2 * Copyright (c) 2006-2021, RT-Thread Development Team 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 * 6 * Change Logs: 7 * Date Author Notes 8 * 2017/10/1 Bernard The first version 9 */ 10 11 #ifndef POSIX_SIGNAL_H__ 12 #define POSIX_SIGNAL_H__ 13 14 #ifdef __cplusplus 15 extern "C" { 16 #endif 17 18 #include <sys/signal.h> 19 20 enum rt_signal_value{ 21 SIG1 = SIGHUP, // Hangup detected on controlling terminal or death of controlling process 22 SIG2 = SIGINT, // Interrupt from keyboard 23 SIG3 = SIGQUIT, // Quit from keyboard 24 SIG4 = SIGILL, // Illegal instruction 25 SIG5 = SIGTRAP, // Trace trap 26 SIG6 = SIGABRT, // Abort signal from abort(3) 27 SIG7 = SIGEMT, // Emulator trap 28 SIG8 = SIGFPE, // Floating-point exception 29 SIG9 = SIGKILL, // Kill signal 30 SIG10 = SIGBUS, // Bus error 31 SIG11 = SIGSEGV, // Segmentation fault 32 SIG12 = SIGSYS, // Bad system call 33 SIG13 = SIGPIPE, // Broken pipe 34 SIG14 = SIGALRM, // Timer signal from alarm(2) 35 SIG15 = SIGTERM, // Termination signal 36 SIG16 = SIGURG, // Urgent condition on socket 37 SIG17 = SIGSTOP, // Stop executing (cannot be caught or ignored) 38 SIG18 = SIGTSTP, // Stop signal from keyboard to suspend execution 39 SIG19 = SIGCONT, // Continue if stopped 40 SIG20 = SIGCHLD, // Child status has changed 41 SIG21 = SIGTTIN, // Background read from control terminal attempted by background process 42 SIG22 = SIGTTOU, // Background write to control terminal attempted by background process 43 SIG23 = SIGPOLL, // Pollable event 44 SIG24 = 24, // SIGXCPU: CPU time limit exceeded 45 SIG25 = 25, // SIGXFSZ: File size limit exceeded 46 SIG26 = 26, // SIGVTALRM: Virtual timer expired 47 SIG27 = 27, // SIGPROF: Profiling timer expired 48 SIG28 = SIGWINCH,// Window size changed 49 SIG29 = 29, // SIGLOST 50 SIG30 = SIGUSR1, // User-defined signal 1 51 SIG31 = SIGUSR2, // User-defined signal 2 52 SIGRT_MIN = 27, // SIGRTMIN: Minimum real-time signal number 53 SIGRT_MAX = 31, // SIGRTMAX: Maximum real-time signal number 54 SIGMAX = NSIG // Number of signals (total) 55 }; 56 57 #ifdef __cplusplus 58 } 59 #endif 60 61 #endif 62