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

NAME

6       rfio_fread - reads in a file
7

SYNOPSIS

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

DESCRIPTION

15       rfio_fread reads items times size bytes, using the descriptor fd gener‐
16       ated by a previous rfio_fopen 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_fopen(3)
41

AUTHOR

43       LCG Grid Deployment Team
44
45
46
47LCG                      $Date: 2005/03/31 13:13:02 $            RFIO_FREAD(3)
Impressum