summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/ref/api-options.texi7
-rw-r--r--doc/ref/posix.texi2
-rw-r--r--libguile/posix.c1
3 files changed, 7 insertions, 3 deletions
diff --git a/doc/ref/api-options.texi b/doc/ref/api-options.texi
index 152bf4693..0259b4b21 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,
-@code{primitive-fork}}). This is a prerequisite for the @code{(ice-9
-popen)} module (@pxref{Pipes}).
+@code{primitive-fork}}).
+
+@item 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 118843d79..2799ddb86 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''
module@footnote{This module is only available on systems where the
-@code{fork} feature is provided (@pxref{Common Feature Symbols}).}:
+@code{popen} feature is provided (@pxref{Common Feature Symbols}).}:
@lisp
(use-modules (ice-9 popen))
diff --git a/libguile/posix.c b/libguile/posix.c
index 15d2e816c..33838089e 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,