Next: Channels, Previous: Programmatic ports, Up: I/O system
All of these but port-status-options are exported by the
i/o-internal structure; the port-status-options
enumeration is exported by the architecture structure, but it
deserves mention in this section.
(define-enumeration port-status-options (input output open-for-input open-for-output))Enumeration of indices into a port's
statusfield bit set.
These return true values if port is both an input or output port, respectively, and open.
The bitwise masks of enumerands from the
port-status-optionsenumeration signifying an open input or output port, respectively.
These set the status of port, which must be an input or output port, respectively, to indicate that it is closed.
Returns the EOF object token. This is the only value that will answer true to R5RS's
eof-object?predicate.
This forces port's output if it is an open output port, and does not block.
Periodically-force-output!registers port to be forced periodically. Only a weak reference to port in this registry is held, however, so this cannot cause accidental space leaks.Periodically-flushed-portsreturns a list of all ports in this registry. Note that the returned list holds strong references to all of its elements.Periodically-flushed-portsdoes not permit thread context switches, or interrupts of any sort, while it runs.