1RFIO_FSEEK(3)                    Rfio      Library      Functions
2RFIO_FSEEK(3)
3
4
5
6[1mNAME[0m
7       rfio_fseek ‐ positions/repositions a file
8
9[1mSYNOPSIS[0m
10       [1m#include <sys/types.h>[0m
11       [1m#include "rfio_api.h"[0m
12
13       [1mint   rfio_fseek    (FILE    *[4m[22mfp[24m[1m,    long
14[4m[22moffset[24m[1m, int [4m[22mwhence[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       [1mint   rfio_fseeko64  (FILE  *[4m[22mfp[24m[1m,  off64_t
22[4m[22moffset[24m[1m, int [4m[22mwhence[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       [1mint  rfio_fseeko64  (FILE  *[4m[22mfp[24m[1m,   off64_t
29[4m[22moffset[24m[1m, int [4m[22mwhence[24m[1m);[0m
30
31[1mDESCRIPTION[0m
32       [1mrfio_fseek  [22mpositions/repositions  to [4moffset[24m
33the file associated with the
34       descriptor  [4mfp[24m  generated  by  a   previous   [1mr‐
35fio_fopen[22m.  [4mwhence[24m indicates how
36       to interpret the [4moffset[24m value:
37
38              [1mSEEK_SET      [22mThe  offset is set from begin‐
39ning of file.
40
41              [1mSEEK_CUR     [22mThe offset is added to  current
42position.
43
44              [1mSEEK_END      [22mThe offset is added to current
45file size.
46       [1mrfio_fseeko64  [22mcan  be used with  large  files  and
47allows to use a 64 bit
48       offset rather than a long.
49
50[1mRETURN VALUE[0m
51       This routine returns 0 if the operation was successful  or
52‐1  if  the
53       operation failed. In the latter case, [1mserrno [22mis set
54appropriately.
55
56[1mERRORS[0m
57       [1mEBADF        [4m[22mfp[24m is not a valid descriptor.
58
59       [1mEINVAL       [22mincorrect value for [4mwhence[24m.
60
61       [1mSENOSHOST    [22mHost unknown.
62
63       [1mSENOSSERV    [22mService unknown.
64
65       [1mSETIMEDOUT   [22mTimed out.
66
67       [1mSEBADVERSION [22mVersion ID mismatch.
68
69       [1mSEINTERNAL   [22mInternal error.
70
71       [1mSECONNDROP   [22mConnection closed by remote end.
72
73       [1mSECOMERR     [22mCommunication error.
74
75[1mSEE ALSO[0m
76       [1mrfio_fopen(3)[0m
77
78[1mAUTHOR[0m
79       [1mLCG Grid Deployment [22mTeam
80
81
82
83LCG                         $Date:    2005/03/31    13:13:02    $
84RFIO_FSEEK(3)
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
Impressum