rfio_ftell3
Tells the position in a stream
Usage
#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);
Overview
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. |
Releases
Unchanged in 5 releases since Debian 6.0 (Squeeze).