100 references to Interop
System.Console (100)
LibraryImports.g.cs (33)
79private static partial int PathConf(string path, global::Interop.Sys.PathConfName name) 108static extern unsafe int __PInvoke(byte* __path_native, global::Interop.Sys.PathConfName __name_native); 117internal static partial int FStat(global::System.Runtime.InteropServices.SafeHandle fd, out global::Interop.Sys.FileStatus output) 130fixed (global::Interop.Sys.FileStatus* __output_native = &output) 149static extern unsafe int __PInvoke(nint __fd_native, global::Interop.Sys.FileStatus* __output_native); 158internal static partial int Stat(string path, out global::Interop.Sys.FileStatus output) 171fixed (global::Interop.Sys.FileStatus* __output_native = &output) 190static extern unsafe int __PInvoke(byte* __path_native, global::Interop.Sys.FileStatus* __output_native); 199internal static partial int LStat(string path, out global::Interop.Sys.FileStatus output) 212fixed (global::Interop.Sys.FileStatus* __output_native = &output) 231static extern unsafe int __PInvoke(byte* __path_native, global::Interop.Sys.FileStatus* __output_native); 610internal static partial nuint ZSTD_decompressStream(global::Microsoft.Win32.SafeHandles.SafeZstdDecompressHandle dctx, ref global::Interop.Zstd.ZstdOutBuffer output, ref global::Interop.Zstd.ZstdInBuffer input) 621fixed (global::Interop.Zstd.ZstdInBuffer* __input_native = &input) 622fixed (global::Interop.Zstd.ZstdOutBuffer* __output_native = &output) 638static extern unsafe nuint __PInvoke(nint __dctx_native, global::Interop.Zstd.ZstdOutBuffer* __output_native, global::Interop.Zstd.ZstdInBuffer* __input_native); 647internal static partial nuint ZSTD_DCtx_setParameter(global::Microsoft.Win32.SafeHandles.SafeZstdDecompressHandle dctx, global::Interop.Zstd.ZstdDParameter param, int value) 672static extern unsafe nuint __PInvoke(nint __dctx_native, global::Interop.Zstd.ZstdDParameter __param_native, int __value_native); 715internal static partial nuint ZSTD_DCtx_reset(global::Microsoft.Win32.SafeHandles.SafeZstdDecompressHandle dctx, global::Interop.Zstd.ZstdResetDirective reset) 740static extern unsafe nuint __PInvoke(nint __dctx_native, global::Interop.Zstd.ZstdResetDirective __reset_native); 749internal static partial nuint ZSTD_compressStream2(global::Microsoft.Win32.SafeHandles.SafeZstdCompressHandle cctx, ref global::Interop.Zstd.ZstdOutBuffer output, ref global::Interop.Zstd.ZstdInBuffer input, global::Interop.Zstd.ZstdEndDirective endOp) 760fixed (global::Interop.Zstd.ZstdInBuffer* __input_native = &input) 761fixed (global::Interop.Zstd.ZstdOutBuffer* __output_native = &output) 777static extern unsafe nuint __PInvoke(nint __cctx_native, global::Interop.Zstd.ZstdOutBuffer* __output_native, global::Interop.Zstd.ZstdInBuffer* __input_native, global::Interop.Zstd.ZstdEndDirective __endOp_native); 786internal static partial nuint ZSTD_CCtx_setParameter(global::Microsoft.Win32.SafeHandles.SafeZstdCompressHandle cctx, global::Interop.Zstd.ZstdCParameter param, int value) 811static extern unsafe nuint __PInvoke(nint __cctx_native, global::Interop.Zstd.ZstdCParameter __param_native, int __value_native); 854internal static partial nuint ZSTD_CCtx_reset(global::Microsoft.Win32.SafeHandles.SafeZstdCompressHandle cctx, global::Interop.Zstd.ZstdResetDirective reset) 879static extern unsafe nuint __PInvoke(nint __cctx_native, global::Interop.Zstd.ZstdResetDirective __reset_native);
src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (6)
124_error = Interop.Sys.ConvertErrorPlatformToPal(errno); 141get { return _rawErrno == -1 ? (_rawErrno = Interop.Sys.ConvertErrorPalToPlatform(_error)) : _rawErrno; } 146return Interop.Sys.StrError(RawErrno); 220public static Interop.ErrorInfo Info(this Interop.Error error) 222return new Interop.ErrorInfo(error);
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (4)
16throw Interop.GetExceptionForIoErrno(errorInfo, path, isDirError); 21if (error != Interop.Error.SUCCESS) 99Exception e = Interop.GetExceptionForIoErrno(Sys.GetLastErrorInfo(), path, isDirError); 183internal static Exception GetIOException(Interop.ErrorInfo errorInfo, string? path = null)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetPwUid.cs (5)
37const int BufLen = Interop.Sys.Passwd.InitialBufferSize; 64Interop.Sys.Passwd passwd; 65int error = Interop.Sys.GetPwUidR(uid, out passwd, buf, bufLen); 83var errorInfo = new Interop.ErrorInfo(error); 87if (errorInfo.Error == Interop.Error.ERANGE)
src\libraries\System.Private.CoreLib\src\System\IO\PersistedFiles.Unix.cs (6)
72const int BufLen = Interop.Sys.Passwd.InitialBufferSize; 101Interop.Sys.Passwd passwd; 102int error = Interop.Sys.GetPwUidR(Interop.Sys.GetEUid(), out passwd, buf, bufLen); 121var errorInfo = new Interop.ErrorInfo(error); 125if (errorInfo.Error == Interop.Error.ERANGE)
System\ConsolePal.Unix.cs (32)
151return Interop.Sys.GetSignalForBreak() == 0; 158if (Interop.Sys.SetSignalForBreak(Convert.ToInt32(!value)) == 0) 159throw Interop.GetExceptionForIoErrno(Interop.Sys.GetLastErrorInfo()); 368Interop.Sys.WinSize winsize; 370Interop.Sys.GetWindowSize(s_terminalHandle, out winsize) == 0) 480Interop.Sys.InitializeConsoleBeforeRead(minChars: (byte)(s_everReceivedCursorPositionResponse ? 1 : 0), decisecondsTimeout: (byte)(s_firstCursorPositionRequest ? 100 : 10)); 555Interop.Sys.InitializeConsoleBeforeRead(); 559Interop.Sys.UninitializeConsoleAfterRead(); 673return !Interop.Sys.IsATty(fd); 892if (!Interop.Sys.InitializeTerminalAndSignalHandling()) 898AppDomain.CurrentDomain.UnhandledException += (_, _) => { Interop.Sys.UninitializeTerminal(); }; 910Interop.Sys.SetKeypadXmit(s_terminalHandle, keypadXmit); 917Interop.Sys.SetTerminalInvalidationHandler(&InvalidateTerminalSettings); 921Interop.Sys.ControlCharacterNames* controlCharacterNames = stackalloc Interop.Sys.ControlCharacterNames[NumControlCharacterNames] 923Interop.Sys.ControlCharacterNames.VERASE, 924Interop.Sys.ControlCharacterNames.VEOL, 925Interop.Sys.ControlCharacterNames.VEOL2, 926Interop.Sys.ControlCharacterNames.VEOF 929Interop.Sys.GetControlCharacters(controlCharacterNames, controlCharacterValues, NumControlCharacterNames, out s_posixDisableValue); 950int result = Interop.CheckIo(Interop.Sys.Read(fd, bufPtr, buffer.Length)); 991int bytesWritten = Interop.Sys.Write(fd, bufPtr, count); 994Interop.ErrorInfo errorInfo = Interop.Sys.GetLastErrorInfo(); 995if (errorInfo.Error == Interop.Error.EPIPE) 1001else if (errorInfo.Error == Interop.Error.EAGAIN) // aka EWOULDBLOCK 1009Interop.Sys.Poll(fd, Interop.PollEvents.POLLOUT, Timeout.Infinite, out Interop.PollEvents triggered); 1015throw Interop.GetExceptionForIoErrno(errorInfo);
System\IO\StdInReader.cs (7)
90int result = Interop.CheckIo(Interop.Sys.ReadStdin(buffer, bufferSize)); 161Interop.Sys.InitializeConsoleBeforeRead(); 268Interop.Sys.UninitializeConsoleAfterRead(); 342Interop.Sys.InitializeConsoleBeforeRead(); 372Interop.Sys.UninitializeConsoleAfterRead(); 377internal static bool StdinReady => Interop.Sys.StdinReady();
System\TermInfo.cs (4)
358Interop.Sys.SNPrintF(null, 0, format, stringArg) : 359Interop.Sys.SNPrintF(null, 0, format, (int)arg); 374Interop.Sys.SNPrintF(ptr, bytes.Length, format, stringArg) : 375Interop.Sys.SNPrintF(ptr, bytes.Length, format, (int)arg);
System\TermInfo.DatabaseFactory.cs (3)
87fd = Interop.Sys.Open(filePath, Interop.Sys.OpenFlags.O_RDONLY | Interop.Sys.OpenFlags.O_CLOEXEC, 0);