rfio_lseek man page

RFIO_LSEEK(3) Rfio Library Functions RFIO_LSEEK(3)

rfio_lseek - positions/repositions a file

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

[1moff_t rfio_lseek (int [4m[22ms[24m[1m, off_t [4m[22moffset[24m[1m, int [4m[22mhow[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

[1moff64_t rfio_lseek64 (int [4m[22ms[24m[1m, off64_t [4m[22moffset[24m[1m, int [4m[22mhow[24m[1m);[0m

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

[1moff64_t rfio_lseek64 (int [4m[22ms[24m[1m, off64_t [4m[22moffset[24m[1m, int [4m[22mhow[24m[1m);[0m

[1mrfio_lseek [22mpositions/repositions to [4moffset[24m the file associated with the
descriptor [4ms[24m generated by a previous [1mrfio_open[22m. [4mhow[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_lseek64 [22mperforms the same function on large files using off64_t
rather than off_t.

This routine returns -1 if the operation failed or the actual offset
from the beginning of file. In case of failure, [1mserrno [22mis set appropri-

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

[1mEINVAL [22mincorrect value for [4mhow[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:03 $ RFIO_LSEEK(3)

Referenced By

rfio_lseek64(3) is an alias of rfio_lseek(3).