7 references to SeekWhence
System.Private.CoreLib (7)
_generated\2\LibraryImports.g.cs (2)
3425
internal static partial long LSeek(global::Microsoft.Win32.SafeHandles.SafeFileHandle fd, long offset, global::Interop.Sys.
SeekWhence
whence)
3456
static extern unsafe long __PInvoke(nint __fd_native, long __offset_native, global::Interop.Sys.
SeekWhence
__whence_native);
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.LSeek.cs (1)
19
internal static partial long LSeek(SafeFileHandle fd, long offset,
SeekWhence
whence);
src\runtime\src\libraries\System.Private.CoreLib\src\Microsoft\Win32\SafeHandles\SafeFileHandle.Unix.cs (2)
398
Debug.Assert(status.Size == 0 || Interop.Sys.LSeek(this, 0, Interop.Sys.
SeekWhence
.SEEK_CUR) >= 0);
545
private bool GetCanSeekCore() => Interop.Sys.LSeek(this, 0, Interop.Sys.
SeekWhence
.SEEK_CUR) >= 0;
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Strategies\FileStreamHelpers.Unix.cs (1)
34
CheckFileCall(Interop.Sys.LSeek(handle, offset, (Interop.Sys.
SeekWhence
)(int)origin), handle.Path); // SeekOrigin values are the same as Interop.libc.SeekWhence values
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Strategies\UnixFileStreamStrategy.cs (1)
30
long result = Interop.Sys.LSeek(_fileHandle, _filePosition, Interop.Sys.
SeekWhence
.SEEK_SET);