diff options
| author | Eli Zaretskii | 2010-05-01 21:28:00 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2010-05-01 21:28:00 +0300 |
| commit | d6dae14b946a4bda5ba4dda7a625ec04511b16f4 (patch) | |
| tree | dcaaf3a6610f7cdf68c4894e345d6bbde925061d /src/s | |
| parent | b47e0dcf2db5d0f754342f0eb13e53974bfbefbe (diff) | |
| download | emacs-d6dae14b946a4bda5ba4dda7a625ec04511b16f4.tar.gz emacs-d6dae14b946a4bda5ba4dda7a625ec04511b16f4.zip | |
Emulate POSIX_SIGNALS on MS-Windows.
w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask): New stubs.
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.
s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
(SIG_SETMASK, SIG_UNBLOCK): Define.
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 | ||