~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/alpha/include/asm/signal.h

Version: ~ [ linux-6.6-rc1 ] ~ [ linux-6.5.2 ] ~ [ linux-6.4.15 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.52 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.131 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.194 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.256 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.294 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.325 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 #ifndef _ASMAXP_SIGNAL_H
  2 #define _ASMAXP_SIGNAL_H
  3 
  4 #include <linux/types.h>
  5 
  6 /* Avoid too many header ordering problems.  */
  7 struct siginfo;
  8 
  9 #ifdef __KERNEL__
 10 /* Digital Unix defines 64 signals.  Most things should be clean enough
 11    to redefine this at will, if care is taken to make libc match.  */
 12 
 13 #define _NSIG           64
 14 #define _NSIG_BPW       64
 15 #define _NSIG_WORDS     (_NSIG / _NSIG_BPW)
 16 
 17 typedef unsigned long old_sigset_t;             /* at least 32 bits */
 18 
 19 typedef struct {
 20         unsigned long sig[_NSIG_WORDS];
 21 } sigset_t;
 22 
 23 #else
 24 /* Here we must cater to libcs that poke about in kernel headers.  */
 25 
 26 #define NSIG            32
 27 typedef unsigned long sigset_t;
 28 
 29 #endif /* __KERNEL__ */
 30 
 31 
 32 /*
 33  * Linux/AXP has different signal numbers that Linux/i386: I'm trying
 34  * to make it OSF/1 binary compatible, at least for normal binaries.
 35  */
 36 #define SIGHUP           1
 37 #define SIGINT           2
 38 #define SIGQUIT          3
 39 #define SIGILL           4
 40 #define SIGTRAP          5
 41 #define SIGABRT          6
 42 #define SIGEMT           7
 43 #define SIGFPE           8
 44 #define SIGKILL          9
 45 #define SIGBUS          10
 46 #define SIGSEGV         11
 47 #define SIGSYS          12
 48 #define SIGPIPE         13
 49 #define SIGALRM         14
 50 #define SIGTERM         15
 51 #define SIGURG          16
 52 #define SIGSTOP         17
 53 #define SIGTSTP         18
 54 #define SIGCONT         19
 55 #define SIGCHLD         20
 56 #define SIGTTIN         21
 57 #define SIGTTOU         22
 58 #define SIGIO           23
 59 #define SIGXCPU         24
 60 #define SIGXFSZ         25
 61 #define SIGVTALRM       26
 62 #define SIGPROF         27
 63 #define SIGWINCH        28
 64 #define SIGINFO         29
 65 #define SIGUSR1         30
 66 #define SIGUSR2         31
 67 
 68 #define SIGPOLL SIGIO
 69 #define SIGPWR  SIGINFO
 70 #define SIGIOT  SIGABRT
 71 
 72 /* These should not be considered constants from userland.  */
 73 #define SIGRTMIN        32
 74 #define SIGRTMAX        _NSIG
 75 
 76 /*
 77  * SA_FLAGS values:
 78  *
 79  * SA_ONSTACK indicates that a registered stack_t will be used.
 80  * SA_RESTART flag to get restarting signals (which were the default long ago)
 81  * SA_NOCLDSTOP flag to turn off SIGCHLD when children stop.
 82  * SA_RESETHAND clears the handler when the signal is delivered.
 83  * SA_NOCLDWAIT flag on SIGCHLD to inhibit zombies.
 84  * SA_NODEFER prevents the current signal from being masked in the handler.
 85  *
 86  * SA_ONESHOT and SA_NOMASK are the historical Linux names for the Single
 87  * Unix names RESETHAND and NODEFER respectively.
 88  */
 89 
 90 #define SA_ONSTACK      0x00000001
 91 #define SA_RESTART      0x00000002
 92 #define SA_NOCLDSTOP    0x00000004
 93 #define SA_NODEFER      0x00000008
 94 #define SA_RESETHAND    0x00000010
 95 #define SA_NOCLDWAIT    0x00000020
 96 #define SA_SIGINFO      0x00000040
 97 
 98 #define SA_ONESHOT      SA_RESETHAND
 99 #define SA_NOMASK       SA_NODEFER
100 
101 /* 
102  * sigaltstack controls
103  */
104 #define SS_ONSTACK      1
105 #define SS_DISABLE      2
106 
107 #define MINSIGSTKSZ     4096
108 #define SIGSTKSZ        16384
109 
110 #define SIG_BLOCK          1    /* for blocking signals */
111 #define SIG_UNBLOCK        2    /* for unblocking signals */
112 #define SIG_SETMASK        3    /* for setting the signal mask */
113 
114 #include <asm-generic/signal-defs.h>
115 
116 #ifdef __KERNEL__
117 struct osf_sigaction {
118         __sighandler_t  sa_handler;
119         old_sigset_t    sa_mask;
120         int             sa_flags;
121 };
122 
123 struct sigaction {
124         __sighandler_t  sa_handler;
125         unsigned long   sa_flags;
126         sigset_t        sa_mask;        /* mask last for extensibility */
127 };
128 
129 struct k_sigaction {
130         struct sigaction sa;
131         __sigrestore_t ka_restorer;
132 };
133 #else
134 /* Here we must cater to libcs that poke about in kernel headers.  */
135 
136 struct sigaction {
137         union {
138           __sighandler_t        _sa_handler;
139           void (*_sa_sigaction)(int, struct siginfo *, void *);
140         } _u;
141         sigset_t        sa_mask;
142         int             sa_flags;
143 };
144 
145 #define sa_handler      _u._sa_handler
146 #define sa_sigaction    _u._sa_sigaction
147 
148 #endif /* __KERNEL__ */
149 
150 typedef struct sigaltstack {
151         void __user *ss_sp;
152         int ss_flags;
153         size_t ss_size;
154 } stack_t;
155 
156 /* sigstack(2) is deprecated, and will be withdrawn in a future version
157    of the X/Open CAE Specification.  Use sigaltstack instead.  It is only
158    implemented here for OSF/1 compatibility.  */
159 
160 struct sigstack {
161         void __user *ss_sp;
162         int ss_onstack;
163 };
164 
165 #ifdef __KERNEL__
166 #include <asm/sigcontext.h>
167 
168 #define ptrace_signal_deliver(regs, cookie) do { } while (0)
169 
170 #endif
171 
172 #endif
173 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp