read exception data
#include <sys/dev.h> int dev_readex( int fd, char *buf, int nbytes );
This function gets any exception (or out-of-bound) data associated with the device. You'd normally call this function when one of the following occurs:
Exception data is used by pseudo-devices (ptys).
The number of bytes read. If an error occurs, dev_readex() returns -1, and errno is set to indicate the error.
QNX
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | Yes, but modifies errno |
Thread | Yes |