| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Port? is not listed in the
R5RS standard procedures, but mentioned in the "Disjointness of Types"
section.
file,
string or proc.
(port-type port)
returns file), these procedures gets and sets the port's
buffering mode. For input ports, the port buffering mode may be
either one of :full, :modest or :none.
For output ports, port-buffering, it may be
one of :full, :line or :none.
See section 6.18.3 File ports, for explanation of those modes.
If port-buffering is applied to ports other than file ports,
it returns #f. If the setter of port-buffering is
applied to ports other than file ports, it signals an error.
#f otherwise.
The keyword argument unit may be zero, a positive exact integer,
a symbol byte or a symbol char, to specify the unit
of copying. If it is an integer, a buffer of the size
(in case of zero, a system default size) is used to copy,
using block I/O. Generally it is the fastest if you copy
between normal files. If unit is a symbol byte,
the copying is done byte by byte, using C-verson of read-byte
and write-byte. If unit is a symbol char,
the copying is done character by character, using C-version of
read-char and write-char.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |