[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 11/16: Add `scm_sigaction_for_thread' stub for MinGW.
From: |
Jan Nieuwenhuizen |
Subject: |
[Guile-commits] 11/16: Add `scm_sigaction_for_thread' stub for MinGW. |
Date: |
Wed, 11 May 2022 17:45:23 -0400 (EDT) |
janneke pushed a commit to branch wip-mingw
in repository guile.
commit c9cc2feb568e34584d61c194604e28eaa41529b1
Author: Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Sat Mar 21 13:06:56 2020 +0100
Add `scm_sigaction_for_thread' stub for MinGW.
* libguile/scmsigs.c (scm_sigaction_for_thread)[__MINGW32__]: New stub.
(SIGHUP, SIGPIPE)[__MINGW32__]: New defines.
---
libguile/posix.c | 4 +++-
libguile/scmsigs.c | 19 +++++++++++++++++++
2 files changed, 22 insertions(+), 1 deletion(-)
diff --git a/libguile/posix.c b/libguile/posix.c
index 3ab12b99e..f9297e5e8 100644
--- a/libguile/posix.c
+++ b/libguile/posix.c
@@ -61,7 +61,9 @@
#ifdef __MINGW32__
# include "posix-w32.h"
-#endif
+# define SIGHUP 1
+# define SIGPIPE 13
+#endif /* __MINGW32__ */
#include "async.h"
#include "bitvectors.h"
diff --git a/libguile/scmsigs.c b/libguile/scmsigs.c
index d5ebab56b..0cced1970 100644
--- a/libguile/scmsigs.c
+++ b/libguile/scmsigs.c
@@ -320,6 +320,23 @@ scm_sigaction (SCM signum, SCM handler, SCM flags)
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. */
SCM_DEFINE (scm_sigaction_for_thread, "sigaction", 1, 3, 0,
(SCM signum, SCM handler, SCM flags, SCM thread),
@@ -515,6 +532,8 @@ SCM_DEFINE (scm_sigaction_for_thread, "sigaction", 1, 3, 0,
}
#undef FUNC_NAME
+#endif /* !__MINGW32__ */
+
SCM_DEFINE (scm_restore_signals, "restore-signals", 0, 0, 0,
(void),
"Return all signal handlers to the values they had before any call
to\n"
- [Guile-commits] 01/16: gnulib: Import the gethostname module., (continued)
- [Guile-commits] 01/16: gnulib: Import the gethostname module., Jan Nieuwenhuizen, 2022/05/11
- [Guile-commits] 02/16: Link fix for MinGW., Jan Nieuwenhuizen, 2022/05/11
- [Guile-commits] 06/16: Clear errno before CreateProcess for MinGW., Jan Nieuwenhuizen, 2022/05/11
- [Guile-commits] 08/16: squash! Fix 'absolute-file-name?' and others for cross-build to MinGW., Jan Nieuwenhuizen, 2022/05/11
- [Guile-commits] 04/16: Add 'set-port-binary/text-mode!' procedure for MinGW., Jan Nieuwenhuizen, 2022/05/11
- [Guile-commits] 09/16: Make `read-bytes' suspendable for socket reads on MinGW., Jan Nieuwenhuizen, 2022/05/11
- [Guile-commits] 10/16: Install 'mingw_take_signal' on MinGW., Jan Nieuwenhuizen, 2022/05/11
- [Guile-commits] 14/16: REMOVEME mingw: Hardcode compile-time-file-name-convention to 'mingw., Jan Nieuwenhuizen, 2022/05/11
- [Guile-commits] 15/16: REMOVEME guix: guile-mingw: Hardcode file-name-convention., Jan Nieuwenhuizen, 2022/05/11
- [Guile-commits] 16/16: DEBUG guile.cmd, wine-guile.sh: Some Wine help., Jan Nieuwenhuizen, 2022/05/11
- [Guile-commits] 11/16: Add `scm_sigaction_for_thread' stub for MinGW.,
Jan Nieuwenhuizen <=
- [Guile-commits] 12/16: DRAFT Add partial `scm_fcntl' support for MinGW., Jan Nieuwenhuizen, 2022/05/11
- [Guile-commits] 03/16: mingw: canonicalize-path: Also canonicalize drive letter and '/'., Jan Nieuwenhuizen, 2022/05/11
- [Guile-commits] 05/16: Support for x86_64-w64-mingw32., Jan Nieuwenhuizen, 2022/05/11
- [Guile-commits] 13/16: guix: Add guile-patched, guile-mingw., Jan Nieuwenhuizen, 2022/05/11
- [Guile-commits] 07/16: Fix 'absolute-file-name?' and others for cross-build to MinGW., Jan Nieuwenhuizen, 2022/05/11