Mono Class Library: Mono.Unix.Native.Syscall Overview | Members

Mono.Unix.Native.Syscall.lseek Method

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

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

Parameters

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

Returns

Documentation for this section has not yet been entered. [Edit]

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. [Edit]

Requirements

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