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

TOMOYO Linux Cross Reference
Linux/include/asm-ppc/signal.h

Version: ~ [ linux-5.15-rc5 ] ~ [ linux-5.14.11 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.72 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.152 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.210 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.250 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.286 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.288 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.18.140 ] ~ [ linux-3.16.85 ] ~ [ linux-3.14.79 ] ~ [ linux-3.12.74 ] ~ [ 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.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 #ifndef _ASMPPC_SIGNAL_H
  2 #define _ASMPPC_SIGNAL_H
  3 
  4 #ifdef __KERNEL__
  5 #include <linux/types.h>
  6 #endif /* __KERNEL__ */
  7 
  8 /* Avoid too many header ordering problems.  */
  9 struct siginfo;
 10 
 11 /* Most things should be clean enough to redefine this at will, if care
 12    is taken to make libc match.  */
 13 
 14 #define _NSIG           64
 15 #define _NSIG_BPW       32
 16 #define _NSIG_WORDS     (_NSIG / _NSIG_BPW)
 17 
 18 typedef unsigned long old_sigset_t;             /* at least 32 bits */
 19 
 20 typedef struct {
 21         unsigned long sig[_NSIG_WORDS];
 22 } sigset_t;
 23 
 24 #define SIGHUP           1
 25 #define SIGINT           2
 26 #define SIGQUIT          3
 27 #define SIGILL           4
 28 #define SIGTRAP          5
 29 #define SIGABRT          6
 30 #define SIGIOT           6
 31 #define SIGBUS           7
 32 #define SIGFPE           8
 33 #define SIGKILL          9
 34 #define SIGUSR1         10
 35 #define SIGSEGV         11
 36 #define SIGUSR2         12
 37 #define SIGPIPE         13
 38 #define SIGALRM         14
 39 #define SIGTERM         15
 40 #define SIGSTKFLT       16
 41 #define SIGCHLD         17
 42 #define SIGCONT         18
 43 #define SIGSTOP         19
 44 #define SIGTSTP         20
 45 #define SIGTTIN         21
 46 #define SIGTTOU         22
 47 #define SIGURG          23
 48 #define SIGXCPU         24
 49 #define SIGXFSZ         25
 50 #define SIGVTALRM       26
 51 #define SIGPROF         27
 52 #define SIGWINCH        28
 53 #define SIGIO           29
 54 #define SIGPOLL         SIGIO
 55 /*
 56 #define SIGLOST         29
 57 */
 58 #define SIGPWR          30
 59 #define SIGSYS          31
 60 #define SIGUNUSED       31
 61 
 62 /* These should not be considered constants from userland.  */
 63 #define SIGRTMIN        32
 64 #define SIGRTMAX        (_NSIG-1)
 65 
 66 /*
 67  * SA_FLAGS values:
 68  *
 69  * SA_ONSTACK is not currently supported, but will allow sigaltstack(2).
 70  * SA_INTERRUPT is a no-op, but left due to historical reasons. Use the
 71  * SA_RESTART flag to get restarting signals (which were the default long ago)
 72  * SA_NOCLDSTOP flag to turn off SIGCHLD when children stop.
 73  * SA_RESETHAND clears the handler when the signal is delivered.
 74  * SA_NOCLDWAIT flag on SIGCHLD to inhibit zombies.
 75  * SA_NODEFER prevents the current signal from being masked in the handler.
 76  *
 77  * SA_ONESHOT and SA_NOMASK are the historical Linux names for the Single
 78  * Unix names RESETHAND and NODEFER respectively.
 79  */
 80 #define SA_NOCLDSTOP    0x00000001
 81 #define SA_NOCLDWAIT    0x00000002 /* not supported yet */
 82 #define SA_SIGINFO      0x00000004
 83 #define SA_ONSTACK      0x08000000
 84 #define SA_RESTART      0x10000000
 85 #define SA_NODEFER      0x40000000
 86 #define SA_RESETHAND    0x80000000
 87 
 88 #define SA_NOMASK       SA_NODEFER
 89 #define SA_ONESHOT      SA_RESETHAND
 90 #define SA_INTERRUPT    0x20000000 /* dummy -- ignored */
 91 
 92 #define SA_RESTORER     0x04000000
 93 
 94 /*
 95  * sigaltstack controls
 96  */
 97 #define SS_ONSTACK      1
 98 #define SS_DISABLE      2
 99 
100 #define MINSIGSTKSZ     2048
101 #define SIGSTKSZ        8192
102 #ifdef __KERNEL__
103 
104 /*
105  * These values of sa_flags are used only by the kernel as part of the
106  * irq handling routines.
107  *
108  * SA_INTERRUPT is also used by the irq handling routines.
109  * SA_SHIRQ is for shared interrupt support on PCI and EISA.
110  */
111 #define SA_PROBE                SA_ONESHOT
112 #define SA_SAMPLE_RANDOM        SA_RESTART
113 #define SA_SHIRQ                0x04000000
114 #endif /* __KERNEL__ */
115 
116 #define SIG_BLOCK          0    /* for blocking signals */
117 #define SIG_UNBLOCK        1    /* for unblocking signals */
118 #define SIG_SETMASK        2    /* for setting the signal mask */
119 
120 /* Type of a signal handler.  */
121 typedef void (*__sighandler_t)(int);
122 
123 #define SIG_DFL ((__sighandler_t)0)     /* default signal handling */
124 #define SIG_IGN ((__sighandler_t)1)     /* ignore signal */
125 #define SIG_ERR ((__sighandler_t)-1)    /* error return from signal */
126 
127 struct old_sigaction {
128         __sighandler_t sa_handler;
129         old_sigset_t sa_mask;
130         unsigned long sa_flags;
131         void (*sa_restorer)(void);
132 };
133 
134 struct sigaction {
135         __sighandler_t sa_handler;
136         unsigned long sa_flags;
137         void (*sa_restorer)(void);
138         sigset_t sa_mask;               /* mask last for extensibility */
139 };
140 
141 struct k_sigaction {
142         struct sigaction sa;
143 };
144 
145 typedef struct sigaltstack {
146         void *ss_sp;
147         int ss_flags;
148         size_t ss_size;
149 } stack_t;
150 
151 #ifdef __KERNEL__
152 #include <asm/sigcontext.h>
153 #endif /* __KERNEL__ */
154 
155 #endif
156 

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

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | 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