[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 07/27: More specific status:exit-val et al compilation g
From: |
Andy Wingo |
Subject: |
[Guile-commits] 07/27: More specific status:exit-val et al compilation guards |
Date: |
Mon, 25 Jul 2016 09:53:45 +0000 (UTC) |
wingo pushed a commit to branch master
in repository guile.
commit f632d45c69d00156a63c162371e8a5ef36e1cabf
Author: Andy Wingo <address@hidden>
Date: Mon Jul 11 22:52:35 2016 +0200
More specific status:exit-val et al compilation guards
* libguile/posix.c (scm_status_exit_val, scm_status_term_sig)
(scm_status_stop_sig): Guard on WIFEXITED et al macros instead of on
MinGW.
---
libguile/posix.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/libguile/posix.c b/libguile/posix.c
index 66b2bed..8aa0f3e 100644
--- a/libguile/posix.c
+++ b/libguile/posix.c
@@ -718,7 +718,7 @@ SCM_DEFINE (scm_waitpid, "waitpid", 1, 1, 0,
#undef FUNC_NAME
#endif /* HAVE_WAITPID */
-#ifndef __MINGW32__
+#ifdef WIFEXITED
SCM_DEFINE (scm_status_exit_val, "status:exit-val", 1, 0, 0,
(SCM status),
"Return the exit status value, as would be set if a process\n"
@@ -737,7 +737,9 @@ SCM_DEFINE (scm_status_exit_val, "status:exit-val", 1, 0, 0,
return SCM_BOOL_F;
}
#undef FUNC_NAME
+#endif /* WIFEXITED */
+#ifdef WIFSIGNALED
SCM_DEFINE (scm_status_term_sig, "status:term-sig", 1, 0, 0,
(SCM status),
"Return the signal number which terminated the process, if any,\n"
@@ -753,7 +755,9 @@ SCM_DEFINE (scm_status_term_sig, "status:term-sig", 1, 0, 0,
return SCM_BOOL_F;
}
#undef FUNC_NAME
+#endif /* WIFSIGNALED */
+#ifdef WIFSTOPPED
SCM_DEFINE (scm_status_stop_sig, "status:stop-sig", 1, 0, 0,
(SCM status),
"Return the signal number which stopped the process, if any,\n"
@@ -769,7 +773,7 @@ SCM_DEFINE (scm_status_stop_sig, "status:stop-sig", 1, 0, 0,
return SCM_BOOL_F;
}
#undef FUNC_NAME
-#endif /* __MINGW32__ */
+#endif /* WIFSTOPPED */
#ifdef HAVE_GETPPID
SCM_DEFINE (scm_getppid, "getppid", 0, 0, 0,
- [Guile-commits] branch master updated (867316f -> d2684fe), Andy Wingo, 2016/07/25
- [Guile-commits] 01/27: build: Remove unneeded check for 'unsetenv'., Andy Wingo, 2016/07/25
- [Guile-commits] 02/27: Unconditionally include <time.h> from Gnulib., Andy Wingo, 2016/07/25
- [Guile-commits] 09/27: Ignore meta/build-env, Andy Wingo, 2016/07/25
- [Guile-commits] 03/27: Add missing 'const' qualifier., Andy Wingo, 2016/07/25
- [Guile-commits] 05/27: Provide `kill' only if supported by the host, Andy Wingo, 2016/07/25
- [Guile-commits] 27/27: Avoid compilation warnings about alloca in read.c, Andy Wingo, 2016/07/25
- [Guile-commits] 04/27: More robust setuid, setgid, etc detection, Andy Wingo, 2016/07/25
- [Guile-commits] 17/27: doc: Do not gender the programmer., Andy Wingo, 2016/07/25
- [Guile-commits] 24/27: Use non-deprecated HAVE_STRUCT_TM_TM_ZONE, Andy Wingo, 2016/07/25
- [Guile-commits] 07/27: More specific status:exit-val et al compilation guards,
Andy Wingo <=
- [Guile-commits] 12/27: Add popen feature, Andy Wingo, 2016/07/25
- [Guile-commits] 10/27: Rename win32-uname.[ch] to posix-w32.[ch], Andy Wingo, 2016/07/25
- [Guile-commits] 16/27: Update uname implementation in posix-w32, Andy Wingo, 2016/07/25
- [Guile-commits] 22/27: Gnulib: Add dirname-lgpl., Andy Wingo, 2016/07/25
- [Guile-commits] 14/27: Fix MinGW build error, Andy Wingo, 2016/07/25
- [Guile-commits] 06/27: getaffinity, setaffinity docstring cleanup, Andy Wingo, 2016/07/25
- [Guile-commits] 13/27: Update NEWS, Andy Wingo, 2016/07/25
- [Guile-commits] 26/27: Fix --without-threads against threaded BDW-GC, Andy Wingo, 2016/07/25
- [Guile-commits] 08/27: Factor start_child out of open_process, Andy Wingo, 2016/07/25
- [Guile-commits] 21/27: doc: Add unquote and unquote-splicing examples., Andy Wingo, 2016/07/25