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

Linux Cross Reference
Linux/include/asm-ia64/signal.h

Version: ~ [ 2.4.0 ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

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

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

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.