1RFIO_PREAD(3)               Rfio Library Functions               RFIO_PREAD(3)
2
3
4

NAME

6       rfio_pread - reads in a file
7

SYNOPSIS

9       #include <sys/types.h>
10       #include "rfio_api.h"
11
12       int rfio_pread (char *ptr, int size, int items, FILE *fd);
13

DESCRIPTION

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

RETURN VALUE

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

ERRORS

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

SEE ALSO

40       rfio_popen(3)
41

AUTHOR

43       LCG Grid Deployment Team
44
45
46
47LCG                      $Date: 2008/09/24 11:25:01 $            RFIO_PREAD(3)
Impressum