diff options
| author | Anton Altaparmakov <aia21@cantab.net> | 2006-01-19 11:39:33 -0500 |
|---|---|---|
| committer | Anton Altaparmakov <aia21@cantab.net> | 2006-01-19 11:39:33 -0500 |
| commit | 944d79559d154c12becde0dab327016cf438f46c (patch) | |
| tree | 50c101806f4d3b6585222dda060559eb4f3e005a /include/linux/signal.h | |
| parent | d087e4bdd24ebe3ae3d0b265b6573ec901af4b4b (diff) | |
| parent | 0f36b018b2e314d45af86449f1a97facb1fbe300 (diff) | |
Merge branch 'master' of /usr/src/ntfs-2.6/
Diffstat (limited to 'include/linux/signal.h')
| -rw-r--r-- | include/linux/signal.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/include/linux/signal.h b/include/linux/signal.h index 5dd5f02c5c5f..b7d093520bb6 100644 --- a/include/linux/signal.h +++ b/include/linux/signal.h | |||
| @@ -18,6 +18,19 @@ | |||
| 18 | #define SA_PROBE SA_ONESHOT | 18 | #define SA_PROBE SA_ONESHOT |
| 19 | #define SA_SAMPLE_RANDOM SA_RESTART | 19 | #define SA_SAMPLE_RANDOM SA_RESTART |
| 20 | #define SA_SHIRQ 0x04000000 | 20 | #define SA_SHIRQ 0x04000000 |
| 21 | /* | ||
| 22 | * As above, these correspond to the IORESOURCE_IRQ_* defines in | ||
| 23 | * linux/ioport.h to select the interrupt line behaviour. When | ||
| 24 | * requesting an interrupt without specifying a SA_TRIGGER, the | ||
| 25 | * setting should be assumed to be "as already configured", which | ||
| 26 | * may be as per machine or firmware initialisation. | ||
| 27 | */ | ||
| 28 | #define SA_TRIGGER_LOW 0x00000008 | ||
| 29 | #define SA_TRIGGER_HIGH 0x00000004 | ||
| 30 | #define SA_TRIGGER_FALLING 0x00000002 | ||
| 31 | #define SA_TRIGGER_RISING 0x00000001 | ||
| 32 | #define SA_TRIGGER_MASK (SA_TRIGGER_HIGH|SA_TRIGGER_LOW|\ | ||
| 33 | SA_TRIGGER_RISING|SA_TRIGGER_FALLING) | ||
| 21 | 34 | ||
| 22 | /* | 35 | /* |
| 23 | * Real Time signals may be queued. | 36 | * Real Time signals may be queued. |
| @@ -81,6 +94,23 @@ static inline int sigfindinword(unsigned long word) | |||
| 81 | 94 | ||
| 82 | #endif /* __HAVE_ARCH_SIG_BITOPS */ | 95 | #endif /* __HAVE_ARCH_SIG_BITOPS */ |
| 83 | 96 | ||
| 97 | static inline int sigisemptyset(sigset_t *set) | ||
| 98 | { | ||
| 99 | extern void _NSIG_WORDS_is_unsupported_size(void); | ||
| 100 | switch (_NSIG_WORDS) { | ||
| 101 | case 4: | ||
| 102 | return (set->sig[3] | set->sig[2] | | ||
| 103 | set->sig[1] | set->sig[0]) == 0; | ||
| 104 | case 2: | ||
| 105 | return (set->sig[1] | set->sig[0]) == 0; | ||
| 106 | case 1: | ||
| 107 | return set->sig[0] == 0; | ||
| 108 | default: | ||
| 109 | _NSIG_WORDS_is_unsupported_size(); | ||
| 110 | return 0; | ||
| 111 | } | ||
| 112 | } | ||
| 113 | |||
| 84 | #define sigmask(sig) (1UL << ((sig) - 1)) | 114 | #define sigmask(sig) (1UL << ((sig) - 1)) |
| 85 | 115 | ||
| 86 | #ifndef __HAVE_ARCH_SIG_SETOPS | 116 | #ifndef __HAVE_ARCH_SIG_SETOPS |
