/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */1/*2* This file is subject to the terms and conditions of the GNU General Public3* License. See the file "COPYING" in the main directory of this archive4* for more details.5*6* Copyright (C) 1995, 96, 97, 98, 99, 2003 by Ralf Baechle7* Copyright (C) 1999 Silicon Graphics, Inc.8*/9#ifndef _UAPI_ASM_SIGNAL_H10#define _UAPI_ASM_SIGNAL_H1112#include <linux/types.h>1314#define _NSIG 12815#define _NSIG_BPW (sizeof(unsigned long) * 8)16#define _NSIG_WORDS (_NSIG / _NSIG_BPW)1718typedef struct {19unsigned long sig[_NSIG_WORDS];20} sigset_t;2122typedef unsigned long old_sigset_t; /* at least 32 bits */2324#define SIGHUP 1 /* Hangup (POSIX). */25#define SIGINT 2 /* Interrupt (ANSI). */26#define SIGQUIT 3 /* Quit (POSIX). */27#define SIGILL 4 /* Illegal instruction (ANSI). */28#define SIGTRAP 5 /* Trace trap (POSIX). */29#define SIGIOT 6 /* IOT trap (4.2 BSD). */30#define SIGABRT SIGIOT /* Abort (ANSI). */31#define SIGEMT 732#define SIGFPE 8 /* Floating-point exception (ANSI). */33#define SIGKILL 9 /* Kill, unblockable (POSIX). */34#define SIGBUS 10 /* BUS error (4.2 BSD). */35#define SIGSEGV 11 /* Segmentation violation (ANSI). */36#define SIGSYS 1237#define SIGPIPE 13 /* Broken pipe (POSIX). */38#define SIGALRM 14 /* Alarm clock (POSIX). */39#define SIGTERM 15 /* Termination (ANSI). */40#define SIGUSR1 16 /* User-defined signal 1 (POSIX). */41#define SIGUSR2 17 /* User-defined signal 2 (POSIX). */42#define SIGCHLD 18 /* Child status has changed (POSIX). */43#define SIGCLD SIGCHLD /* Same as SIGCHLD (System V). */44#define SIGPWR 19 /* Power failure restart (System V). */45#define SIGWINCH 20 /* Window size change (4.3 BSD, Sun). */46#define SIGURG 21 /* Urgent condition on socket (4.2 BSD). */47#define SIGIO 22 /* I/O now possible (4.2 BSD). */48#define SIGPOLL SIGIO /* Pollable event occurred (System V). */49#define SIGSTOP 23 /* Stop, unblockable (POSIX). */50#define SIGTSTP 24 /* Keyboard stop (POSIX). */51#define SIGCONT 25 /* Continue (POSIX). */52#define SIGTTIN 26 /* Background read from tty (POSIX). */53#define SIGTTOU 27 /* Background write to tty (POSIX). */54#define SIGVTALRM 28 /* Virtual alarm clock (4.2 BSD). */55#define SIGPROF 29 /* Profiling alarm clock (4.2 BSD). */56#define SIGXCPU 30 /* CPU limit exceeded (4.2 BSD). */57#define SIGXFSZ 31 /* File size limit exceeded (4.2 BSD). */5859/* These should not be considered constants from userland. */60#define SIGRTMIN 3261#define SIGRTMAX _NSIG6263/*64* SA_RESTORER used to be defined as 0x04000000 but only the O32 ABI ever65* supported its use and no libc was using it, so the entire sa-restorer66* functionality was removed with lmo commit 39bffc12c3580ab for 2.5.4867* retaining only the SA_RESTORER definition as a reminder to avoid68* accidental reuse of the mask bit.69*/70#define SA_ONSTACK 0x0800000071#define SA_RESETHAND 0x8000000072#define SA_RESTART 0x1000000073#define SA_SIGINFO 0x0000000874#define SA_NODEFER 0x4000000075#define SA_NOCLDWAIT 0x0001000076#define SA_NOCLDSTOP 0x000000017778#define SA_NOMASK SA_NODEFER79#define SA_ONESHOT SA_RESETHAND8081#define MINSIGSTKSZ 204882#define SIGSTKSZ 8192838485#define SIG_BLOCK 1 /* for blocking signals */86#define SIG_UNBLOCK 2 /* for unblocking signals */87#define SIG_SETMASK 3 /* for setting the signal mask */8889#include <asm-generic/signal-defs.h>9091#ifndef __KERNEL__92struct sigaction {93unsigned int sa_flags;94__sighandler_t sa_handler;95sigset_t sa_mask;96};97#endif9899/* IRIX compatible stack_t */100typedef struct sigaltstack {101void __user *ss_sp;102__kernel_size_t ss_size;103int ss_flags;104} stack_t;105106107#endif /* _UAPI_ASM_SIGNAL_H */108109110