[Previous]
[Contents]
[Next]

dev_readex()

read exception data

Synopsis:

#include <sys/dev.h>
int dev_readex( int fd, char *buf, 
                int nbytes );

Description:

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).

Returns:

The number of bytes read. If an error occurs, dev_readex() returns -1, and errno is set to indicate the error.

Errors:

ENOSYS
This function isn't supported.

Classification:

QNX

Safety:
Interrupt handler No
Signal handler Yes, but modifies errno
Thread Yes

See also:

dev_arm(), select()


[Previous]
[Contents]
[Next]