Mono.Unix.Native.Syscall.lseek Method
Changes the read/write file offset of a file descriptor.

Syntax

public static long lseek (int fd, long offset, SeekFlags whence)

Parameters

fd
Documentation for this section has not yet been entered.
offset
Documentation for this section has not yet been entered.
whence
Documentation for this section has not yet been entered.

Returns

Documentation for this section has not yet been entered.

Remarks

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.

Requirements

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