QU_stream_param()
user-redefinable#include <quintus/quintus.h> void QU_stream_param(filename, mode, format, option) char *filename; int mode; unsigned char format; QP_stream *option;
Embedding function, which sets up default values of user-accessible fields in a Prolog stream structure.
""
. If the
filename is /dev/tty
, the caller requests QU_stream_param()
to
set the field values as a tty stream.
QP_READ
for an input stream.
QP_WRITE
for an output stream.
QP_APPEND
for an output stream opened in append mode.
QP_DELIM_LF
QP_VAR_LEN
QP_DELIM_TTY
QP_FMT_UNKNOWN
QP_stream
structure whose fields are to be
set up.
The format is used in assisting QU_stream_param()
to determine
the best values for the other member fields of the QP_stream
structure.
All of the fields listed below of the QP_stream
structure,
described in fli-ios-sst, are set
by QU_stream_param()
. Under UNIX, they are given the indicated values:
filename
QU_stream_param()
mode
QU_stream_param()
format
QU_stream_param()
max_reclen
line_border
QP_LF
file_border
QP_EOF
peof_act
QP_PASTEOF_ERROR
prompt
trim
seek_type
QP_SEEK_PREVIOUS
for a file, QP_SEEK_ERROR
for a tty
flush_type
QP_FLUSH_FLUSH
overflow
QP_OV_FLUSH
errno
magic
read
bad_read
-- a function that returns QP_ERROR
write
bad_write
-- a function that returns QP_ERROR
flush
bad_flush
-- a function that returns QP_ERROR
seek
bad_seek
-- a function that returns QP_ERROR
close
bad_close
-- a function that returns QP_ERROR