HP OpenVMS Systems

ask the wizard
Content starts here

Timeout on terminal read I/O? (C, $qio)

» close window

The Question is:

Is it possible to perform a terminal device read with a timeout without
resorting to a QIO system call from DEC C.
Ideally I would like to use to Unix like read () function. The reason is to
keep my code as portable as possible.

The Answer is :

  Without details of the particular UNIX-like read function(s)
  desired, this question is rather difficult to answer -- that
  said, the I/O interfaces do tend to be rather platform-specific.
  This is possible via sys$qio.  There may be other approaches,
  depending on the particular C function(s) required.

answer written or last revised on ( 17-FEB-2000 )

» close window