Performs a low-overhead read operation
#include <nwfileio.h> int qread ( int fildes, void *buffer, LONG len, LONG position);
(IN) Specifies the pertinent file handle.
(OUT) Points to a buffer where the data is to be received.
(IN) Specifies the number of bytes to read.
(IN) Specifies the byte offset in the file at which to start reading.
If successful, this function returns the number of bytes read. If an error occurs, it returns -1 (EFAILURE) and errno and/or NWErrno can be set to:
The qread function does not:
Perform parameter/context validation.
Maintain file position.
This function does not support:
Standard I/O
Semaphore use of the handle
Streams
BSD Sockets