mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-11 22:31:12 +02:00
Added open-pipe* and open-input-output-pipe.
This commit is contained in:
parent
0f3eb62779
commit
7064e449bd
1 changed files with 16 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue