mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
Add `scm_sigaction_for_thread' stub for MinGW.
* libguile/scmsigs.c (scm_sigaction_for_thread)[__MINGW32__]: New stub. (SIGHUP, SIGPIPE)[__MINGW32__]: New defines.
This commit is contained in:
parent
eaa38d6381
commit
2b86a3b1cb
2 changed files with 22 additions and 1 deletions
|
@ -54,7 +54,9 @@
|
||||||
|
|
||||||
#ifdef __MINGW32__
|
#ifdef __MINGW32__
|
||||||
# include "posix-w32.h"
|
# include "posix-w32.h"
|
||||||
#endif
|
# define SIGHUP 1
|
||||||
|
# define SIGPIPE 13
|
||||||
|
#endif /* __MINGW32__ */
|
||||||
|
|
||||||
#include "async.h"
|
#include "async.h"
|
||||||
#include "bitvectors.h"
|
#include "bitvectors.h"
|
||||||
|
|
|
@ -419,6 +419,23 @@ scm_sigaction (SCM signum, SCM handler, SCM flags)
|
||||||
return scm_sigaction_for_thread (signum, handler, flags, SCM_UNDEFINED);
|
return scm_sigaction_for_thread (signum, handler, flags, SCM_UNDEFINED);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if __MINGW32__
|
||||||
|
|
||||||
|
SCM_DEFINE (scm_sigaction_for_thread, "sigaction", 1, 3, 0,
|
||||||
|
(SCM signum, SCM handler, SCM flags, SCM thread),
|
||||||
|
"sigaction stub")
|
||||||
|
#define FUNC_NAME s_scm_sigaction_for_thread
|
||||||
|
{
|
||||||
|
(void) signum;
|
||||||
|
(void) handler;
|
||||||
|
(void) flags;
|
||||||
|
(void) thread;
|
||||||
|
return SCM_UNSPECIFIED;
|
||||||
|
}
|
||||||
|
#undef FUNC_NAME
|
||||||
|
|
||||||
|
#else /* !__MINGW32__ */
|
||||||
|
|
||||||
/* user interface for installation of signal handlers. */
|
/* user interface for installation of signal handlers. */
|
||||||
SCM_DEFINE (scm_sigaction_for_thread, "sigaction", 1, 3, 0,
|
SCM_DEFINE (scm_sigaction_for_thread, "sigaction", 1, 3, 0,
|
||||||
(SCM signum, SCM handler, SCM flags, SCM thread),
|
(SCM signum, SCM handler, SCM flags, SCM thread),
|
||||||
|
@ -618,6 +635,8 @@ SCM_DEFINE (scm_sigaction_for_thread, "sigaction", 1, 3, 0,
|
||||||
}
|
}
|
||||||
#undef FUNC_NAME
|
#undef FUNC_NAME
|
||||||
|
|
||||||
|
#endif /* !__MINGW32__ */
|
||||||
|
|
||||||
SCM_DEFINE (scm_restore_signals, "restore-signals", 0, 0, 0,
|
SCM_DEFINE (scm_restore_signals, "restore-signals", 0, 0, 0,
|
||||||
(void),
|
(void),
|
||||||
"Return all signal handlers to the values they had before any call to\n"
|
"Return all signal handlers to the values they had before any call to\n"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue