diff options
| author | Eli Zaretskii | 2010-05-01 21:38:33 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2010-05-01 21:38:33 +0300 |
| commit | 197daef4ab65cbb5d5add8bbc8e258aa26992d4f (patch) | |
| tree | 1208d8d484a666748c4b940dfa696acfffd66021 /src/s | |
| parent | af7c7572ce8d87f51817d0f518d1b0aced074a41 (diff) | |
| parent | d6dae14b946a4bda5ba4dda7a625ec04511b16f4 (diff) | |
| download | emacs-197daef4ab65cbb5d5add8bbc8e258aa26992d4f.tar.gz emacs-197daef4ab65cbb5d5add8bbc8e258aa26992d4f.zip | |
Emulate POSIX_SIGNALS on MS-Windows.
s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
(SIG_SETMASK, SIG_UNBLOCK): Define.
sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
(wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask): New stubs.
Diffstat (limited to 'src/s')
| -rw-r--r-- | src/s/ms-w32.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/s/ms-w32.h b/src/s/ms-w32.h index 66aae334b3f..74e91c1e816 100644 --- a/src/s/ms-w32.h +++ b/src/s/ms-w32.h | |||
| @@ -123,6 +123,18 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 123 | #define IS_DIRECTORY_SEP(_c_) ((_c_) == '/' || (_c_) == '\\') | 123 | #define IS_DIRECTORY_SEP(_c_) ((_c_) == '/' || (_c_) == '\\') |
| 124 | #define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_) || IS_DEVICE_SEP (_c_)) | 124 | #define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_) || IS_DEVICE_SEP (_c_)) |
| 125 | 125 | ||
| 126 | /* Do we have POSIX signals? (We don't, but we don't care, either.) */ | ||
| 127 | #define POSIX_SIGNALS 1 | ||
| 128 | #include <sys/types.h> | ||
| 129 | struct sigaction { | ||
| 130 | int sa_flags; | ||
| 131 | void (*sa_handler)(int); | ||
| 132 | sigset_t sa_mask; | ||
| 133 | }; | ||
| 134 | #define SIG_BLOCK 1 | ||
| 135 | #define SIG_SETMASK 2 | ||
| 136 | #define SIG_UNBLOCK 3 | ||
| 137 | |||
| 126 | /* The null device on Windows NT. */ | 138 | /* The null device on Windows NT. */ |
| 127 | #define NULL_DEVICE "NUL:" | 139 | #define NULL_DEVICE "NUL:" |
| 128 | 140 | ||