1RFIO_LSEEK(3)                    Rfio      Library      Functions
2RFIO_LSEEK(3)
3
4
5
6[1mNAME[0m
7       rfio_lseek ‐ positions/repositions a file
8
9[1mSYNOPSIS[0m
10       [1m#include <sys/types.h>[0m
11       [1m#include "rfio_api.h"[0m
12
13       [1moff_t   rfio_lseek    (int    [4m[22ms[24m[1m,    off_t
14[4m[22moffset[24m[1m, int [4m[22mhow[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       [1moff64_t   rfio_lseek64  (int  [4m[22ms[24m[1m,  off64_t
22[4m[22moffset[24m[1m, int [4m[22mhow[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       [1moff64_t  rfio_lseek64  (int  [4m[22ms[24m[1m,   off64_t
29[4m[22moffset[24m[1m, int [4m[22mhow[24m[1m);[0m
30
31[1mDESCRIPTION[0m
32       [1mrfio_lseek  [22mpositions/repositions  to [4moffset[24m
33the file associated with the
34       descriptor  [4ms[24m  generated  by   a   previous   [1mr‐
35fio_open[22m.  [4mhow[24m indicates  how  to
36       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
47       [1mrfio_lseek64  [22mperforms  the  same function on large
48files using off64_t
49       rather than off_t.
50
51[1mRETURN VALUE[0m
52       This  routine  returns  ‐1 if the operation failed or  the
53actual  offset
54       from the beginning of file. In case of failure,  [1mserrno
55[22mis set appropri‐
56       ately.
57
58[1mERRORS[0m
59       [1mEBADF        [4m[22ms[24m is not a valid descriptor.
60
61       [1mEINVAL       [22mincorrect value for [4mhow[24m.
62
63       [1mSENOSHOST    [22mHost unknown.
64
65       [1mSENOSSERV    [22mService unknown.
66
67       [1mSETIMEDOUT   [22mTimed out.
68
69       [1mSEBADVERSION [22mVersion ID mismatch.
70
71       [1mSEINTERNAL   [22mInternal error.
72
73       [1mSECONNDROP   [22mConnection closed by remote end.
74
75       [1mSECOMERR     [22mCommunication error.
76
77[1mSEE ALSO[0m
78       [1mrfio_open(3)[0m
79
80[1mAUTHOR[0m
81       [1mLCG Grid Deployment [22mTeam
82
83
84
85LCG                         $Date:    2005/03/31    13:13:03    $
86RFIO_LSEEK(3)
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