Mono Class Library: Mono.Posix.Syscall Overview | Members

Mono.Posix.Syscall.lseek Method

Changes the read/write file offset of a file descriptor. [Edit]

public static int lseek (int fileDescriptor, int offset, int whence)

See Also

Mono.Unix.Native.Syscall.lseek

Parameters

fileDescriptor
a int [Edit]
offset
a int [Edit]
whence
a int [Edit]

Returns

a int [Edit]

Remarks

This member is obsolete. Please use Mono.Unix.Native.Syscall.lseek instead.

The offset parameter is interpreted according to the possible following values of whence:

ValueDescription
SEEK_SETthe new file offset will be the current offset plus offset.
SEEK_CURthe new file offset will be offset.
SEEK_ENDthe new file offset will be the end of the file plus offset.
If we seek past the end of a file, the new file region contains 0. [Edit]

Requirements

Namespace: Mono.Posix
Assembly: Mono.Posix (in Mono.Posix.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0