1RFIO_FOPEN(3)                    Rfio      Library      Functions
2RFIO_FOPEN(3)
3
4
5
6[1mNAME[0m
7       rfio_fopen ‐ opens a file
8
9[1mSYNOPSIS[0m
10       [1m#include <sys/types.h>[0m
11       [1m#include "rfio_api.h"[0m
12
13       [1mFILE  *rfio_fopen   (char   *[4m[22mpath[24m[1m,   char
14*[4m[22mmode[24m[1m);[0m
15
16       Under Linux, for large files:
17       [1m#define _LARGEFILE64_SOURCE[0m
18       [1m#include <sys/types.h>[0m
19       [1m#include "rfio_api.h"[0m
20
21       [1mFILE   *rfio_fopen64  (char  *[4m[22mpath[24m[1m,  char
22[4m[22m*mode[24m[1m);[0m
23
24       For large files, under other systems:
25       [1m#include <sys/types.h>[0m
26       [1m#include "rfio_api.h"[0m
27
28       [1mFILE  *rfio_fopen64  (char  *[4m[22mpath[24m[1m,   char
29[4m[22m*mode[24m[1m);[0m
30
31[1mDESCRIPTION[0m
32       [1mrfio_fopen  [22mopens the file whose name is the string
33pointed to by [1mpath [22m,
34       a character string containing  the   filename   specifica‐
35tion,  and  asso‐
36       ciates a FILE stream with it.
37
38       [1mmode  [22mis an access mode indicator. One of the char‐
39acters "r" or "w".
40
41       [1mrfio_fopen64  [22mallows  to  open  large  files   (see
42NOTES).
43
44[1mRETURN VALUE[0m
45       This  routine  returns  NULL  if the operation failed or a
46non‐NULL pointer
47       to a FILE structure if the operation was successful. If it
48fails,  [1mser‐[0m
49       [1mrno [22mvariable is set appropriately.
50
51[1mERRORS[0m
52       [1mENOENT        [22mThe named file/directory does not ex‐
53ist or is a null path‐
54                    name.
55
56       [1mEACCES       [22mSearch permission is denied on a  com‐
57ponent  of  the  [4mpath[0m
58                    prefix.
59
60       [1mEFAULT       [22mpath is NULL
61
62       [1mENOTDIR       [22mA  component of [4mpath[24m prefix is
63not a directory.
64
65       [1mEINVAL       [22mThe mode provided to local open is in‐
66valid (see [1mfopen[22m(3))
67
68       [1mEMFILE       [22mToo many open files
69
70       [1mECONNRESET   [22mConnection reset by peer
71
72       [1mETIMEDOUT    [22mConnection timed out
73
74       [1mECONNREFUSED [22mConnection refused
75
76       [1mEHOSTUNREACH [22mNo route to host
77
78       [1mSENOSHOST    [22mHost unknown.
79
80       [1mSENOSSERV    [22mService unknown.
81
82       [1mSEBADVERSION [22mVersion ID mismatch
83
84       [1mSECOMERR     [22mCommunication error.
85
86       [1mSERTYEXHAUST [22mRetry count exhausted
87
88       [1mSENORCODE    [22mHost did not return error number
89
90       [1mSEHOSTREFUSED[0m
91                    Host  is  not on local network and no mapping
92found
93
94[1mNOTES[0m
95       On  Irix, Tru64 and IA64 the 64 bit mode  is  the  default
96one, rfio_fopen
97       and rfio_fopen64 are identical.
98
99[1mSEE ALSO[0m
100       [1mfopen(3)[22m,    [1mrfio_serror(3)[22m,    [1mrfio_per‐
101ror(3)[22m, [1mserrno(3)[0m
102
103[1mAUTHOR[0m
104       [1mLCG Grid Deployment [22mTeam
105
106
107
108LCG                         $Date:    2005/03/31    13:13:02    $
109RFIO_FOPEN(3)
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
Impressum