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

NAME

6       rfio_lseek - positions/repositions a file
7

SYNOPSIS

9       #include <sys/types.h>
10       #include "rfio_api.h"
11
12       off_t rfio_lseek (int s, off_t offset, int how);
13
14       Under Linux, for large files:
15       #define _LARGEFILE64_SOURCE
16       #include <sys/types.h>
17       #include "rfio_api.h"
18
19       off64_t rfio_lseek64 (int s, off64_t offset, int how);
20
21       For large files, under other systems:
22       #include <sys/types.h>
23       #include "rfio_api.h"
24
25       off64_t rfio_lseek64 (int s, off64_t offset, int how);
26

DESCRIPTION

28       rfio_lseek positions/repositions to offset the file associated with the
29       descriptor s generated by a previous rfio_open.  how indicates  how  to
30       interpret the offset value:
31
32              SEEK_SET     The offset is set from beginning of file.
33
34              SEEK_CUR     The offset is added to current position.
35
36              SEEK_END     The offset is added to current file size.
37
38       rfio_lseek64  performs  the  same function on large files using off64_t
39       rather than off_t.
40

RETURN VALUE

42       This routine returns -1 if the operation failed or  the  actual  offset
43       from the beginning of file. In case of failure, serrno is set appropriā€
44       ately.
45

ERRORS

47       EBADF        s is not a valid descriptor.
48
49       EINVAL       incorrect value for how.
50
51       SENOSHOST    Host unknown.
52
53       SENOSSERV    Service unknown.
54
55       SETIMEDOUT   Timed out.
56
57       SEBADVERSION Version ID mismatch.
58
59       SEINTERNAL   Internal error.
60
61       SECONNDROP   Connection closed by remote end.
62
63       SECOMERR     Communication error.
64

SEE ALSO

66       rfio_open(3)
67

AUTHOR

69       LCG Grid Deployment Team
70
71
72
73LCG                      $Date: 2005/03/31 13:13:03 $            RFIO_LSEEK(3)
Impressum