78 references to Interop
System.Console (78)
LibraryImports.g.cs (20)
7internal static extern partial global::Interop.Error ConvertErrorPlatformToPal(int platformErrno); 15internal static extern partial int ConvertErrorPalToPlatform(global::Interop.Error error); 275internal static partial nint MMap(nint addr, ulong len, global::Interop.Sys.MemoryMappedProtections prot, global::Interop.Sys.MemoryMappedFlags flags, global::Microsoft.Win32.SafeHandles.SafeFileHandle fd, long offset) 304static extern unsafe nint __PInvoke(nint __addr_native, ulong __len_native, global::Interop.Sys.MemoryMappedProtections __prot_native, global::Interop.Sys.MemoryMappedFlags __flags_native, nint __fd_native, long __offset_native); 313internal static partial nint MMap(nint addr, ulong len, global::Interop.Sys.MemoryMappedProtections prot, global::Interop.Sys.MemoryMappedFlags flags, nint fd, long offset) 327static extern unsafe nint __PInvoke(nint __addr_native, ulong __len_native, global::Interop.Sys.MemoryMappedProtections __prot_native, global::Interop.Sys.MemoryMappedFlags __flags_native, nint __fd_native, long __offset_native); 359internal static partial int MSync(nint addr, ulong len, global::Interop.Sys.MemoryMappedSyncFlags flags) 373static extern unsafe int __PInvoke(nint __addr_native, ulong __len_native, global::Interop.Sys.MemoryMappedSyncFlags __flags_native); 382internal static partial global::Microsoft.Win32.SafeHandles.SafeFileHandle Open(string filename, global::Interop.Sys.OpenFlags flags, int mode) 426static extern unsafe nint __PInvoke(byte* __filename_native, global::Interop.Sys.OpenFlags __flags_native, int __mode_native); 435internal static partial long SysConf(global::Interop.Sys.SysConfName name) 449static extern unsafe long __PInvoke(global::Interop.Sys.SysConfName __name_native); 496internal static partial int MAdvise(nint addr, ulong length, global::Interop.Sys.MemoryAdvice advice) 510static extern unsafe int __PInvoke(nint __addr_native, ulong __length_native, global::Interop.Sys.MemoryAdvice __advice_native); 519internal static partial global::Microsoft.Win32.SafeHandles.SafeFileHandle ShmOpen(string name, global::Interop.Sys.OpenFlags flags, int mode) 563static extern unsafe nint __PInvoke(byte* __name_native, global::Interop.Sys.OpenFlags __flags_native, int __mode_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); 179internal 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 (23)
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); 975catch (IOException ex) when (Interop.Sys.ConvertErrorPlatformToPal(ex.HResult) == Interop.Error.EPIPE)
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);