[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 12/27: Add popen feature
From: |
Andy Wingo |
Subject: |
[Guile-commits] 12/27: Add popen feature |
Date: |
Mon, 25 Jul 2016 09:53:46 +0000 (UTC) |
wingo pushed a commit to branch master
in repository guile.
commit 513344e33d17a72b693f1dac774567ba3231886e
Author: Andy Wingo <address@hidden>
Date: Thu Jul 14 16:33:32 2016 +0200
Add popen feature
* doc/ref/api-options.texi (Common Feature Symbols): Document the popen
feature.
* doc/ref/posix.texi (Pipes): Depend on the popen feature, not fork.
* libguile/posix.c (scm_init_posix): Add popen feature if we can.
---
doc/ref/api-options.texi | 7 +++++--
doc/ref/posix.texi | 2 +-
libguile/posix.c | 1 +
3 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/doc/ref/api-options.texi b/doc/ref/api-options.texi
index 152bf46..0259b4b 100644
--- a/doc/ref/api-options.texi
+++ b/doc/ref/api-options.texi
@@ -284,8 +284,11 @@ Indicates support for POSIX functions: @code{pipe},
@code{getgroups},
@item fork
Indicates support for the POSIX @code{fork} function (@pxref{Processes,
address@hidden). This is a prerequisite for the @code{(ice-9
-popen)} module (@pxref{Pipes}).
address@hidden).
+
address@hidden popen
+Indicates support for @code{open-pipe} in the @code{(ice-9 popen)}
+module (@pxref{Pipes}).
@item random
Indicates availability of random number generation functions:
diff --git a/doc/ref/posix.texi b/doc/ref/posix.texi
index 118843d..2799ddb 100644
--- a/doc/ref/posix.texi
+++ b/doc/ref/posix.texi
@@ -2253,7 +2253,7 @@ controlling terminal. The return value is unspecified.
The following procedures are similar to the @code{popen} and
@code{pclose} system routines. The code is in a separate ``popen''
address@hidden module is only available on systems where the
address@hidden feature is provided (@pxref{Common Feature Symbols}).}:
address@hidden feature is provided (@pxref{Common Feature Symbols}).}:
@lisp
(use-modules (ice-9 popen))
diff --git a/libguile/posix.c b/libguile/posix.c
index 15d2e81..3383808 100644
--- a/libguile/posix.c
+++ b/libguile/posix.c
@@ -2340,6 +2340,7 @@ scm_init_posix ()
scm_add_feature ("fork");
#endif /* HAVE_FORK */
#ifdef HAVE_START_CHILD
+ scm_add_feature ("popen");
scm_c_register_extension ("libguile-" SCM_EFFECTIVE_VERSION,
"scm_init_popen",
(scm_t_extension_init_func) scm_init_popen,
- [Guile-commits] 01/27: build: Remove unneeded check for 'unsetenv'., (continued)
- [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, 2016/07/25
- [Guile-commits] 12/27: Add popen feature,
Andy Wingo <=
- [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
- [Guile-commits] 23/27: Use gnulib for basename / dirname, Andy Wingo, 2016/07/25