1RFIO_READ(3) Rfio Library Functions RFIO_READ(3)
2
3
4
6 rfio_read - reads in a file
7
9 #include <sys/types.h>
10 #include "rfio_api.h"
11
12 int rfio_read (int s, void *ptr, int size);
13
15 rfio_read reads in the file and store in ptr, a pointer to the memory
16 location in which to place the information, size bytes, using the
17 descriptor s generated by a previous rfio_open.
18
20 This routine returns -1 if the operation failed or the number of bytes
21 actually read. In case of failure, serrno is set appropriately.
22
24 EBADF s is not a valid descriptor.
25
26 SENOSHOST Host unknown.
27
28 SENOSSERV Service unknown.
29
30 SETIMEDOUT Timed out.
31
32 SEBADVERSION Version ID mismatch.
33
34 SECONNDROP Connection closed by remote end.
35
36 SECOMERR Communication error.
37
38 SENORCODE Host did not return error number.
39
41 rfio_open(3)
42
44 LCG Grid Deployment Team
45
46
47
48LCG $Date: 2005/03/31 13:13:03 $ RFIO_READ(3)