diff --git a/doc/ref/posix.texi b/doc/ref/posix.texi index a44544aab..16c161257 100644 --- a/doc/ref/posix.texi +++ b/doc/ref/posix.texi @@ -1838,10 +1838,18 @@ module: @findex popen @deffn {Scheme Procedure} open-pipe command modes -Executes the shell command @var{command} (a string) in a subprocess. -A pipe to the process is created and returned. @var{modes} specifies -whether an input or output pipe to the process is created: it should -be the value of @code{OPEN_READ} or @code{OPEN_WRITE}. +Executes the shell command @var{command} (a string) in a subprocess. A +pipe to the process is created and returned. @var{modes} specifies +whether an input or output pipe to the process is created: it should be +the value of @code{OPEN_READ}, @code{OPEN_WRITE}, or @code{OPEN_BOTH}. +@end deffn + +@deffn {Scheme Procedure} open-pipe* mode command [args...] +Executes the program @var{command} with optional arguments @var{args} +(all strings) in a subprocess. A port to the process (based on pipes) +is created and returned. @var{modes} specifies whether an input, an +output or an input-output port to the process is created: it should be +the value of @code{OPEN_READ}, @code{OPEN_WRITE}, or @code{OPEN_BOTH}. @end deffn @deffn {Scheme Procedure} open-input-pipe command @@ -1860,6 +1868,10 @@ Equivalent to @code{open-pipe} with mode @code{OPEN_READ}. Equivalent to @code{open-pipe} with mode @code{OPEN_WRITE}. @end deffn +@deffn {Scheme Procedure} open-input-output-pipe command +Equivalent to @code{open-pipe} with mode @code{OPEN_BOTH}. +@end deffn + @findex pclose @deffn {Scheme Procedure} close-pipe port Closes the pipe created by @code{open-pipe}, then waits for the process