18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Modified 1998-2001, 2003 48c2ecf20Sopenharmony_ci * David Mosberger-Tang <davidm@hpl.hp.com>, Hewlett-Packard Co 58c2ecf20Sopenharmony_ci * 68c2ecf20Sopenharmony_ci * Unfortunately, this file is being included by bits/signal.h in 78c2ecf20Sopenharmony_ci * glibc-2.x. Hence the #ifdef __KERNEL__ ugliness. 88c2ecf20Sopenharmony_ci */ 98c2ecf20Sopenharmony_ci#ifndef _UAPI_ASM_IA64_SIGNAL_H 108c2ecf20Sopenharmony_ci#define _UAPI_ASM_IA64_SIGNAL_H 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ci#define SIGHUP 1 148c2ecf20Sopenharmony_ci#define SIGINT 2 158c2ecf20Sopenharmony_ci#define SIGQUIT 3 168c2ecf20Sopenharmony_ci#define SIGILL 4 178c2ecf20Sopenharmony_ci#define SIGTRAP 5 188c2ecf20Sopenharmony_ci#define SIGABRT 6 198c2ecf20Sopenharmony_ci#define SIGIOT 6 208c2ecf20Sopenharmony_ci#define SIGBUS 7 218c2ecf20Sopenharmony_ci#define SIGFPE 8 228c2ecf20Sopenharmony_ci#define SIGKILL 9 238c2ecf20Sopenharmony_ci#define SIGUSR1 10 248c2ecf20Sopenharmony_ci#define SIGSEGV 11 258c2ecf20Sopenharmony_ci#define SIGUSR2 12 268c2ecf20Sopenharmony_ci#define SIGPIPE 13 278c2ecf20Sopenharmony_ci#define SIGALRM 14 288c2ecf20Sopenharmony_ci#define SIGTERM 15 298c2ecf20Sopenharmony_ci#define SIGSTKFLT 16 308c2ecf20Sopenharmony_ci#define SIGCHLD 17 318c2ecf20Sopenharmony_ci#define SIGCONT 18 328c2ecf20Sopenharmony_ci#define SIGSTOP 19 338c2ecf20Sopenharmony_ci#define SIGTSTP 20 348c2ecf20Sopenharmony_ci#define SIGTTIN 21 358c2ecf20Sopenharmony_ci#define SIGTTOU 22 368c2ecf20Sopenharmony_ci#define SIGURG 23 378c2ecf20Sopenharmony_ci#define SIGXCPU 24 388c2ecf20Sopenharmony_ci#define SIGXFSZ 25 398c2ecf20Sopenharmony_ci#define SIGVTALRM 26 408c2ecf20Sopenharmony_ci#define SIGPROF 27 418c2ecf20Sopenharmony_ci#define SIGWINCH 28 428c2ecf20Sopenharmony_ci#define SIGIO 29 438c2ecf20Sopenharmony_ci#define SIGPOLL SIGIO 448c2ecf20Sopenharmony_ci/* 458c2ecf20Sopenharmony_ci#define SIGLOST 29 468c2ecf20Sopenharmony_ci*/ 478c2ecf20Sopenharmony_ci#define SIGPWR 30 488c2ecf20Sopenharmony_ci#define SIGSYS 31 498c2ecf20Sopenharmony_ci/* signal 31 is no longer "unused", but the SIGUNUSED macro remains for backwards compatibility */ 508c2ecf20Sopenharmony_ci#define SIGUNUSED 31 518c2ecf20Sopenharmony_ci 528c2ecf20Sopenharmony_ci/* These should not be considered constants from userland. */ 538c2ecf20Sopenharmony_ci#define SIGRTMIN 32 548c2ecf20Sopenharmony_ci#define SIGRTMAX _NSIG 558c2ecf20Sopenharmony_ci 568c2ecf20Sopenharmony_ci/* 578c2ecf20Sopenharmony_ci * SA_FLAGS values: 588c2ecf20Sopenharmony_ci * 598c2ecf20Sopenharmony_ci * SA_ONSTACK indicates that a registered stack_t will be used. 608c2ecf20Sopenharmony_ci * SA_RESTART flag to get restarting signals (which were the default long ago) 618c2ecf20Sopenharmony_ci * SA_NOCLDSTOP flag to turn off SIGCHLD when children stop. 628c2ecf20Sopenharmony_ci * SA_RESETHAND clears the handler when the signal is delivered. 638c2ecf20Sopenharmony_ci * SA_NOCLDWAIT flag on SIGCHLD to inhibit zombies. 648c2ecf20Sopenharmony_ci * SA_NODEFER prevents the current signal from being masked in the handler. 658c2ecf20Sopenharmony_ci * 668c2ecf20Sopenharmony_ci * SA_ONESHOT and SA_NOMASK are the historical Linux names for the Single 678c2ecf20Sopenharmony_ci * Unix names RESETHAND and NODEFER respectively. 688c2ecf20Sopenharmony_ci */ 698c2ecf20Sopenharmony_ci#define SA_NOCLDSTOP 0x00000001 708c2ecf20Sopenharmony_ci#define SA_NOCLDWAIT 0x00000002 718c2ecf20Sopenharmony_ci#define SA_SIGINFO 0x00000004 728c2ecf20Sopenharmony_ci#define SA_ONSTACK 0x08000000 738c2ecf20Sopenharmony_ci#define SA_RESTART 0x10000000 748c2ecf20Sopenharmony_ci#define SA_NODEFER 0x40000000 758c2ecf20Sopenharmony_ci#define SA_RESETHAND 0x80000000 768c2ecf20Sopenharmony_ci 778c2ecf20Sopenharmony_ci#define SA_NOMASK SA_NODEFER 788c2ecf20Sopenharmony_ci#define SA_ONESHOT SA_RESETHAND 798c2ecf20Sopenharmony_ci 808c2ecf20Sopenharmony_ci#define SA_RESTORER 0x04000000 818c2ecf20Sopenharmony_ci 828c2ecf20Sopenharmony_ci/* 838c2ecf20Sopenharmony_ci * The minimum stack size needs to be fairly large because we want to 848c2ecf20Sopenharmony_ci * be sure that an app compiled for today's CPUs will continue to run 858c2ecf20Sopenharmony_ci * on all future CPU models. The CPU model matters because the signal 868c2ecf20Sopenharmony_ci * frame needs to have space for the complete machine state, including 878c2ecf20Sopenharmony_ci * all physical stacked registers. The number of physical stacked 888c2ecf20Sopenharmony_ci * registers is CPU model dependent, but given that the width of 898c2ecf20Sopenharmony_ci * ar.rsc.loadrs is 14 bits, we can assume that they'll never take up 908c2ecf20Sopenharmony_ci * more than 16KB of space. 918c2ecf20Sopenharmony_ci */ 928c2ecf20Sopenharmony_ci#if 1 938c2ecf20Sopenharmony_ci /* 948c2ecf20Sopenharmony_ci * This is a stupid typo: the value was _meant_ to be 131072 (0x20000), but I typed it 958c2ecf20Sopenharmony_ci * in wrong. ;-( To preserve backwards compatibility, we leave the kernel at the 968c2ecf20Sopenharmony_ci * incorrect value and fix libc only. 978c2ecf20Sopenharmony_ci */ 988c2ecf20Sopenharmony_ci# define MINSIGSTKSZ 131027 /* min. stack size for sigaltstack() */ 998c2ecf20Sopenharmony_ci#else 1008c2ecf20Sopenharmony_ci# define MINSIGSTKSZ 131072 /* min. stack size for sigaltstack() */ 1018c2ecf20Sopenharmony_ci#endif 1028c2ecf20Sopenharmony_ci#define SIGSTKSZ 262144 /* default stack size for sigaltstack() */ 1038c2ecf20Sopenharmony_ci 1048c2ecf20Sopenharmony_ci 1058c2ecf20Sopenharmony_ci#include <asm-generic/signal-defs.h> 1068c2ecf20Sopenharmony_ci 1078c2ecf20Sopenharmony_ci# ifndef __ASSEMBLY__ 1088c2ecf20Sopenharmony_ci 1098c2ecf20Sopenharmony_ci# include <linux/types.h> 1108c2ecf20Sopenharmony_ci 1118c2ecf20Sopenharmony_ci/* Avoid too many header ordering problems. */ 1128c2ecf20Sopenharmony_cistruct siginfo; 1138c2ecf20Sopenharmony_ci 1148c2ecf20Sopenharmony_citypedef struct sigaltstack { 1158c2ecf20Sopenharmony_ci void __user *ss_sp; 1168c2ecf20Sopenharmony_ci int ss_flags; 1178c2ecf20Sopenharmony_ci size_t ss_size; 1188c2ecf20Sopenharmony_ci} stack_t; 1198c2ecf20Sopenharmony_ci 1208c2ecf20Sopenharmony_ci 1218c2ecf20Sopenharmony_ci# endif /* !__ASSEMBLY__ */ 1228c2ecf20Sopenharmony_ci#endif /* _UAPI_ASM_IA64_SIGNAL_H */ 123