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

NAME

6       rfio_read - reads in a file
7

SYNOPSIS

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

DESCRIPTION

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

RETURN VALUE

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

ERRORS

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

SEE ALSO

41       rfio_open(3)
42

AUTHOR

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