signal.h (2580B)
1/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2/* 3 * Modified 1998-2001, 2003 4 * David Mosberger-Tang <davidm@hpl.hp.com>, Hewlett-Packard Co 5 * 6 * Unfortunately, this file is being included by bits/signal.h in 7 * glibc-2.x. Hence the #ifdef __KERNEL__ ugliness. 8 */ 9#ifndef _UAPI_ASM_IA64_SIGNAL_H 10#define _UAPI_ASM_IA64_SIGNAL_H 11 12 13#define SIGHUP 1 14#define SIGINT 2 15#define SIGQUIT 3 16#define SIGILL 4 17#define SIGTRAP 5 18#define SIGABRT 6 19#define SIGIOT 6 20#define SIGBUS 7 21#define SIGFPE 8 22#define SIGKILL 9 23#define SIGUSR1 10 24#define SIGSEGV 11 25#define SIGUSR2 12 26#define SIGPIPE 13 27#define SIGALRM 14 28#define SIGTERM 15 29#define SIGSTKFLT 16 30#define SIGCHLD 17 31#define SIGCONT 18 32#define SIGSTOP 19 33#define SIGTSTP 20 34#define SIGTTIN 21 35#define SIGTTOU 22 36#define SIGURG 23 37#define SIGXCPU 24 38#define SIGXFSZ 25 39#define SIGVTALRM 26 40#define SIGPROF 27 41#define SIGWINCH 28 42#define SIGIO 29 43#define SIGPOLL SIGIO 44/* 45#define SIGLOST 29 46*/ 47#define SIGPWR 30 48#define SIGSYS 31 49/* signal 31 is no longer "unused", but the SIGUNUSED macro remains for backwards compatibility */ 50#define SIGUNUSED 31 51 52/* These should not be considered constants from userland. */ 53#define SIGRTMIN 32 54#define SIGRTMAX _NSIG 55 56#define SA_RESTORER 0x04000000 57 58/* 59 * The minimum stack size needs to be fairly large because we want to 60 * be sure that an app compiled for today's CPUs will continue to run 61 * on all future CPU models. The CPU model matters because the signal 62 * frame needs to have space for the complete machine state, including 63 * all physical stacked registers. The number of physical stacked 64 * registers is CPU model dependent, but given that the width of 65 * ar.rsc.loadrs is 14 bits, we can assume that they'll never take up 66 * more than 16KB of space. 67 */ 68#if 1 69 /* 70 * This is a stupid typo: the value was _meant_ to be 131072 (0x20000), but I typed it 71 * in wrong. ;-( To preserve backwards compatibility, we leave the kernel at the 72 * incorrect value and fix libc only. 73 */ 74# define MINSIGSTKSZ 131027 /* min. stack size for sigaltstack() */ 75#else 76# define MINSIGSTKSZ 131072 /* min. stack size for sigaltstack() */ 77#endif 78#define SIGSTKSZ 262144 /* default stack size for sigaltstack() */ 79 80 81#include <asm-generic/signal-defs.h> 82 83# ifndef __ASSEMBLY__ 84 85# include <linux/types.h> 86 87/* Avoid too many header ordering problems. */ 88struct siginfo; 89 90typedef struct sigaltstack { 91 void __user *ss_sp; 92 int ss_flags; 93 __kernel_size_t ss_size; 94} stack_t; 95 96 97# endif /* !__ASSEMBLY__ */ 98#endif /* _UAPI_ASM_IA64_SIGNAL_H */