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

NAME

6       rfio_ftell - tells the position in a stream
7

SYNOPSIS

9       #include <sys/types.h>
10       #include "rfio_api.h"
11
12       long rfio_ftell (FILE *fp);
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_ftello64 (FILE *fp);
20
21       For large files, under other systems:
22       #include <sys/types.h>
23       #include "rfio_api.h"
24
25       off64_t rfio_ftello64 (FILE *fp);
26

DESCRIPTION

28       rfio_ftell  returns  the current position in the file stream pointed by
29       fp.
30

RETURN VALUE

32       This routine returns the position if the operation was successful or -1
33       if  the  operation  failed. In the latter case, serrno is set appropriā€
34       ately.
35

ERRORS

37       EBADF        fp is not a valid descriptor.
38
39       SENOSHOST    Host unknown.
40
41       SENOSSERV    Service unknown.
42
43       SETIMEDOUT   Timed out.
44
45       SEBADVERSION Version ID mismatch.
46
47       SEINTERNAL   Internal error.
48
49       SECONNDROP   Connection closed by remote end.
50
51       SECOMERR     Communication error.
52

SEE ALSO

54       rfio_fopen(3)
55

AUTHOR

57       LCG Grid Deployment Team
58
59
60
61
62LCG                      $Date: 2005/03/31 13:13:02 $            RFIO_FTELL(3)
Impressum