1  /* Signal number definitions.  Linux/MIPS version.
       2     Copyright (C) 1995-2023 Free Software Foundation, Inc.
       3     This file is part of the GNU C Library.
       4  
       5     The GNU C Library is free software; you can redistribute it and/or
       6     modify it under the terms of the GNU Lesser General Public
       7     License as published by the Free Software Foundation; either
       8     version 2.1 of the License, or (at your option) any later version.
       9  
      10     The GNU C Library is distributed in the hope that it will be useful,
      11     but WITHOUT ANY WARRANTY; without even the implied warranty of
      12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
      13     Lesser General Public License for more details.
      14  
      15     You should have received a copy of the GNU Lesser General Public
      16     License along with the GNU C Library.  If not, see
      17     <https://www.gnu.org/licenses/>.  */
      18  
      19  #ifndef _BITS_SIGNUM_H
      20  #define _BITS_SIGNUM_H 1
      21  
      22  #ifndef _SIGNAL_H
      23  #error "Never include <bits/signum.h> directly; use <signal.h> instead."
      24  #endif
      25  
      26  /* Adjustments and additions to the signal number constants for
      27     Linux/MIPS.  */
      28  
      29  #define SIGEMT		 7	/* Emulator trap.  */
      30  #define SIGPWR		19	/* Power failure imminent.  */
      31  
      32  /* Historical signals specified by POSIX. */
      33  #define SIGBUS 	10	/* Bus error.  */
      34  #define SIGSYS		12	/* Bad system call.  */
      35  
      36  /* New(er) POSIX signals (1003.1-2008, 1003.1-2013).  */
      37  #define SIGURG		21	/* Urgent data is available at a socket.  */
      38  #define SIGSTOP		23	/* Stop, unblockable.  */
      39  #define SIGTSTP		24	/* Keyboard stop.  */
      40  #define SIGCONT		25	/* Continue.  */
      41  #define SIGCHLD		18	/* Child terminated or stopped.  */
      42  #define SIGTTIN		26	/* Background read from control terminal.  */
      43  #define SIGTTOU		27	/* Background write to control terminal.  */
      44  #define SIGPOLL		22	/* Pollable event occurred (System V).  */
      45  #define SIGXCPU		30	/* CPU time limit exceeded.  */
      46  #define SIGVTALRM	28	/* Virtual timer expired.  */
      47  #define SIGPROF		29	/* Profiling timer expired.  */
      48  #define SIGXFSZ		31	/* File size limit exceeded.  */
      49  #define SIGUSR1		16	/* User-defined signal 1.  */
      50  #define SIGUSR2		17	/* User-defined signal 2.  */
      51  
      52  /* Nonstandard signals found in all modern POSIX systems
      53     (including both BSD and Linux).  */
      54  #define SIGWINCH	20	/* Window size change (4.3 BSD, Sun).  */
      55  
      56  /* Archaic names for compatibility.  */
      57  #define SIGIO		SIGPOLL	/* I/O now possible (4.2 BSD).  */
      58  #define SIGIOT		SIGABRT	/* IOT instruction, abort() on a PDP-11.  */
      59  #define SIGCLD		SIGCHLD /* Old System V name */
      60  
      61  /* By default no real-time signals are supported.  */
      62  #define __SIGRTMIN	32
      63  #define __SIGRTMAX	127
      64  
      65  #endif	/* <signal.h> included.  */