mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-13 07:10:20 +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
|
@findex popen
|
||||||
@deffn {Scheme Procedure} open-pipe command modes
|
@deffn {Scheme Procedure} open-pipe command modes
|
||||||
Executes the shell command @var{command} (a string) in a subprocess.
|
Executes the shell command @var{command} (a string) in a subprocess. A
|
||||||
A pipe to the process is created and returned. @var{modes} specifies
|
pipe to the process is created and returned. @var{modes} specifies
|
||||||
whether an input or output pipe to the process is created: it should
|
whether an input or output pipe to the process is created: it should be
|
||||||
be the value of @code{OPEN_READ} or @code{OPEN_WRITE}.
|
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
|
@end deffn
|
||||||
|
|
||||||
@deffn {Scheme Procedure} open-input-pipe command
|
@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}.
|
Equivalent to @code{open-pipe} with mode @code{OPEN_WRITE}.
|
||||||
@end deffn
|
@end deffn
|
||||||
|
|
||||||
|
@deffn {Scheme Procedure} open-input-output-pipe command
|
||||||
|
Equivalent to @code{open-pipe} with mode @code{OPEN_BOTH}.
|
||||||
|
@end deffn
|
||||||
|
|
||||||
@findex pclose
|
@findex pclose
|
||||||
@deffn {Scheme Procedure} close-pipe port
|
@deffn {Scheme Procedure} close-pipe port
|
||||||
Closes the pipe created by @code{open-pipe}, then waits for the process
|
Closes the pipe created by @code{open-pipe}, then waits for the process
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue