1 // Licensed to the .NET Foundation under one or more agreements. 2 // The .NET Foundation licenses this file to you under the MIT license. 3 // See the LICENSE file in the project root for more information. 4 5 using System.Runtime.InteropServices; 6 using Microsoft.Win32.SafeHandles; 7 8 internal static partial class Interop 9 { 10 internal static partial class Sys 11 { 12 internal enum SeekWhence 13 { 14 SEEK_SET = 0, 15 SEEK_CUR = 1, 16 SEEK_END = 2 17 } 18 19 [DllImport(Libraries.SystemNative, EntryPoint = "SystemNative_LSeek", SetLastError = true)] LSeek(SafeFileHandle fd, long offset, SeekWhence whence)20 internal static extern long LSeek(SafeFileHandle fd, long offset, SeekWhence whence); 21 } 22 } 23