18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 28c2ecf20Sopenharmony_ci#ifndef _UAPI_ASM_PARISC_SIGNAL_H 38c2ecf20Sopenharmony_ci#define _UAPI_ASM_PARISC_SIGNAL_H 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci#define SIGHUP 1 68c2ecf20Sopenharmony_ci#define SIGINT 2 78c2ecf20Sopenharmony_ci#define SIGQUIT 3 88c2ecf20Sopenharmony_ci#define SIGILL 4 98c2ecf20Sopenharmony_ci#define SIGTRAP 5 108c2ecf20Sopenharmony_ci#define SIGABRT 6 118c2ecf20Sopenharmony_ci#define SIGIOT 6 128c2ecf20Sopenharmony_ci#define SIGSTKFLT 7 138c2ecf20Sopenharmony_ci#define SIGFPE 8 148c2ecf20Sopenharmony_ci#define SIGKILL 9 158c2ecf20Sopenharmony_ci#define SIGBUS 10 168c2ecf20Sopenharmony_ci#define SIGSEGV 11 178c2ecf20Sopenharmony_ci#define SIGXCPU 12 188c2ecf20Sopenharmony_ci#define SIGPIPE 13 198c2ecf20Sopenharmony_ci#define SIGALRM 14 208c2ecf20Sopenharmony_ci#define SIGTERM 15 218c2ecf20Sopenharmony_ci#define SIGUSR1 16 228c2ecf20Sopenharmony_ci#define SIGUSR2 17 238c2ecf20Sopenharmony_ci#define SIGCHLD 18 248c2ecf20Sopenharmony_ci#define SIGPWR 19 258c2ecf20Sopenharmony_ci#define SIGVTALRM 20 268c2ecf20Sopenharmony_ci#define SIGPROF 21 278c2ecf20Sopenharmony_ci#define SIGIO 22 288c2ecf20Sopenharmony_ci#define SIGPOLL SIGIO 298c2ecf20Sopenharmony_ci#define SIGWINCH 23 308c2ecf20Sopenharmony_ci#define SIGSTOP 24 318c2ecf20Sopenharmony_ci#define SIGTSTP 25 328c2ecf20Sopenharmony_ci#define SIGCONT 26 338c2ecf20Sopenharmony_ci#define SIGTTIN 27 348c2ecf20Sopenharmony_ci#define SIGTTOU 28 358c2ecf20Sopenharmony_ci#define SIGURG 29 368c2ecf20Sopenharmony_ci#define SIGXFSZ 30 378c2ecf20Sopenharmony_ci#define SIGUNUSED 31 388c2ecf20Sopenharmony_ci#define SIGSYS 31 398c2ecf20Sopenharmony_ci 408c2ecf20Sopenharmony_ci/* These should not be considered constants from userland. */ 418c2ecf20Sopenharmony_ci#define SIGRTMIN 32 428c2ecf20Sopenharmony_ci#define SIGRTMAX _NSIG 438c2ecf20Sopenharmony_ci 448c2ecf20Sopenharmony_ci/* 458c2ecf20Sopenharmony_ci * SA_FLAGS values: 468c2ecf20Sopenharmony_ci * 478c2ecf20Sopenharmony_ci * SA_ONSTACK indicates that a registered stack_t will be used. 488c2ecf20Sopenharmony_ci * SA_RESTART flag to get restarting signals (which were the default long ago) 498c2ecf20Sopenharmony_ci * SA_NOCLDSTOP flag to turn off SIGCHLD when children stop. 508c2ecf20Sopenharmony_ci * SA_RESETHAND clears the handler when the signal is delivered. 518c2ecf20Sopenharmony_ci * SA_NOCLDWAIT flag on SIGCHLD to inhibit zombies. 528c2ecf20Sopenharmony_ci * SA_NODEFER prevents the current signal from being masked in the handler. 538c2ecf20Sopenharmony_ci * 548c2ecf20Sopenharmony_ci * SA_ONESHOT and SA_NOMASK are the historical Linux names for the Single 558c2ecf20Sopenharmony_ci * Unix names RESETHAND and NODEFER respectively. 568c2ecf20Sopenharmony_ci */ 578c2ecf20Sopenharmony_ci#define SA_ONSTACK 0x00000001 588c2ecf20Sopenharmony_ci#define SA_RESETHAND 0x00000004 598c2ecf20Sopenharmony_ci#define SA_NOCLDSTOP 0x00000008 608c2ecf20Sopenharmony_ci#define SA_SIGINFO 0x00000010 618c2ecf20Sopenharmony_ci#define SA_NODEFER 0x00000020 628c2ecf20Sopenharmony_ci#define SA_RESTART 0x00000040 638c2ecf20Sopenharmony_ci#define SA_NOCLDWAIT 0x00000080 648c2ecf20Sopenharmony_ci 658c2ecf20Sopenharmony_ci#define SA_NOMASK SA_NODEFER 668c2ecf20Sopenharmony_ci#define SA_ONESHOT SA_RESETHAND 678c2ecf20Sopenharmony_ci 688c2ecf20Sopenharmony_ci#define MINSIGSTKSZ 2048 698c2ecf20Sopenharmony_ci#define SIGSTKSZ 8192 708c2ecf20Sopenharmony_ci 718c2ecf20Sopenharmony_ci 728c2ecf20Sopenharmony_ci#define SIG_BLOCK 0 /* for blocking signals */ 738c2ecf20Sopenharmony_ci#define SIG_UNBLOCK 1 /* for unblocking signals */ 748c2ecf20Sopenharmony_ci#define SIG_SETMASK 2 /* for setting the signal mask */ 758c2ecf20Sopenharmony_ci 768c2ecf20Sopenharmony_ci#define SIG_DFL ((__sighandler_t)0) /* default signal handling */ 778c2ecf20Sopenharmony_ci#define SIG_IGN ((__sighandler_t)1) /* ignore signal */ 788c2ecf20Sopenharmony_ci#define SIG_ERR ((__sighandler_t)-1) /* error return from signal */ 798c2ecf20Sopenharmony_ci 808c2ecf20Sopenharmony_ci# ifndef __ASSEMBLY__ 818c2ecf20Sopenharmony_ci 828c2ecf20Sopenharmony_ci# include <linux/types.h> 838c2ecf20Sopenharmony_ci 848c2ecf20Sopenharmony_ci/* Avoid too many header ordering problems. */ 858c2ecf20Sopenharmony_cistruct siginfo; 868c2ecf20Sopenharmony_ci 878c2ecf20Sopenharmony_ci/* Type of a signal handler. */ 888c2ecf20Sopenharmony_ci#if defined(__LP64__) 898c2ecf20Sopenharmony_ci/* function pointers on 64-bit parisc are pointers to little structs and the 908c2ecf20Sopenharmony_ci * compiler doesn't support code which changes or tests the address of 918c2ecf20Sopenharmony_ci * the function in the little struct. This is really ugly -PB 928c2ecf20Sopenharmony_ci */ 938c2ecf20Sopenharmony_citypedef char __user *__sighandler_t; 948c2ecf20Sopenharmony_ci#else 958c2ecf20Sopenharmony_citypedef void __signalfn_t(int); 968c2ecf20Sopenharmony_citypedef __signalfn_t __user *__sighandler_t; 978c2ecf20Sopenharmony_ci#endif 988c2ecf20Sopenharmony_ci 998c2ecf20Sopenharmony_citypedef struct sigaltstack { 1008c2ecf20Sopenharmony_ci void __user *ss_sp; 1018c2ecf20Sopenharmony_ci int ss_flags; 1028c2ecf20Sopenharmony_ci size_t ss_size; 1038c2ecf20Sopenharmony_ci} stack_t; 1048c2ecf20Sopenharmony_ci 1058c2ecf20Sopenharmony_ci#endif /* !__ASSEMBLY */ 1068c2ecf20Sopenharmony_ci#endif /* _UAPI_ASM_PARISC_SIGNAL_H */ 107