1RFIO_PREAD(3) Rfio Library Functions RFIO_PREAD(3)
2
3
4
6 rfio_pread - reads in a file
7
9 #include <sys/types.h>
10 #include "rfio_api.h"
11
12 int rfio_pread (char *ptr, int size, int items, FILE *fd);
13
15 rfio_pread reads items times size bytes, using the descriptor fd gener‐
16 ated by a previous rfio_popen and strore them at location ptr.
17
19 This routine returns -1 if the operation failed or the number of items
20 actually read. In case of failure, serrno is set appropriately.
21
23 EBADF fd is a NULL pointer.
24
25 SENOSHOST Host unknown.
26
27 SENOSSERV Service unknown.
28
29 SETIMEDOUT Timed out.
30
31 SEBADVERSION Version ID mismatch.
32
33 SECONNDROP Connection closed by remote end.
34
35 SECOMERR Communication error.
36
37 SENORCODE Host did not return error number.
38
40 rfio_popen(3)
41
43 LCG Grid Deployment Team
44
45
46
47LCG $Date: 2008/09/24 11:25:01 $ RFIO_PREAD(3)