SerStatus
SerStatus Determine status of specified input or output driver
#include <Serial.h> Serial Drivers
OSErr SerStatus( refNum, serSta );
short refNum ; input or output driver reference number
SerStaRec *serSta ; data structure with driver status information
returns Error Code; 0=no error
SerStatus gets three bytes of status information from the SerStaRec data
structure for the specified input or output driver.
refNum is the parameter that identifies the input or output driver for which
status information is being obtained.
serSta is three bytes of such status information as cumulative errors, XOff
flow control, and signals for pending reads and writes.
Returns: an operating system Error Code.
noErr (0) No error

Notes: This call is equivalent to a Device Manager Status call with csCode=8
and with SerSta returned through csParam+5 in csParam.