---
name: "rfio_ftello64"
section: "3"
platform: "linux"
package: "libdpm-dev"
version: "1.10.0-2+b3"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/rfio_ftello64"
---

# rfio\_ftello64(3)

tells the position in a stream

## NAME

rfio\_ftell - tells the position in a stream

## SYNOPSIS

**#include \<sys/types.h\>**\
 **#include "rfio\_api.h"**

**long rfio\_ftell (FILE \****fp***);**

Under Linux, for large files:\
 **#define \_LARGEFILE64\_SOURCE**\
 **#include \<sys/types.h\>**\
 **#include "rfio\_api.h"**

**off64\_t rfio\_ftello64 (FILE \****fp***);**\

For large files, under other systems:\
 **#include \<sys/types.h\>**\
 **#include "rfio\_api.h"**

**off64\_t rfio\_ftello64 (FILE \****fp***);**

## DESCRIPTION

**rfio\_ftell** returns the current position in the file stream pointed by  *fp*.

## RETURN VALUE

This routine returns the position if the operation was successful or -1 if the operation failed. In the latter case, **serrno** is set appropriately.

## ERRORS

- **EBADF**

  *fp* is not a valid descriptor.

- **SENOSHOST**

  Host unknown.

- **SENOSSERV**

  Service unknown.

- **SETIMEDOUT**

  Timed out.

- **SEBADVERSION**

  Version ID mismatch.

- **SEINTERNAL**

  Internal error.

- **SECONNDROP**

  Connection closed by remote end.

- **SECOMERR**

  Communication error.

## SEE ALSO

**[rfio\_fopen(3)](/rfio_fopen/3.md)**

## AUTHOR

**LCG Grid Deployment** Team
