X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/6664fc59a8f296117ea98b943f062c0cc0e907c1..2fa85638a036673b63055a86c6bd5b7b789a9d9d:/src/syssignal.h
diff --git a/src/syssignal.h b/src/syssignal.h
index 48eb722935..86135d7121 100644
--- a/src/syssignal.h
+++ b/src/syssignal.h
@@ -1,6 +1,5 @@
/* syssignal.h - System-dependent definitions for signals.
- Copyright (C) 1993, 1999, 2001, 2002, 2003, 2004,
- 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
+ Copyright (C) 1993, 1999, 2001-2012 Free Software Foundation, Inc.
This file is part of GNU Emacs.
@@ -19,7 +18,7 @@ along with GNU Emacs. If not, see . */
extern void init_signals (void);
-#if defined (HAVE_GTK_AND_PTHREAD) || defined (HAVE_NS)
+#ifdef HAVE_PTHREAD
#include
/* If defined, asynchronous signals delivered to a non-main thread are
forwarded to the main thread. */
@@ -36,12 +35,11 @@ extern void init_signals (void);
#define SIGMASKTYPE sigset_t
#define SIGEMPTYMASK (empty_mask)
-#define SIGFULLMASK (full_mask)
-extern sigset_t empty_mask, full_mask;
+extern sigset_t empty_mask;
/* POSIX pretty much destroys any possibility of writing sigmask as a
macro in standard C. We always define our own version because the
- predefined macro in Glibc 2.1 is only provided for compatility for old
+ predefined macro in Glibc 2.1 is only provided for compatibility for old
programs that use int as signal mask type. */
#undef sigmask
#ifdef __GNUC__
@@ -70,12 +68,15 @@ extern sigset_t sys_sigmask ();
/* Whether this is what all systems want or not, this is what
appears to be assumed in the source, for example data.c:arith_error. */
-typedef RETSIGTYPE (*signal_handler_t) (int);
+typedef void (*signal_handler_t) (int);
signal_handler_t sys_signal (int signal_number, signal_handler_t action);
sigset_t sys_sigblock (sigset_t new_mask);
sigset_t sys_sigunblock (sigset_t new_mask);
sigset_t sys_sigsetmask (sigset_t new_mask);
+#if ! (defined TIOCNOTTY || defined USG5 || defined CYGWIN)
+void croak (char *) NO_RETURN;
+#endif
#define sys_sigdel(MASK,SIG) sigdelset (&MASK,SIG)
@@ -159,5 +160,3 @@ extern pthread_t main_thread;
#else /* not FORWARD_SIGNAL_TO_MAIN_THREAD */
#define SIGNAL_THREAD_CHECK(signo)
#endif /* not FORWARD_SIGNAL_TO_MAIN_THREAD */
-/* arch-tag: 4580e86a-340d-4574-9e11-a742b6e1a152
- (do not change this comment) */