Query: rfio_read
OS: debian
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
RFIO_READ(3) Rfio Library Functions RFIO_READ(3)NAMErfio_read - reads in a fileSYNOPSIS#include <sys/types.h> #include "rfio_api.h" int rfio_read (int s, void *ptr, int size);DESCRIPTIONrfio_read reads in the file and store in ptr, a pointer to the memory location in which to place the information, size bytes, using the descriptor s generated by a previous rfio_open.RETURN VALUEThis routine returns -1 if the operation failed or the number of bytes actually read. In case of failure, serrno is set appropriately.ERRORSEBADF s is not a valid descriptor. SENOSHOST Host unknown. SENOSSERV Service unknown. SETIMEDOUT Timed out. SEBADVERSION Version ID mismatch. SECONNDROP Connection closed by remote end. SECOMERR Communication error. SENORCODE Host did not return error number.SEE ALSOrfio_open(3)AUTHORLCG Grid Deployment TeamLCG$Date: 2005/03/31 13:13:03 $ RFIO_READ(3)