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

NAME

6       rfio_fopen - opens a file
7

SYNOPSIS

9       #include <sys/types.h>
10       #include "rfio_api.h"
11
12       FILE *rfio_fopen (char *path, char *mode);
13
14       Under Linux, for large files:
15       #define _LARGEFILE64_SOURCE
16       #include <sys/types.h>
17       #include "rfio_api.h"
18
19       FILE *rfio_fopen64 (char *path, char *mode);
20
21       For large files, under other systems:
22       #include <sys/types.h>
23       #include "rfio_api.h"
24
25       FILE *rfio_fopen64 (char *path, char *mode);
26

DESCRIPTION

28       rfio_fopen opens the file whose name is the string pointed to by path ,
29       a character string containing the  filename  specification,  and  asso‐
30       ciates a FILE stream with it.
31
32       mode is an access mode indicator. One of the characters "r" or "w".
33
34       rfio_fopen64 allows to open large files (see NOTES).
35

RETURN VALUE

37       This routine returns NULL if the operation failed or a non-NULL pointer
38       to a FILE structure if the operation was successful. If it fails,  ser‐
39       rno variable is set appropriately.
40

ERRORS

42       ENOENT       The named file/directory does not exist or is a null path‐
43                    name.
44
45       EACCES       Search permission is denied on a  component  of  the  path
46                    prefix.
47
48       EFAULT       path is NULL
49
50       ENOTDIR      A component of path prefix is not a directory.
51
52       EINVAL       The mode provided to local open is invalid (see fopen(3))
53
54       EMFILE       Too many open files
55
56       ECONNRESET   Connection reset by peer
57
58       ETIMEDOUT    Connection timed out
59
60       ECONNREFUSED Connection refused
61
62       EHOSTUNREACH No route to host
63
64       SENOSHOST    Host unknown.
65
66       SENOSSERV    Service unknown.
67
68       SEBADVERSION Version ID mismatch
69
70       SECOMERR     Communication error.
71
72       SERTYEXHAUST Retry count exhausted
73
74       SENORCODE    Host did not return error number
75
76       SEHOSTREFUSED
77                    Host is not on local network and no mapping found
78

NOTES

80       On  Irix, Tru64 and IA64 the 64 bit mode is the default one, rfio_fopen
81       and rfio_fopen64 are identical.
82

SEE ALSO

84       fopen(3), rfio_serror(3), rfio_perror(3), serrno(3)
85

AUTHOR

87       LCG Grid Deployment Team
88
89
90
91LCG                      $Date: 2005/03/31 13:13:02 $            RFIO_FOPEN(3)
Impressum