rfio_fseek man page

RFIO_FSEEK(3) Rfio Library Functions RFIO_FSEEK(3)

rfio_fseek - positions/repositions a file

[1m#include <sys/types.h>[0m
[1m#include "rfio_api.h"[0m

[1mint rfio_fseek (FILE *[4m[22mfp[24m[1m, long [4m[22moffset[24m[1m, int [4m[22mwhence[24m[1m);[0m

Under Linux, for large files:
[1m#define _LARGEFILE64_SOURCE[0m
[1m#include <sys/types.h>[0m
[1m#include "rfio_api.h"[0m

[1mint rfio_fseeko64 (FILE *[4m[22mfp[24m[1m, off64_t [4m[22moffset[24m[1m, int [4m[22mwhence[24m[1m);[0m

For large files, under other systems:
[1m#include <sys/types.h>[0m
[1m#include "rfio_api.h"[0m

[1mint rfio_fseeko64 (FILE *[4m[22mfp[24m[1m, off64_t [4m[22moffset[24m[1m, int [4m[22mwhence[24m[1m);[0m

[1mrfio_fseek [22mpositions/repositions to [4moffset[24m the file associated with the
descriptor [4mfp[24m generated by a previous [1mrfio_fopen[22m. [4mwhence[24m indicates how
to interpret the [4moffset[24m value:

[1mSEEK_SET [22mThe offset is set from beginning of file.

[1mSEEK_CUR [22mThe offset is added to current position.

[1mSEEK_END [22mThe offset is added to current file size.
[1mrfio_fseeko64 [22mcan be used with large files and allows to use a 64 bit
offset rather than a long.

This routine returns 0 if the operation was successful or -1 if the
operation failed. In the latter case, [1mserrno [22mis set appropriately.

[1mEBADF [4m[22mfp[24m is not a valid descriptor.

[1mEINVAL [22mincorrect value for [4mwhence[24m.

[1mSENOSHOST [22mHost unknown.

[1mSENOSSERV [22mService unknown.

[1mSETIMEDOUT [22mTimed out.

[1mSEBADVERSION [22mVersion ID mismatch.

[1mSEINTERNAL [22mInternal error.

[1mSECONNDROP [22mConnection closed by remote end.

[1mSECOMERR [22mCommunication error.

[1mSEE ALSO[0m

[1mLCG Grid Deployment [22mTeam

LCG $Date: 2005/03/31 13:13:02 $ RFIO_FSEEK(3)

Referenced By

rfio_fseeko64(3) is an alias of rfio_fseek(3).