Made FD/PORT FDES/PORT PORT/FD PORT/FDES parameter names consistently FD/PORT.

This commit is contained in:
shivers 1996-11-11 19:38:18 +00:00
parent 2f7c39be3f
commit 1cdcaaee53
1 changed files with 24 additions and 16 deletions

View File

@ -115,7 +115,7 @@ run/file*, that take thunk arguments for the subprocess.
(with-current-output-port* port thunk) -> value(s) of thunk (with-current-output-port* port thunk) -> value(s) of thunk
(with-error-output-port* port thunk) -> value(s) of thunk (with-error-output-port* port thunk) -> value(s) of thunk
(close port/fd) (close fd/port)
(stdports->stdio) (stdports->stdio)
(stdio->stdports) (stdio->stdports)
@ -141,10 +141,10 @@ run/file*, that take thunk arguments for the subprocess.
** Unix I/O ** Unix I/O
(dup port/fd [newfd]) -> port/fd (dup fd/port [newfd]) -> fd/port
(dup->inport port/fd [newfd]) -> port (dup->inport fd/port [newfd]) -> port
(dup->outport port/fd [newfd]) -> port (dup->outport fd/port [newfd]) -> port
(dup->fdes port/fd [newfd]) -> fd (dup->fdes fd/port [newfd]) -> fd
(file-seek fd/port offset whence) (file-seek fd/port offset whence)
@ -153,16 +153,24 @@ run/file*, that take thunk arguments for the subprocess.
(open-output-file fname [flags perms]) -> port (open-output-file fname [flags perms]) -> port
(open-fdes fname flags [perms]) -> integer (open-fdes fname flags [perms]) -> integer
Open flags: (fdes-flags fd/port)
open/read ; You may only (set-fdes-flags fd/port flags)
open/write ; choose one Only Posix flag defined is FDFLAGS/CLOSE-ON-EXEC, which you should
open/read+write ; of these three not ever have to use -- scsh manages this automatically.
open/no-control-tty
open/nonblocking (fdes-status fd/port)
open/append (set-fdes-flags fd/port flags)
open/create
open/truncate Operations allowed Flags
open/exclusive ------------------ -----
Open+get+set open/append, open/non-blocking
open/async, open/fsync (non-Posix)
Open+get open/read, open/write, open/read+write
open/access-mask
Open only open/create, open/exclusive,
open/no-control-tty, open/truncate
(pipe) -> [rport wport] (pipe) -> [rport wport]
(read-line [fd/port retain-newline?]) -> string or eof-object (read-line [fd/port retain-newline?]) -> string or eof-object
@ -706,7 +714,7 @@ scsh [meta-arg] [switch1 ...] [end-option arg1 ...]
-ds Do script. -ds Do script.
end-option: -s <script> Specifies script to load. end-option: -s <script> Specifies script to load.
-s<num> Script from file descriptor <num>. -sfd <num> Script from file descriptor <num>.
-c <expression> Eval <expression> and exit. -c <expression> Eval <expression> and exit.
-- --