Changes between Version 1 and Version 2 of ProcessPortsCowan


Ignore:
Timestamp:
07/11/11 19:17:55 (6 years ago)
Author:
cowan
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ProcessPortsCowan

    v1 v2  
    1212`(open-output-process `''filename''`)` 
    1313 
    14 `(call-with-input-process `''filename''` `''proc''`)` 
    1514 
    16 `(call-with-output-process `''filename''` `''proc''`)` 
     15All of these are equivalent to the corresponding R5RS functions on file ports.  If ''filename'' is a string, it is a shell command suitable for passing to `shell-command`.  If it is a list, it is a settings list as described in PortsCowan.  Implementations MUST support the following keys: 
    1716 
    18 `(with-input-from-process `''filename''` `''thunk''`)` 
     17 `path`:: 
    1918 
    20 `(with-output-to-process `''filename''` `''thunk''`)` 
    21  
    22 All of these are equivalent to the corresponding R5RS functions on file ports.  If ''filename'' is a string, it is a shell command suitable for passing to `shell-command`.  If it is a list, it is a settings list as described in PortsCowan.  Implementations MUST support the keys described in PortsCowan (where `path` is the system command to be executed), plus the following additional keys: 
     19 The system command to be executed. 
    2320 
    2421 `arguments`:: 
     
    3229 `stdin-redirection`:: 
    3330 
    34  A string representing the file to open and pass to the new process as its standard input.  If this key is absent, no redirection is done. 
     31 A string representing the file to open and pass to the new process as its standard input, or a port (it is an error if the port has no OS-level underpinnings).  If this key is absent, no redirection is done. 
    3532 
    3633 `stdout-redirection`:: 
    3734 
    38  A string representing the file to open and pass to the new process as its standard output.  If this key is absent, no redirection is done. 
     35 A string representing the file to open and pass to the new process as its standard output, or a port (it is an error if the port has no OS-level underpinnings).  If this key is absent, no redirection is done. 
     36 
     37 `stderr-redirection`:: 
     38 
     39 A string representing the file to open and pass to the new process as its standard error, or a port (it is an error if the port has no OS-level underpinnings).  If this key is absent, no redirection is done. 
    3940 
    4041